How make this command Rcon Admins ONLY?
#3

pawn Код:
if(!strcmp(cmdtext, "/cash", true))
{
    if(!IsPlayerAdmin(playerid)) return 0;
    GivePlayerMoney(playerid, 1000);
    return 1;
}
The function
pawn Код:
IsPlayerAdmin(playerid)
checks for if this Player ID is logged in as RCON admin.
Reply


Messages In This Thread
How make this command Rcon Admins ONLY? - by phil_lendon - 12.07.2011, 18:30
Re: How make this command Rcon Admins ONLY? - by Jochemd - 12.07.2011, 18:32
Re: How make this command Rcon Admins ONLY? - by BigETI - 12.07.2011, 18:33

Forum Jump:


Users browsing this thread: 3 Guest(s)