Making command only for admins help.
#1

CMD:goldrims(playerid, params[])
{
AddVehicleComponent(GetPlayerVehicleID(playerid),1 080);
SendClientMessage(playerid, COLOR_TWAQUA, "Enjoy the goldrims!");
return 1;
}

How to make this CMD working for Rcon admins only?
Reply
#2

pawn Код:
CMD:goldrims(playerid, params[])
{
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFFFFFFFF,"ERROR: You must be logged to the rcon in order to use this command.");
    AddVehicleComponent(GetPlayerVehicleID(playerid),1 080);
    SendClientMessage(playerid, COLOR_TWAQUA, "Enjoy the goldrims!");
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)