[Pomoc] nesto oko timera

Započeo [GU:RP] ivica 156, Februar 10, 2012, 13:08:02 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:cyber
Detaljan opis problema:ubacio sam timer u odvoz i sada kada ja idem odvoz i zavrsim meni pise da tream cekat 5 minuta,e sada kad ide drugi igrac on nije radio odvoz i njemu pise da mora sacekati 5 minuta
CMD:odvoz(playerid, params[])
{
if(odvoz[playerid] == 1) return SendClientMessage(playerid, SIVA, "Morate da pricekate 5 minuta do sljedeceg odvoza!");
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, SIVA, "(greska) Niste u vozilu!");
if (GetVehicleModel(GetPlayerVehicleID(playerid)) != 525) return SendClientMessage(playerid, SIVA, "(greska) Niste u Mehanicar vozilu!");
if(GetPlayerState(playerid)!=2) return SendClientMessage(playerid, SVETLOPLAVA, "Niste u vozilu");
new Float:pX,Float:pY,Float:pZ;
GetPlayerPos(playerid,pX,pY,pZ);
new Float:vX,Float:vY,Float:vZ;
new Found=0;
new vid=0;
odvoz[playerid] = 1;
SetTimerEx("Odvoz", 360000, false, "%d", playerid);
while((vid<MAX_VEHICLES)&&(!Found))
{
vid++;
GetVehiclePos(vid,vX,vY,vZ);
if ((floatabs(pX-vX)<7.0)&&(floatabs(pY-vY)<7.0)&&(floatabs(pZ-vZ)<7.0)&&(vid!=GetPlayerVehicleID(playerid)))
{
Found=1;
if(IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid)))
{
DetachTrailerFromVehicle(GetPlayerVehicleID(playerid));
}
else
{
AttachTrailerToVehicle(vid,GetPlayerVehicleID(playerid));
SendClientMessage(playerid, ZUTA, "(posao) Aktivirali ste odvoz vozila!");
SendClientMessage(playerid, COLOR_ALLDEPT,"(posao) Sada odvezite vozilo oznaceno na karti!");
SendClientMessage(playerid, COLOR_ALLDEPT,"(posao) Nakon sto odvezete vozilo dobit cete svotu za odradjeni posao!");
CP[playerid] = 14000;
SetPlayerCheckpoint(playerid, 1651.9237,-1807.3429,13.1081,8.0);
}
}
//if(!Found) return SendClientMessage(playerid,SVETLOPLAVA,"Nisi dovoljno blizu auta");
}
return true;
}
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):