Raised This Month: $ Target: $400
 0% 

Help with awpme script!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Kitami
Senior Member
Join Date: Jun 2006
Location: Toronto
Old 07-26-2008 , 18:18   Help with awpme script!
Reply With Quote #1

There is a glitch where if you type in amx_awpme and you have the bomb it will take away your bomb. Or if you have a kit it will take away your kit.

Is someone could please excempt those two items from being removed when checking for guns.

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <cstrike>

#define PLUGIN "give awp"
#define VERSION "1.0"
#define AUTHOR "Reaper2331"

#define AMX_ADMIN_FLAG ADMIN_VOTE

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_concmd("amx_awpme","checkGuns",AMX_ADMIN_FLAG,"- Gives Admins with Flag J an Awp")
    
}
public 
checkGuns(idlevelcid)
{
    if( !
cmd_accessidlevelcid) )
        return 
PLUGIN_HANDLED

    
if (is_user_alive(id) )
   {
    
strip_user_weapons(id)
    
    
give_item(id,"weapon_knife")
    
give_item(id,"weapon_awp")
    
give_item(id,"ammo_338magnum")
    
give_item(id,"ammo_338magnum")
    
give_item(id,"ammo_338magnum")
    
give_item(id,"weapon_deagle")
    
give_item(id,"ammo_50ae")
    
give_item(id,"ammo_50ae")
    
give_item(id,"ammo_50ae")
    
give_item(id,"ammo_50ae")
    
give_item(id,"ammo_50ae")
    
give_item(id,"ammo_50ae")
    
give_item(id,"ammo_50ae")
    
give_item(id,"weapon_hegrenade")
    
give_item(id,"weapon_smokegrenade")
    
give_item(id,"weapon_flashbang")
    
give_item(id,"weapon_flashbang")
    
    
client_print(idprint_chat"[AMXX] You Now Have An Awp Enjoy")
    }
    return 
PLUGIN_CONTINUE

__________________
You know what I'd like to be? I mean if I had my goddamn choice, I'd just be the catcher in the rye and all.
Kitami 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 05:40.


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