Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » MM Help
Re: MM Help [message #232894 is a reply to message #232775] Mon, 04 December 2006 05:39 Go to previous messageGo to previous message
sycar is currently offline  sycar
Messages: 144
Registered: February 2006
Location: Reading, UK
Karma:
Recruit
I beleive what your asking to do needs to be done in the Chathook within scripts.dll. Therefore you need:

1) Scripts.dll
2) A C++ Compiler
3) A competent level of c++ knowledge

If you have this then create a chathook within scripts.dll and place an entry for whatever you wish to happen.

The following is an example for a !killme command from the SilverBullet bot KC.

if (stricmp(Msg2,"!killme") == 0)
		{
			Commands->Apply_Damage((Get_GameObj(PlayerID)),99999,"Shrapnel",false);
			char message[1000];
			sprintf(message,"msg KC: %s %s",Get_Player_Name_By_ID(PlayerID),"decided life wasn't worth living anymore and pulled the trigger!");
			Console_Input(message);
			KC_Retrieve_Player_Information(Get_GameObj(PlayerID));
			KC_Update_Player_Info(Get_Player_Name(Get_GameObj(PlayerID)),RetrievedIP,(RetrievedRecs - 1),RetrievedJoin,RetrievedServer);
			Display_Float_Player(Get_GameObj(PlayerID),3," -1 Promotion Points - Suicide");
		}
 
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
Read Message
Read Message
Read Message
Previous Topic: looking for someone who can make bump maps
Next Topic: NR prob
Goto Forum:
  


Current Time: Fri Jan 24 18:25:38 MST 2025

Total time taken to generate the page: 0.00860 seconds