SA-MP Forums Archive
how do i add player id? - 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 do i add player id? (/showthread.php?tid=129203)



how do i add player id? - jamesbond007 - 21.02.2010

i want to add player ids to OnPlayerDeath
so it shows :

Jamesbond (23) Has Died.

i know how to do it i just need to find out how to add id... after the name plz help


Re: how do i add player id? - Correlli - 21.02.2010

pawn Код:
/* example */
new
    array[128];
GetPlayerName(playerid, array, MAX_PLAYER_NAME);
format(array, sizeof(array), "%s (ID:%i) died.", array, playerid);
SendClientMessageToAll(0xFFFFFFFF, array);



Re: how do i add player id? - mysql - 21.02.2010

use format:

format(var, sizeof(var), "%s (%i) Has Died.", playername, playerid);


Re: how do i add player id? - jamesbond007 - 21.02.2010

thank you