Smetlar poso pomoc

Započeo Kiki_Radeon, Jun 24, 2010, 00:07:44 PRE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

DODAO SAM

1. pSmetlarTime,
2. pSmetlar,
3.
if(CP[playerid] == 8)//ciscenje1
{
GameTextForPlayer(playerid, "~w~Krenuli ste kupit smece po ~n~~r~San Fierru", 5000, 1);
DisablePlayerCheckpoint(playerid);
CP[playerid] = 155;
SetPlayerCheckpoint(playerid, -2516.1521,-208.0795,23.6775,8.0);
}
if(CP[playerid] == 155) { CP[playerid] = 156; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2516.1521,-208.0795,23.6775,8.0); }//Ciscenje 1
else if(CP[playerid] == 156) { CP[playerid] = 157; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2757.0815,-167.4415,6.6220,8.0); }//ciscenje 2
    else if(CP[playerid] == 157) { CP[playerid] = 158; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2761.4685,-9.3164,6.6585,8.0); }//ciscenje 3
    else if(CP[playerid] == 159) { CP[playerid] = 160; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2758.9856,127.3284,6.7604,8.0); }//ciscenje 4
    else if(CP[playerid] == 160) { CP[playerid] = 161; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2851.6360,412.2772,4.0865,8.0); }//ciscenje 5
    else if(CP[playerid] == 161) { CP[playerid] = 162; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2821.1072,626.2233,7.8823,8.0); }//ciscenje 6
    else if(CP[playerid] == 162) { CP[playerid] = 163; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2824.2744,939.8749,43.6507,8.0); }//ciscenje 7
    else if(CP[playerid] == 163) { CP[playerid] = 164; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2825.9961,1255.0283,5.1802,8.0); }//ciscenje 8
    else if(CP[playerid] == 164) { CP[playerid] = 165; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2575.7502,1351.3094,6.7664,8.0); }//ciscenje 9
    else if(CP[playerid] == 165) { CP[playerid] = 166; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2369.3364,1276.4600,23.4270,8.0); }//ciscenje 10
    else if(CP[playerid] == 166) { CP[playerid] = 167; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2271.4592,1115.6577,74.9492,8.0); }//ciscenje 11
    else if(CP[playerid] == 167) { CP[playerid] = 168; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2335.4421,961.3586,51.4965,8.0); }//ciscenje 12
    else if(CP[playerid] == 168) { CP[playerid] = 169; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2511.2874,910.7361,64.5761,8.0); }//ciscenje 13
    else if(CP[playerid] == 169) { CP[playerid] = 170; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2575.5471,999.9672,77.9420,8.0); }//ciscenje 14
else if(CP[playerid] == 170)//kraj ciscenja 1rute u sf u SF
    {
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Pokupili ste sve smece i zaradili $900.");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Vratite se i prevezite smece ponovo!.");
DisablePlayerCheckpoint(playerid);
GivePlayerMoney(playerid, 800);
CP[playerid] = 0;
PlayerInfo[playerid][pSmetlarTime] = 60;
}

4.
if(strcmp(cmd, "/Ciscenje1", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
        if(PlayerInfo[playerid][pJob] == 23)
{
    if(PlayerOnMission[playerid] > 0)
    {
        SendClientMessage(playerid, COLOR_GREY, "   Trenutno ste na misiji, nemozete koristiti ovu komandu !");
        return 1;
    }
        if(PlayerInfo[playerid][pSmetlarTime] == 0)
        {
            GameTextForPlayer(playerid, "~w~Kupite smece iz ~r~San Fierra", 5000, 1);
            CP[playerid] = 8;
            SetPlayerCheckpoint(playerid, -2516.1521,-208.0795,23.6775,8.0);
        }
        else
        {
            SendClientMessage(playerid, COLOR_GREY, "   Pokupili ste smece pricekajte  5 minutu te odaberite Sto cete prevozit!");
        }
}
else
{
SendClientMessage(playerid, COLOR_GREY, "   Niste Smetlar !");
}
}//not connected
return 1;
}


i sad sve radi osim kad u vijecnici idem odaberem poso Smetlar vrati me nazad evo ti sve sto imam
1. else if(PlayerInfo[targetid][pJob] == 23) { jtext = "Smetlar"; } (trealo bi bit id posla 6 al kad je 6 onda mi pise /accept job bodyguar a bodyguard je id 8 :S
2.
if(listitem == 14) // smetlar
  {
    SendClientMessage(playerid, COLOR_YELLOW, "* Ako zaista zelite postati Smetlar, potvrdite sa /accept job");
GettingJob[playerid] = 23;
}

eto ako mozete popravi mi to

znaci poso bi treo bit smetlar id 6 ali kad je id 6 pise da accept job kao bodyguard, a kad je 23 odaberem smetlar i vrati me na pocetni meni :S