Simple help.
#1

Hello, can anyone tell me how to do when players type message on chat server would send this message:

nick: (playerid) text

Thanks
Reply
#2

pawn Код:
public OnPlayerText(playerid,text[])
{
    new string[128],
        name[24];
   
    GetPlayerName(playerid,name,sizeof(name));
    format(string,sizeof(string),"%s: (%d) %s",name,playerid, text);
    SendClientMessageToAll(COLOR_WHITE,string);
    return 0;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)