How to make
#1

Hi I wanted to ask how to make /makeadmin only for rcon so it can only be used if you are logged into the rcon
Reply
#2

Код:
CMD:makeadmin (playerid,params [])
{
    If(IsPlayerAdmin (playerid))
    {
         //your code
    }
   else return 0;
   return  1;
}
Reply
#3

You'll need zcmd for this if you don't have it already that is.

Код:
CMD:setadmin(playerid, params[])
{
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFF0000FF, "You can't use this command."); // If the player isn't an admin

    // If the player is admin. All code for that goes here.
    return 1;
}
Also, post in the correct section next time. http://forum.sa-mp.com/forumdisplay.php?f=12
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)