Destroy car on player exit
#5

Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
//	new currentveh;
//	currentveh = GetPlayerVehicleID(playerid);
	if(GetPlayerState(playerid)==PLAYER_STATE_DRIVER)
	{
		DestroyVehicle(vehicleid);//thats supposed to be in the timer. no slapping out
	}
//	TextDrawShowForPlayer(playerid,Cardestroyed);
//	SetTimerEx("cardestroyedhide", 5000, 0, "i", playerid);
	SetTimerEx("cardestroyedhide", 5000, 0, "i", vehicleid);
}
you dont need to get the players vehicleid, its already in the callback ^^
in my suggestion for the timer, i presume that its going to destroy the vehicleid. its the better solution to use the time, not my "cheap" version, coz it looks ugly to get slapped out of the car hehe
Reply


Messages In This Thread
Destroy car on player exit - by gamerhead - 07.05.2011, 16:19
Re: Destroy car on player exit - by austin070 - 07.05.2011, 16:23
Re: Destroy car on player exit - by BizzyD - 07.05.2011, 16:23
Re: Destroy car on player exit - by marrcko - 07.05.2011, 16:26
Re: Destroy car on player exit - by Babul - 07.05.2011, 16:27
Re: Destroy car on player exit - by gamerhead - 07.05.2011, 16:44

Forum Jump:


Users browsing this thread: 1 Guest(s)