SA-MP Forums Archive
Get iPlayer 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)
+--- Thread: Get iPlayer ID (/showthread.php?tid=521019)



Get iPlayer ID - xdarren - 21.06.2014

Hello,

I have this code.
Код:
format(iStr,sizeof(iStr),"[SAPD] %s %s shoots his tazer and hits %s",PlayerInfo[playerid][rankname],RPName(playerid),MaskedName(iPlayer));
Is it possible to attach iPlayer's ID on end of that "and hits %s" like that "and hits %s[HIS ID]" ?


Re: Get iPlayer ID - Konstantinos - 21.06.2014

iPlayer holds the ID.
pawn Код:
format(iStr,sizeof(iStr),"[SAPD] %s %s shoots his tazer and hits %s[%i]",PlayerInfo[playerid][rankname],RPName(playerid),MaskedName(iPlayer),iPlayer);



Re: Get iPlayer ID - xdarren - 21.06.2014

Ohh, thank you very much +rep