Count Down Timer
#7

PHP код:
forward TruckCheck(playerid);
public 
TruckCheck(playerid)
{
    new 
attachedtrailer GetPlayerVehicleID(playerid);
    new 
str[128];
    if (!
IsPlayerInAnyVehicle(playerid) && !IsTrailerAttachedToVehicle(attachedtrailer)) {
            
truckTime[playerid]++;
            
format(strsizeof(str), "Get back in your truck! ~n~or ~n~ Reconnect your trailer! ~n~(%d)"30 truckTime[playerid]);
            
GameTextForPlayer(playeridstr30003);
            
PlayerPlaySound(playerid,1055,0.0,0.0,0.0);
            if (
truckTime[playerid] >= 30) {
                
KillTimer(truckchecktime);
                
StopPlayerJob(playerid);
                
SendClientMessage(playeridCOLOR_LIGHTGREEN"You failed the mission!");
                
truckTime[playerid] = 0;
            }
            return 
1;
    }
    return 
0;

Reply


Messages In This Thread
Count Down Timer - by DerickClark - 22.08.2015, 18:40
Re: Count Down Timer - by thaKing - 22.08.2015, 19:11
Re: Count Down Timer - by DerickClark - 22.08.2015, 19:17
Re: Count Down Timer - by DerickClark - 22.08.2015, 21:10
Re: Count Down Timer - by Roberto80 - 22.08.2015, 22:04
Re: Count Down Timer - by DerickClark - 22.08.2015, 22:10
Re: Count Down Timer - by thaKing - 22.08.2015, 22:44
Re: Count Down Timer - by DerickClark - 22.08.2015, 22:46
Re: Count Down Timer - by thaKing - 22.08.2015, 22:50
Re: Count Down Timer - by DerickClark - 22.08.2015, 23:05

Forum Jump:


Users browsing this thread: 2 Guest(s)