28.03.2013, 19:19
pawn Код:
new aVeh;
public OnGameModeInit()
{
aVeh = CreateVehicle(/**/);
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) == aVeh && !IsPlayerAdmin(playerid))
{
SendClientMessage(playerid, -1, "SERVER: You are not allowed to enter this vehicle. Good-bye.");
Kick(playerid);
}
return 1;
}