02.11.2017, 12:43
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;
}
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;
}