Quote:
Originally Posted by Wesley221
pawn Код:
public OnPlayerText(playerid, text[]) { if(text[0] == '#' && PInfo[playerid][Level] <= 1) { new string[128]; GetPlayerName(playerid,string,sizeof(string)); format(string,sizeof(string),"[ADMIN]%s: %s",string,text[1]); SendAdminMessage(red,string); return 0; // this will stop the callback, and wont show the message in the public chat } return 1; }
Check the comment.
|
i thought that way too and havent tested it yet..i just want to see if this way would be valid ok thanks wesley i will try it out
EDIT:Now it doesnt even send message to admins :P