/b commando with ID? [SOLVED]
#1

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

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

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)