Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Help Chat command.
Help Chat command. [message #438060] Sun, 17 October 2010 13:51 Go to previous message
crysis992 is currently offline  crysis992
Messages: 314
Registered: June 2008
Karma:
Recruit

Hello,

I tried to make a stealth command, but im just a beginner there, and i want that the command cost 900. But it should be set in the ssgm.ini that i can change the costs if needed.
Can anyone help me with this?

class stealthChatCommand : public ChatCommandClass {
void Triggered(int ID,const TokenClass &Text,int ChatType) 
	{

		        GameObject *obj = Get_GameObj(ID);
				Commands->Enable_Stealth(obj,1);
				Create_2D_WAV_Sound_Player(obj,"m00puss_aqob0002i1evag_snd.wav");
				FDSMessage(StrFormat("%s bought a stealth suit!",Get_Player_Name_By_ID(ID)),"_ALERT");
				
			
};
};


ChatCommandRegistrant<stealthChatCommand> stealthChatCommandReg("!stealthsuit",CHATTYPE_ALL,0,GAMEMODE_ALL);



+ another request.
Atm it give me a character stealth suit, whats the code for to stealth a vehicle?


,
crysis992
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Need help (tank modeling)
Next Topic: Good Huds
Goto Forum:
  


Current Time: Sun Sep 01 17:14:19 MST 2024

Total time taken to generate the page: 0.00638 seconds