Raised This Month: $ Target: $400
 0% 

[SOLVED] CurrentWep Drop...crashes server.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
bwgrubbs1
Senior Member
Join Date: Sep 2006
Old 05-28-2007 , 03:31   [SOLVED] CurrentWep Drop...crashes server.
Reply With Quote #1

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 ?
bwgrubbs1 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:42.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode