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 #381433 is a reply to message #381258] Mon, 20 April 2009 04:06 Go to previous messageGo to previous message
wittebolx is currently offline  wittebolx
Messages: 332
Registered: May 2007
Location: the netherlands
Karma:
Recruit
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!


 
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 06:49:43 MST 2025

Total time taken to generate the page: 0.00618 seconds