SA-MP Forums Archive
how to get player name? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: how to get player name? (/showthread.php?tid=276260)



how to get player name? - YoUnG_MoNeY - 13.08.2011

How to get player name eg laftgv has joined the server,like that i want to make.


Re: how to get player name? - Ironboy - 13.08.2011

pawn Код:
new name[MAX_PLAYERS],string[256];
        GetPlayerName(playerid, name, sizeof(name));
        format(string, 256, "*** %s(ID: %d) has joined the server.", name, playerid);
        SendClientMessageToAll( 0xFF9900AA, string );



Re: how to get player name? - Darnell - 13.08.2011

GetPlayerName is good aswell, so as www.wiki.sa-mp.com