Is there a way if player is admin to disable player command ?
#10

pawn Код:
CMD:hi(playerid, params[])
{
    if(IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "Admins cannot use this command."); //This checks if they're logged in as RCON Admin, change it to what you use
    SendClientMessage(playerid, -1, "Hello");
    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)