timers
#2

pawn Code:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
        new vehicle = GetPlayerVehicleID(playerid);
        if(newstate == PLAYER_STATE_ONFOOT && isRepairing[playerid] == 1)
        {
                new playerveh = GetPlayerVehicleID(playerid);
                SendClientMessage(playerid, COLOR_NEWS, "You left your service vehicle, you have 30 seconds to return to your vehicle");
                onfoottime[playerid] = SetTimerEx("FootLocks",18000,true,"i",playerid);//18000 ms is 3mins
                //you can set the time by using "=" as that will reasign the timersid!
                //KillTimer(locktimer[playerid]);
                TextDrawShowForPlayer(playerid,Textdraw4[playerid]);
                PutPlayerInVehicle(playerid, playerveh, 0);
                SetVehicleToRespawn(GetVehicleModel(playerveh));
        }
Reply


Messages In This Thread
timers - by Markus1337 - 07.12.2012, 20:24
Re: timers - by park4bmx - 07.12.2012, 20:38

Forum Jump:


Users browsing this thread: 1 Guest(s)