Text before the player name
#2

pawn Код:
public OnPlayerText(playerid, text[])
{
    new textv2[128], name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof (name));
    format(textv2, sizeof (textv2), "%s (%s) (%d)", text, name, playerid);
    SendPlayerMessageToAll(playerid, textv2);
    return 0;
}
EDIT: Oops, that won't really work.... I'm not sure if it is possible to add text before playername...

EDIT 2: ReVo_ is right, try what he said.
Reply


Messages In This Thread
Text before the player name - by Lucky™ - 17.06.2013, 15:21
Re: Text before the player name - by SilverKiller - 17.06.2013, 15:27
Re: Text before the player name - by Lucky™ - 17.06.2013, 15:38
Re: Text before the player name - by ReVo_ - 17.06.2013, 15:50
Re: Text before the player name - by Dragonsaurus - 17.06.2013, 15:54
Re: Text before the player name - by JJB562 - 17.06.2013, 15:56
Re: Text before the player name - by Lucky™ - 17.06.2013, 16:32

Forum Jump:


Users browsing this thread: 2 Guest(s)