Destroy vehicle on TimerEX
#8

Quote:
Originally Posted by boelie
Yes i want it for just one car..lets say.. a tank (ID 432)

..the tank must be destroyed and spawn back some time

OMG i better try setplayerhealth on a timer!

i try that now

Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
  if(newstate == PLAYER_STATE_DRIVER && oldstate == PLAYER_STATE_ONFOOT)
	{
	new vehiclemod = GetVehicleModel (GetPlayerVehicleID(playerid));
	if(vehiclemod == 432 )
	vehiclemod = GetPlayerVehicleID(playerid);
 	GameTextForPlayer(playerid, "~y~Kill Frenzy!", 3000, 6);
  	SetTimerEx("explosion", 10000, false, "is", 1, "slut to pass");
	veh = GetPlayerVehicleID(playerid);
	GetVehicleHealth(veh, unheal);
	SetVehicleHealth(veh,100);

//	 
	
 	}

	return 1;
}
Still not working
Reply


Messages In This Thread
Destroy vehicle on TimerEX - by boelie - 01.07.2009, 20:27
Re: Destroy vehicle on TimerEX - by dice7 - 01.07.2009, 20:34
Re: Destroy vehicle on TimerEX - by boelie - 01.07.2009, 20:40
Re: Destroy vehicle on TimerEX - by Moustafa - 01.07.2009, 20:45
Re: Destroy vehicle on TimerEX - by Jefff - 01.07.2009, 21:48
Re: Destroy vehicle on TimerEX - by Moustafa - 01.07.2009, 21:55
Re: Destroy vehicle on TimerEX - by boelie - 02.07.2009, 07:22
Re: Destroy vehicle on TimerEX - by boelie - 02.07.2009, 09:20
Re: Destroy vehicle on TimerEX - by Moustafa - 02.07.2009, 09:57
Re: Destroy vehicle on TimerEX - by boelie - 02.07.2009, 09:59

Forum Jump:


Users browsing this thread: 2 Guest(s)