Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Release Forum » [Code] SSGM2.02 Custom Commands
Re: [Code] SSGM2.02 Custom Commands [message #381581 is a reply to message #381433] Mon, 20 April 2009 19:20 Go to previous messageGo to previous message
Gen_Blacky is currently offline  Gen_Blacky
Messages: 3250
Registered: September 2006
Karma:
General (3 Stars)
wittebolx wrote on Mon, 20 April 2009 06:06

Quote:

Stealth Suit.
Info: Stealths you and/or your vehicle Client needs up-to-date scripts.
Usage: !ss
class ssChatCommand : public ChatCommandClass {
void Triggered(int ID,const TokenClass &Text,int ChatType) {
GameObject *obj = Get_GameObj(ID);
GameObject *X = Get_Vehicle(obj);
const char * Name = Get_Player_Name(obj);
Console_Input(StrFormat("msg %s got a Steath Suit.",Name).c_str());
Commands->Enable_Stealth(obj,true);
Commands->Enable_Stealth(X,true);
}
};
ChatCommandRegistrant<ssChatCommand> ssChatCommandReg("!ss",CHATTYPE_ALL,0,GAMEMODE_AOW);



Remember that when a player leaves the game joins afterwards he can see the people that are supposed to be stealthed!


just reattach the script every time a player joins


http://s18.postimage.org/jc6qbn4k9/bricks3.png
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Egypt Volcano
Next Topic: [skin] nod chrome buggy
Goto Forum:
  


Current Time: Sun Jan 12 11:41:09 MST 2025

Total time taken to generate the page: 0.00620 seconds