05.08.2012, 00:39
if I understood you right, then here is the code:
Код:
CMD:adminchat(playerid, params[]) { new str[185], aname[MAX_PLAYER_NAME] ; GetPlayerName(playerid, aname, MAX_PLAYER_NAME); if(PInfo[playerid][pAdmin] >= 1)//if admin level is greater than 1 { if(sscanf(params, "s", str)) return SendClientMessage(playerid, -1, "USAGE: /adminchat [text]"); format(str, 185, "Admin %s says: %s", aname, params); } else SendClientMessage(playerid, -1, "You are not authorized to use that command!"); return 1; }