Re: [Code] SSGM2.02 Custom Commands [message #381433 is a reply to message #381258] |
Mon, 20 April 2009 04:06 |
|
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!
http://www.wittebolx.com
|
|
|