[REÅ ENO] CP

Započeo Savana, Septembar 23, 2016, 21:23:39 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim: FS
Detaljan opis problema: Loada mi samo 3 cpa i na treci kad dodjem onda pise gotovo znaci na trecem loada zadnji sta ne valja??
Dio skripte:

[pawn]public OnPlayerEnterCheckpoint(playerid)
{
    if(Ar[playerid] == 1)
    {
    DisablePlayerCheckpoint(playerid);
    GameTextForPlayer(playerid,"Istrazivanje",5000,5);
    SetTimerEx("Arheolog", 5000, false, "i", playerid);
    Ar[playerid] = 2;
    SetPlayerCheckpoint(playerid, 2220.5464, -625.9214, 118.4256, 3.0);
    TogglePlayerControllable(playerid,0);
    }
    if(Ar[playerid] == 2)
    {
    DisablePlayerCheckpoint(playerid);
    GameTextForPlayer(playerid,"Istrazivanje",5000,5);
    SetTimerEx("Arheolog", 5000, false, "i", playerid);
    Ar[playerid] = 3;
   SetPlayerCheckpoint(playerid, 2336.4111, -807.7164, 126.5182, 3.0);
   TogglePlayerControllable(playerid,0);
    }
    if(Ar[playerid] == 3)
    {
    DisablePlayerCheckpoint(playerid);
    GameTextForPlayer(playerid,"Istrazivanje",5000,5);
    SetTimerEx("Arheolog", 5000, false, "i", playerid);
    Ar[playerid] = 4;
    SetPlayerCheckpoint(playerid, 2501.0979, -612.5178, 107.9972, 3.0);
    TogglePlayerControllable(playerid,0);
    }
    if(Ar[playerid] == 4)
    {
    DisablePlayerCheckpoint(playerid);
    GameTextForPlayer(playerid,"Istrazivanje",5000,5);
    SetTimerEx("Arheolog", 5000, false, "i", playerid);
    Ar[playerid] = 5;
    SetPlayerCheckpoint(playerid, 2271.7056, -575.5657, 131.1177, 3.0);
    TogglePlayerControllable(playerid,0);
    }
    if(Ar[playerid] == 5)
    {
    DisablePlayerCheckpoint(playerid);
    GameTextForPlayer(playerid,"Istrazivanje",5000,5);
    SetTimerEx("Arheolog", 5000, false, "i", playerid);
    Ar[playerid] = 6;
    SetPlayerCheckpoint(playerid, 2172.1196, -455.0911, 105.2173, 3.0);
    TogglePlayerControllable(playerid,0);
    }
    if(Ar[playerid] == 6)
    {
    DisablePlayerCheckpoint(playerid);
    GameTextForPlayer(playerid,"Istrazivanje",5000,5);
    SetTimerEx("Arheolog", 5000, false, "i", playerid);
    GivePlayerMoney(playerid, 1100);// dobiva 1100 za posao
    Ar[playerid] = 7;
   TogglePlayerControllable(playerid,0);
   }
   if(Ar[playerid] == 7)
    {
    Ar[playerid] = 0;
   SendClientMessage(playerid, COLOR_GREEN, "Zavrsio si s poslom,i dobio nesto novaca!");
    return 1;
   }
   return 0;
}[/pawn]

Neke slike/video za lakse dobivanje pomoci(neobavezno):
Poslednja Izmena: Septembar 25, 2016, 08:38:41 PRE PODNE od Aussie
CroHerze Skripter

if(Ar[playerid] == 1 && IsPlayerInRangeOfPoint... tu funkciju koristi
heroin rap - Moskri u kuci, od sledece lajne glava ce mi puci

netreba radi,stavio sam ispod svakog cpa return 1.
CroHerze Skripter