29.11.2009, 13:06
Quote:
Originally Posted by Ironboy500
Код:
//top new timer1; //middle public OnPlayerEnterCheckpoint(playerid) { new playervehicleid = GetPlayerVehicleID(playerid); if(gObjectiveReached) return; if(playervehicleid == OBJECTIVE_VEHICLE_FIREMAN && gTeam[playerid] == TEAM_FIREMAN) { // Green OBJECTIVE REACHED. gObjectiveReached = 1; SendClientMessageToAll (COLOR_ORANGE, "Server: Drugs are on Hospital checkpoint and they need 10 seconds to export!"); timer1 = SetTimer("Export", 10000, false); } } |
Код:
//middle public OnPlayerEnterCheckpoint(playerid) { new playervehicleid = GetPlayerVehicleID(playerid); new timer1; if(gObjectiveReached) return; if(playervehicleid == OBJECTIVE_VEHICLE_FIREMAN && gTeam[playerid] == TEAM_FIREMAN) { // Green OBJECTIVE REACHED. gObjectiveReached = 1; SendClientMessageToAll (COLOR_ORANGE, "Server: Drugs are on Hospital checkpoint and they need 10 seconds to export!"); timer1 = SetTimer("Export", 10000, false); } }