Checking if vehicle is still occupied after exiting it (urgent)
#3

Would this work also in OnPlayerExitVehicle.

Код:
for(new i = 0; i < MAX_PLAYERS; i++)
    {
		if(IsPlayerConnected(i))
		{
			if(IsPlayerInVehicle(i, vehicleid)) 
			{
				if(GetPlayerState(i) != PLAYER_STATE_DRIVER) 
				{
					return 1;
				}
			}
		}
		
    }
Where it returns 1 it stops the below code which happens to be a parking code ive got which i don't want initiated if a player is still in vehicle.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)