Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: Brabus poslato Mart 31, 2011, 00:09:36 PRE PODNE

Naslov: [Pomoc] Komanda za raditi
Poruka od: Brabus poslato Mart 31, 2011, 00:09:36 PRE PODNE
Skripta koju koristim: GF
Detaljan opis problema: Trebam komandu kojom cu zapoceti rad, ako stavim "obicnu komadnu koju imam za ostale poslove tipa cistaca ulica tamo me trazi CPU a ovdje nemam zato jer sam stavio animacije"
Dio skripte: else if(IsMilkingCows[playerid] > 0)//Farmer posao
{
if(IsMilkingCows[playerid] == 1)
{
    MlekoVreme[playerid] += 1;
    ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 1, 1, 0, 1, 0);
    ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 1, 1, 0, 1, 0);
    ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 1, 1, 0, 1, 0);
    //TogglePlayerControllable(playerid, 0);
        DisablePlayerCheckpoint(playerid);
        SetPlayerCheckpoint(playerid, -440.3669,-1449.5958,21.8242,1.0);
        IsMilkingCows[playerid] = 2;
}
else if(IsMilkingCows[playerid] == 2)
{
    MlekoVreme[playerid] += 1;
    ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 1, 1, 0, 1, 0);
    ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 1, 1, 0, 1, 0);
    ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 1, 1, 0, 1, 0);
    //TogglePlayerControllable(playerid, 0);
        DisablePlayerCheckpoint(playerid);
        SetPlayerCheckpoint(playerid, -428.6936,-1451.8950,23.6756,1.0);
        IsMilkingCows[playerid] = 3;
}
else if(IsMilkingCows[playerid] == 3)
{
    MlekoVreme[playerid] += 1;//1
    ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 1, 1, 0, 1, 0);
    ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 1, 1, 0, 1, 0);
    ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 1, 1, 0, 1, 0);
    //TogglePlayerControllable(playerid, 0);
        DisablePlayerCheckpoint(playerid);
        SetPlayerCheckpoint(playerid, -431.0050,-1437.3032,23.1534,1.0);
        IsMilkingCows[playerid] = 4;
}
else if(IsMilkingCows[playerid] == 4)
{
    MlekoVreme[playerid] += 1;
    ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 1, 1, 0, 1, 0);
    ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 1, 1, 0, 1, 0);
    ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 1, 1, 0, 1, 0);
    //TogglePlayerControllable(playerid, 0);
        DisablePlayerCheckpoint(playerid);
        SetPlayerCheckpoint(playerid, -449.1731,-1426.6814,19.9092,1.0);
        IsMilkingCows[playerid] = 5;
}
else if(IsMilkingCows[playerid] == 5)
{
    MlekoVreme[playerid] += 1;
    ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 1, 1, 0, 1, 0);
    ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 1, 1, 0, 1, 0);
    ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 1, 1, 0, 1, 0);
    //TogglePlayerControllable(playerid, 0);
        DisablePlayerCheckpoint(playerid);
        SetPlayerCheckpoint(playerid, -424.8969,-1424.3967,23.2194,1.0);
        IsMilkingCows[playerid] = 6;
}
else if(IsMilkingCows[playerid] == 6)
{
    CowEndTime[playerid] += 1;
            //TogglePlayerControllable(playerid, 0);
        DisablePlayerCheckpoint(playerid);
        SetPlayerCheckpoint(playerid, 513.1797,1117.5254,14.9977,5.0); //ZADNJI CP
        IsMilkingCows[playerid] = 7;
}
else if(IsMilkingCows[playerid] == 7)
{
        DisablePlayerCheckpoint(playerid);
            SendClientMessage(playerid, COLOR_LIGHTBLUE, "Farmer_Gazda kaze: Odlicno si to uradio!");
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "Farmer_Gazda kaze: Zaradio si 100$!");
        IsMilkingCows[playerid] = 0;
        GivePlayerMoney(playerid, 100);
}
}

Neke slike/video za lakse dobivanje pomoci(neobavezno): //
Naslov: Odg: [Pomoc] Komanda za raditi
Poruka od: []Flynâ„¢ poslato Mart 31, 2011, 00:12:10 PRE PODNE
Citat: Gaby poslato Mart 31, 2011, 00:09:36 PRE PODNE
Skripta koju koristim: GF
Detaljan opis problema: Trebam komandu kojom cu zapoceti rad, ako stavim "obicnu komadnu koju imam za ostale poslove tipa cistaca ulica tamo me trazi CPU a ovdje nemam zato jer sam stavio animacije"
Hmmm. Sta si ti stavio? :)

Komanda vec postoji, samo sto ti neznas da koristis CTRL+F

Komanda je /muzikravu
Naslov: Odg: [Pomoc] Komanda za raditi
Poruka od: Brabus poslato Mart 31, 2011, 00:13:06 PRE PODNE
Ne koristim Cyber scriptu jel citas?

Ovo sam kopirao i izmjenio koordinate a ako idem u cyber scriptu trazit /muzikravu samo mi izbaci pod pomoc za posao nigdje nema komande
Naslov: Odg: [Pomoc] Komanda za raditi
Poruka od: []Flynâ„¢ poslato Mart 31, 2011, 00:14:49 PRE PODNE
Citat: Gaby poslato Mart 31, 2011, 00:13:06 PRE PODNE
Ne koristim Cyber scriptu jel citas?

Ovo sam kopirao i izmjenio koordinate a ako idem u cyber scriptu trazit /muzikravu samo mi izbaci pod pomoc za posao nigdje nema komande
Gde si ti video da sam ja napisao da koristis Cyber? Ja samo kazem da ti to nisi pravio.
Pa naravno da ti nece naci komanda jer je komanda u ZCMD i nema te kose crte. Kucaj samo CMD:muzikravu
Naslov: Odg: [Pomoc] Komanda za raditi
Poruka od: Brabus poslato Mart 31, 2011, 00:15:59 PRE PODNE
CMD:muzikravu(playerid, params[])
{
if(PlayerInfo[playerid][pJob] != 11) return SendClientMessage(playerid, SIVA, "Moras biti Poljoprivrednik!");
if(PlayerInfo[playerid][pMlekoVreme] != 0) return SendClientMessage(playerid, COLOR_GRAD2, "   Sacekaj da krava opet dobije mleko!");
if(IsMilkingCows[playerid] != 0) return EUM_ShowForPlayer(playerid, 1, "[ Info ]", "Ti vec muzes kravu.");
EUM_ShowForPlayer(playerid, 1, "[ Info ]", "Sada idi i pomuzi krave.");
ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 1, 1, 0, 1, 0);
PustiZvuk(playerid,1052);
SetPlayerCheckpoint(playerid, -410.4945,-1430.5476,25.7056, 1.0);
IsMilkingCows[playerid] = 1;
PlayerInfo[playerid][pMlekoVreme] += 10000;
return 1;
}


Jel to mozes taviti u komandu sa "crtom /muzikravu" bio bih ti zahvalan?
Naslov: Odg: [Pomoc] Komanda za raditi
Poruka od: []Flynâ„¢ poslato Mart 31, 2011, 00:19:37 PRE PODNE
Iz ZCMDa u STRCMP .  :'(

if(strcmp(cmd, "/muzikravu", true) == 0)
{
if(PlayerInfo[playerid][pJob] != 11) return SendClientMessage(playerid, SIVA, "Moras biti Poljoprivrednik!");
if(PlayerInfo[playerid][pMlekoVreme] != 0) return SendClientMessage(playerid, COLOR_GRAD2, "   Sacekaj da krava opet dobije mleko!");
if(IsMilkingCows[playerid] != 0) return EUM_ShowForPlayer(playerid, 1, "[ Info ]", "Ti vec muzes kravu.");
EUM_ShowForPlayer(playerid, 1, "[ Info ]", "Sada idi i pomuzi krave.");
ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 1, 1, 0, 1, 0);
PustiZvuk(playerid,1052);
SetPlayerCheckpoint(playerid, -410.4945,-1430.5476,25.7056, 1.0);
IsMilkingCows[playerid] = 1;
PlayerInfo[playerid][pMlekoVreme] += 10000;
return 1;
}
Naslov: Odg: [Pomoc] Komanda za raditi
Poruka od: Brabus poslato Mart 31, 2011, 00:20:36 PRE PODNE
Jbg neznam oko tih stvari puno, znam oko obicnih, Fala ti!! :) :)
Naslov: Odg: [Pomoc] Komanda za raditi
Poruka od: []Flynâ„¢ poslato Mart 31, 2011, 00:22:37 PRE PODNE
Citat: Gaby poslato Mart 31, 2011, 00:20:36 PRE PODNE
Jbg neznam oko tih stvari puno, znam oko obicnih, Fala ti!! :) :)
oko kopiranja?  :-X
Naslov: Odg: [Pomoc] Komanda za raditi
Poruka od: Brabus poslato Mart 31, 2011, 00:40:09 PRE PODNE
Citat: joXy poslato Mart 31, 2011, 00:22:37 PRE PODNE
Citat: Gaby poslato Mart 31, 2011, 00:20:36 PRE PODNE
Jbg neznam oko tih stvari puno, znam oko obicnih, Fala ti!! :) :)
oko kopiranja?  :-X


I to isto xD

I jos samo:

PlayerInfo[playerid][pMlekoVreme] += 10000;

Koliko je to minuta? znaci zanima me nakon kolko minuta ce opet moci radit poso? 10min?
Naslov: Odg: [Pomoc] Komanda za raditi
Poruka od: [TG:RP]$--L84S--$ poslato April 03, 2011, 18:55:20 POSLE PODNE
Ne 10 min nego 10 sec