31.08.2011, 02:41
Hello all, i was just wondering how to make a command for admins only,
i have this command for example:
Now, i would like /heal to be for admins only. I appreciate your help!
i have this command for example:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/heal", cmdtext, true, 10) == 0)
{
SetPlayerHealth(playerid,100);// heal the player
SendClientMessage(playerid, COLOR_YELLOW, "FT Bot: "#COL_GREEN"You have been healed!");
return 1;
}
return 0;
}