i want to make admin command
#1

Hello, I want to make the command only for administrators and that can be used when they are duty



enum @ID
{
Admin,
// identifier (I do not know how this works)

};

new Info23[MAX_PLAYERS][@ID];

CMD:heal(playerid, params[])
{
if(!(Info23[playerid][Admin] >=5)) return SendClientMessage(playerid,-1,"ERROR: You can't use this command");
SetPlayerHealth(playerid, 100);
SendClientMessage(playerid, -1, "Now, you have 100 HP");
return 1;
}
Reply


Messages In This Thread
i want to make admin command - by zZzTGTzZz - 02.11.2017, 12:43
Re: i want to make admin command - by scripter111 - 02.11.2017, 13:40
Re: i want to make admin command - by Lucases - 02.11.2017, 13:43

Forum Jump:


Users browsing this thread: 4 Guest(s)