02.12.2012, 01:12
Add into public OnPlayerStateChange:
pawn Код:
if(newstate == PLAYER_STATE_DRIVER)
{
new pcar = GetPlayerVehicleID(playerid);
for(new i = 0; i < GetMaxPlayers(); i++)
{
if(IsPlayerConnected(i) && i != playerid)
{
if(PlayerCar[i] == pcar)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, -1, "Your message for removed player...");
break;
}
}
}
}