Player ID during chat (+Rep)
#3

pawn Код:
public OnPlayerText(playerid, text[])
{
    new pname[24], string[128];
    GetPlayerName(playerid, pname, sizeof(pname));
    format(string, sizeof(string), "%s [i]: %s", pname, playerid, text);
    SendClientMessageToAll(COLOR_WHITE, string);
    return 0;
}
You can simply create a string, and make it so it gets the player name. Then, it creates the string with the text and the ID of the playerid (hence forth the playerid section where it shows the id)

Not sure if it works, but it may. Hope I explained it clearly, and if not, feel free to reply saying what you didn't understand or what you need explained more clearer.
Reply


Messages In This Thread
Player ID during chat (+Rep) - by Crazyboobs - 05.04.2012, 23:29
Re: Player ID during chat (+Rep) - by BlackBank - 05.04.2012, 23:33
Re: Player ID during chat (+Rep) - by Kindred - 05.04.2012, 23:34
Re: Player ID during chat (+Rep) - by [HiC]TheKiller - 05.04.2012, 23:35
Re: Player ID during chat (+Rep) - by Crazyboobs - 05.04.2012, 23:38
Re: Player ID during chat (+Rep) - by Vince - 05.04.2012, 23:39
Re: Player ID during chat (+Rep) - by BlackBank - 05.04.2012, 23:41
Re: Player ID during chat (+Rep) - by Crazyboobs - 05.04.2012, 23:48

Forum Jump:


Users browsing this thread: 1 Guest(s)