Need Help
#2

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);
	}
}
Try this:

Код:
//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);
	}
}
Reply


Messages In This Thread
Need Help - by Ironboy500 - 29.11.2009, 12:48
Re: Need Help - by diesulke - 29.11.2009, 13:06
Re: Need Help - by Ironboy500 - 29.11.2009, 13:09
Re: Need Help - by Ironboy500 - 29.11.2009, 13:20
Re: Need Help - by Nero_3D - 29.11.2009, 13:21
Re: Need Help - by Ironboy500 - 29.11.2009, 13:33

Forum Jump:


Users browsing this thread: 1 Guest(s)