Destroy vehicle on TimerEX
#1

I desperatly need a timer to destroy objects and/or vehicles
Today i tried it, i wanted to destroy a vehicle on a timer.
destroyvehicle didnt worked..so i tried it with createexplosion..well that worked but i
still cant figure out why destroyobject didnt work.

Maybe someone can explain ?

i got this now;
Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
  if(newstate == PLAYER_STATE_DRIVER && oldstate == PLAYER_STATE_ONFOOT)
	{
	new vehiclemod = GetVehicleModel (GetPlayerVehicleID(playerid));
	if(vehiclemod == 432 )
       SetTimerEx("explosion", 20000, false, "20");
      DestroyVehicle(432);
	
 	}

	return 1;
}
This code worked with the explosions though and i did the define andpublic thing ofcourse
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)