03.04.2013, 11:25
What do you use to check weather they are a "default" user or not? Just the fact that they are logged in as RCON? Or do you have somethine more like pInfo[playerid][Admin]?
If you are just using RCON, then you can do this..
Haven't tested it, should work though. It should only let "regular" (non rconed users) to get into the passenger seat of any of the vehicles you add into this code. None of the current ones have passenger seats though. If they try to enter the driver seat, they are sent a message.
If you are just using RCON, then you can do this..
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(!IsPlayerAdmin(playerid){
if(!ispassenger){
new vmodel;
vmodel = GetVehicleModel(vehicleid);
if(vmodel == 520 || vmodel == 432 || vmodel == 425){ //if the vehicle is a hydra, rhino, or hunter
return 0;
SendClientMessage(playerid, 0xFF0000FF, "You are not allowed to use this vehicle");
}
}
}
return 1;
}