21.07.2011, 02:07
pawn Код:
public OnPlayerStateChange(playerid,newstate,oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
vehid = GetPlayerVehicleID(playerid)
if(vehid == admincar)
{
if(!IsPlayerLuxDm(playerid))
{
EjectPlayerFromVehicle(playerid)
return 1;
}
else {
//admin is in admin car
}
}
}
return 1;
}