Author
|
Message
|
New Member
|
03-29-2023
, 09:35
How to write a plugin that adjusts the damage and recoil values of your own weapon?
|
#1
|
I have a l4d2 server, want to play a little fun with friends
How to write a plugin that adjusts the damage and recoil values of your own weapon.
Enter the server, type "!Ac" in the chat box to change the specific weapon data (only valid for yourself) to the following self-defined value
Type "!Acstop" to restore the weapon values to the server's default state.
public void OnPluginStart()
{
RegAdminCmd("sm_Ac", Cmd_Ac, ADMFLAG_RCON,"Ac command");
RegAdminCmd("sm_Acstop", Cmd_Acstop, ADMFLAG_RCON, "Ac command");
}
My foundation is not good, I learned sourcemod a few months through youtube , but also can not write this plug-in, Any recommendations for good tutorials? I have a l4d2 server, want to play a little fun with friends, how to write the next? Thank you in advance!
Last edited by fixer0001; 03-29-2023 at 09:54.
|
|
|
|