OK...I made this plugin, and for some reason my server keeps crashing...
I am new to coding and just learning this stuff......SOOOO
go easy on me...lol
Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>
#define PLUGIN "GunGlitch"
#define VERSION "1.0"
#define AUTHOR "bwgrubbs1"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("CurWeapon","DROP_IT","b","1=1")
}
public DROP_IT(id)
{
new wclip, wammo
new team = get_user_team(id)
new weapon = get_user_weapon(id, wclip, wammo)
{
if(weapon == CSW_USP || weapon == CSW_GLOCK18)
{
client_cmd(id, "drop")
client_print(id, print_chat, "[ Weapons ] You were FORCED to drop your Pistol !")
}
if(team == 1 && weapon == CSW_KNIFE)
{
strip_user_weapons(id)
client_print(id, print_chat, "[ Weapons ] You were FORCED to drop your Knife !")
}
}
}
The main idea of this plugin is so that if anyone joins the server late...after a few things have already taken place...this is to prevent a glitch with the gun.
Those of you familiar with Hide N Seek know what I am talking about.
Anyone ?