[Pomoc]Posao postar cp

Započeo Nemex, Jun 02, 2016, 19:35:17 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: EGRP full edit
Detaljan opis problema: ne znam kako da napravim da igrac mora pesaka do cp ne kamionom,radim posao postara pa zelim da on pesaka mora do cp i tu da bude neka anim ,a ne kamionom samo da stane
Dio skripte:
new car = GetPlayerVehicleID(playerid);
   if(CP[playerid] == 615 && IsAPostarKamion(car) && IsPlayerInVehicle(playerid, carid)) { CP[playerid] = 616; TogglePlayerControllable(playerid, 0); PostaM12[playerid] = 1; GameTextForPlayer(playerid, "~w~Sacekajte dok se posta~n~~g~preuzima", 4000, 4);SetTimerEx("PostaMotor1",10000, false, "i", playerid); DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 1437.9246,-1690.8481,13.6155,15.0); }
    else if(CP[playerid] == 616 && IsAPostarKamion(carid) && !IsPlayerInVehicle(playerid, carid))  { CP[playerid] = 617; TogglePlayerControllable(playerid, 0); PostaM12[playerid] = 1; GameTextForPlayer(playerid, "~w~Sacekaj da se posta~n~~g~dostavi", 2000, 4);SetTimerEx("PostaMotor",3000, false, "i", playerid); DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 1696.1429,-1722.7272,13.6195,15.0); }
    else if(CP[playerid] == 506)
    {
    CP[playerid] = 0;
    SetVehicleToRespawn(carid);
SendClientMessage(playerid, COLOR_LIGHTRED, "{6EF83C}Zavrsili ste dostavljanje poste i zaradili ste {FFFFFF}1550$. ");
JBC_GivePlayerMoney(playerid, 2457);
     }

Neke slike/video za lakse dobivanje pomoci(neobavezno): Ja sam pokusavao nesto sa proverom da li je u vozilu ali ja kad predjem preko cp kamionom samo nestane i nis

[pawn]if (CP[playerid] == tvoj broj && !IsPlayerInAnyVehicle(playerid))
{
    // I ovde stavis te animacije i sta jos budes hteo
}[/pawn]

To mu dodje ovo
else if(CP[playerid] == 616 && IsAPostarKamion(carid) && !IsPlayerInVehicle(playerid, carid)) samo da skines carid i stavis !IsPlayerInAnyVehicle