OnPlayerDisconnect [REPS Ofcourse :D]
#4

Quote:
Originally Posted by Duck4coder
Посмотреть сообщение
That wouldn't actually work, I would only do nothing if the player that disconnects is in the front passenger, if you use

Код:
public OnPlayerDisconnect(playerid, reason)
{
    for(new i = 0; i < MAX_PLAYERS; i++)
	if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
	{
		SetVehicleToRespawn(GetPlayerVehicleID(playerid));
	}
	else
	{
		//Do Nothing
	}
	return 1;
}
This would allow it to only destroy the vehicle if the driver disconnects
Helped thanks +rep && ~~CLOSED~~
Reply


Messages In This Thread
OnPlayerDisconnect [REPS Ofcourse :D] - by MahdiGames - 01.02.2014, 20:42
Re: OnPlayerDisconnect [REPS Ofcourse :D] - by TheFlyer - 01.02.2014, 21:19
Re: OnPlayerDisconnect [REPS Ofcourse :D] - by Duck4coder - 01.02.2014, 21:35
Re: OnPlayerDisconnect [REPS Ofcourse :D] - by MahdiGames - 01.02.2014, 21:43
Re: OnPlayerDisconnect [REPS Ofcourse :D] - by CuervO - 01.02.2014, 23:35
Re: OnPlayerDisconnect [REPS Ofcourse :D] - by MahdiGames - 02.02.2014, 06:46

Forum Jump:


Users browsing this thread: 1 Guest(s)