21.11.2014, 15:34
Use OnPlayerStateChange :
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(vhid == 411 && sInfo[playerid][admin] < 1)
{
SendClientMessage(playerid, -1, "This car is for ADMINS!");
RemovePlayerFromVehicle(playerid);
}
}
return 1;
}