25.04.2013, 19:52
This ejects admins from the vehicle but not normal players, i want so the non-admin person gets ejected when entering one of these vehicles.
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER && GetVehicleModel(GetPlayerVehicleID(playerid) == 432 || 520 || 425 || 441 || 464 || 465 || 501 || 564 || 594 || 447 || 449 || 537 || 538 || 539 || 557 || 592 || 601 || 604 || 605))
{
if(!IsPlayerLAdmin(playerid))
{
RemovePlayerFromVehicle(playerid);
GameTextForPlayer(playerid, "~r~this is an admin vehicle~n~~p~ejected", 5000, 3);
}
}
return 1;
}