Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » SSGm Script Question
SSGm Script Question [message #271350] Fri, 06 July 2007 23:47 Go to previous message
_SSnipe_ is currently offline  _SSnipe_
Messages: 4121
Registered: May 2007
Location: Riverside Southern Califo...
Karma:
General (4 Stars)
i think this is the basic chat hook



class exampleChatCommand : public ChatCommandClass {
	void Triggered(int ID,const TokenClass &Text,int ChatType) {
		if (!_stricmp(Get_Player_Name_By_ID(ID),"<nick>")) {
			GameObject *obj = Get_GameObj_By_Player_Name(Text[0].c_str());
			Commands->(what ever i want)
		}
	}
};
ChatCommandRegistrant<exampleChatCommand> exampleChatCommandReg("!example",CHATTYPE_ALL,0,GAMEMODE_ALL);

//******************************************************************************


*dont mind what i edited i just added some of the stuff*

but the problem is i got to have about one code per renegade char and i have to make a new code per nickname of who can use the command how can i just edit this to make it so its one code like above but hav more then 1 person can use it so i dotn ahve to make 1 code per char and then that overgame with like 15 mods

please help and thasnk you

[Updated on: Fri, 06 July 2007 23:47]

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
Read Message
Read Message
Read Message
Read Message
Previous Topic: Chat Hook.
Next Topic: renhelp topic - cleared
Goto Forum:
  


Current Time: Wed Sep 18 01:27:06 MST 2024

Total time taken to generate the page: 0.01071 seconds