Car Destroy With SetTimter
#1

Hello!
I need some help to make a car destroy with settimter.
I make a car destroy with time but it not work it wher a player stay 15 sec in a car in auto exit player from vehicles:

Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
	if(newstate == PLAYER_STATE_DRIVER && oldstate == PLAYER_STATE_ONFOOT)
	{
	new vid = GetPlayerVehicleID(playerid);
 	SetTimerEx("destroy", 15000, false, "d", vid);
	}
	return 1;
}

forward destroy(vid);
public destroy(vid)
{
	DestroyVehicle(vid);
	return 1;
}
Thanks!
Reply


Messages In This Thread
Car Destroy With SetTimter - by kelvin22 - 15.06.2011, 09:42
Re: Car Destroy With SetTimter - by Wesley221 - 15.06.2011, 09:44
Re: Car Destroy With SetTimter - by kelvin22 - 15.06.2011, 09:46
Re: Car Destroy With SetTimter - by Wesley221 - 15.06.2011, 09:51
Re: Car Destroy With SetTimter - by King Ace - 15.06.2011, 09:51
Re: Car Destroy With SetTimter - by kelvin22 - 15.06.2011, 10:01
Re: Car Destroy With SetTimter - by kelvin22 - 15.06.2011, 10:11
Re: Car Destroy With SetTimter - by Sasino97 - 15.06.2011, 10:57

Forum Jump:


Users browsing this thread: 2 Guest(s)