Home » Renegade Discussions » Mod Forum » MM Help
Re: MM Help [message #232894 is a reply to message #232775] |
Mon, 04 December 2006 05:39 |
|
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");
}
|
|
|
|
|
MM Help
|
|
|
Re: MM Help
By: Zion on Sun, 03 December 2006 06:38
|
|
|
Re: MM Help
|
|
|
Re: MM Help
By: Zion on Sun, 03 December 2006 13:19
|
|
|
Re: MM Help
|
|
|
Re: MM Help
By: AmunRa on Sun, 03 December 2006 20:43
|
|
|
Re: MM Help
By: Ryu on Mon, 04 December 2006 12:53
|
|
|
Re: MM Help
|
|
|
Re: MM Help
By: AmunRa on Sun, 03 December 2006 21:09
|
|
|
Re: MM Help
|
|
|
Re: MM Help
By: sycar on Mon, 04 December 2006 05:39
|
|
|
Re: MM Help
|
|
|
Re: MM Help
By: Tunaman on Mon, 04 December 2006 12:57
|
|
|
Re: MM Help
By: AmunRa on Mon, 04 December 2006 13:04
|
|
|
Re: MM Help
|
|
|
Re: MM Help
|
|
|
Re: MM Help
By: Zion on Mon, 04 December 2006 17:10
|
|
|
Re: MM Help
|
|
|
Re: MM Help
By: Zion on Tue, 05 December 2006 01:27
|
|
|
Re: MM Help
|
Goto Forum:
Current Time: Fri Jan 24 18:25:38 MST 2025
Total time taken to generate the page: 0.00860 seconds
|