Quote:
Originally Posted by Razvann
pawn Code:
{ new aText[128],aName[MAX_PLAYER_NAME],string[128]; if(pInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid,COLOR_LIGHTYELLOW,"You are not an Administrator with the required level."); if(!sscanf(params,"s",aText)) return SendClientMessage(playerid,COLOR_LIGHTYELLOW,"[USAGE] ''/a [text]''.");
GetPlayerName(playerid,aName,sizeof(aName)); format(string,sizeof(string),"[AdminChat]%s: %s",aName,aText);
for(new i=0;i<=MAX_PLAYERS;i++) { if(pInfo[i][pAdmin] > 0) SendClientMessage(i,COLOR_LIGHTBLUE,string); } return 1; }
|
Not working.
Quote:
Originally Posted by Razvann
pawn Code:
{ new aText[128],aName[MAX_PLAYER_NAME],string[128]; if(pInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid,COLOR_LIGHTYELLOW,"You are not an Administrator with the required level."); if(!sscanf(params,"s",aText)) return SendClientMessage(playerid,COLOR_LIGHTYELLOW,"[USAGE] ''/a [text]''.");
GetPlayerName(playerid,aName,sizeof(aName)); format(string,sizeof(string),"[AdminChat]%s: %s",aName,aText);
for(new i=0;i<=MAX_PLAYERS;i++) { if(pInfo[i][pAdmin] > 0) SendClientMessage(i,COLOR_LIGHTBLUE,string); } return 1; }
|
THIS ONE WORKS!!!
There is only 1 little thing:
When I type for example ''/a test''
it shows;
(AdminChat)[UF]DarkPhoenix: test
SERVER: Unknown Command (while it IS working).