how do i add player id?
#1

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
Reply
#2

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

use format:

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

thank you
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)