02.05.2011, 20:48
I want to make Admin duty like this :
/aduty_on
But how to make it only for admins not for RCON just for admins and RCON Admins (I using Lux Admin system)
/aduty_on
pawn Код:
if (strcmp("/aduty_on", cmdtext, true, 10) == 0)
{
new pName[MAX_PLAYER_NAME];
new string[300];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "{6EF83C}Administrator %s is now on duty", pName);
SendClientMessageToAll(0xEB0000FF, string);
SetPlayerColor(playerid,0xFF0037FF);
GivePlayerWeapon(playerid,38,500000000000000);
SetPlayerSkin(playerid,294);
SetPlayerColor(playerid,0x00FFC8FF);
return 1;
}