SA-MP Forums Archive
/b commando with ID? [SOLVED] - 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: /b commando with ID? [SOLVED] (/showthread.php?tid=435189)



/b command with ID? [SOLVED] - Hargrave - 05.05.2013

Hello guys!

I've a /b commando that is working perfectly, but I would like to get the player ID on it as well. Like (( [0] Name_Here says: blabla )) (0 = player ID), but now it is (( Name_Here says: blabla ))

Anyone that knows how? Tried to edit myself, but then the result is that it will be like this (( 83 says: blabla ))


AW: /b commando with ID? - HurtLocker - 05.05.2013

use format(string, sizeoff(string), "playerid: %d", playerid)
and SendClientMessageToAll(color, string)


Re: /b commando with ID? - Hargrave - 05.05.2013

Thank you. I solved it myself, but you made it so much easier for me. The code was
Quote:

format(string,sizeof(string),"(( [%i] %s says: %s ))",playerid,name,text);

Problem is now SOLVED.