Admin vehicle help
#1

.....
Reply
#2

Pretty sure there's an administrator system like this,

all you have to do is search.
Reply
#3

in romadmin and luxadmin system they have like /acar cmd which on only admins can use car
Reply
#4

Use DAdmin for it.It has the best feature of that.Here is link https://sampforum.blast.hk/showthread.php?pid=2236609#pid2236609
Reply
#5

Here's one way you can do it

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == PLAYER_STATE_DRIVER && !pData[playerid][AdminLevel]) //replace admin level with your admin variable
    {
        new vehicle=GetPlayerVehicleID(playerid);
        for(new i=0; i < MAX_PLAYERS; i++)
        {
            if(pData[i][AdminCar] == vehicle)
            {
                RemovePlayerFromVehicle(playerid);
                SendClientMessage(playerid, 0xCC0000AA, "This is an admin car and you aren't an admin");
            }
        }
    }
    return 1;
}
Then you just do this inside of your car cmd
pawn Код:
pData[playerid][AdminCar] = CreateVehicle(stuffhere);
Of course, if you use foreach it would probably be more efficient

EDIT: lol, forgot the admin variable
Reply
#6

Removed.
Reply
#7

Removed.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)