[Pomoc] Komanda za raditi

Započeo Brabus, Mart 31, 2011, 00:09:36 PRE PODNE

prethodna tema - sledeća tema

0 članova i 3 gostiju pregledaju ovu temu.

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): //

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

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

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

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?

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;
}

Jbg neznam oko tih stvari puno, znam oko obicnih, Fala ti!! :) :)

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

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?