Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Code Release - !ping command
Re: Code Release - !ping command [message #313097 is a reply to message #313058] Wed, 23 January 2008 08:58 Go to previous messageGo to previous message
Cat998
Messages: 1082
Registered: January 2004
Location: Austria, Vienna
Karma:
General (1 Star)
Moderator/Captain

class PingChatCommand : public ChatCommandClass {
	void Triggered(int ID,const TokenClass &Text,int ChatType) {
		char msg[256];
		sprintf(msg, "message %s, your ping is %d.", Get_Player_Name_By_ID(ID), Get_Ping(ID));
		Console_Input(msg);
		
	}
};
ChatCommandRegistrant<PingChatCommand> PingChatCommandReg("!ping",CHATTYPE_ALL,0,GAMEMODE_ALL);


When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter then "Yes"

Programming is like sex: one mistake and you have to support it for the rest of your life

Want the best answers? Ask the best questions!

"So long, and thanks for all the fish."

[Updated on: Wed, 23 January 2008 08:58]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Serverside Co-Op
Next Topic: NEED HELP MAKING A WEAPON REPLACEMENT!
Goto Forum:
  


Current Time: Wed Jan 01 21:26:14 MST 2025

Total time taken to generate the page: 0.00883 seconds