28.11.2013, 13:40
Quote:
And if 1 of the players killed, then go how you can add the player?
How can I find out which car and what is the place? |
Quote:
pawn Код:
|
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
if(GetEmptyVehicleSeat(Veh) != -1) PutPlayerInVehicle(playerid, Veh, GetEmptyVehicleSeat(Veh)); // Check if there is any free seat in vehicle 1
else if(GetEmptyVehicleSeat(Veh1) != -1) PutPlayerInVehicle(playerid, Veh1, GetEmptyVehicleSeat(Veh)); // Same as above, But for vehicle 2
else SendClientMessage(playerid, -1, "Sorry but there is no free seat for you");
return 1;
}