Help in OnPlayerText
#1

Hey All
I Have a Problem with OnPlayerText and here it is : CLICK ME xD

So i just wanted to make when the admin talk in the chat , the server says : Admin %s (%d) : %s , u know what i mean like : Admin NoBody(ID : 13) : Hi all
And Thats all , please try to fix it cuz it repeat in the chat , like this : Here The Pic
Cya All
Reply
#2

Please don't use text like that. It's barely readable.
Edit it, you'll help us and maybe yourself.


Edit: You just need to return OnPlayerText() callback as false and that's all.
Reply
#3

pawn Код:
public OnPlayerText(playerid, text[])
{
     if(IsPlayerAdmin(playerid))
     {
          new string[128], pName[MAX_PLAYER_NAME];
          GetPlayerName(playerid, pName, sizeof(pName));
          format(string, sizeof(string), "Admin %s(%d): %s", pName, playerid, text);
          SendClientMessageToAll(COLOR_BLUE, string);
          return 0;
     }
     return 1;
}
Should work
Reply
#4

k thanks all , i try now , brb
Reply
#5

its working, thanks guys and sooo much appreciate
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)