View Single Post
Author Message
.ThePro
Member
Join Date: Aug 2011
Location: Brazil
Old 04-23-2012 , 20:00   Only purchase on base
Reply With Quote #1

I would by this plugin to just buy the base ..
Because with it you can buy anywhere in the map.
But I just want to buy at the bottom (where it appears the shopping cart).

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

#define PLUGIN "Buy Weapon"
#define VERSION "1.0"
#define AUTHOR ".ThePro" //not remove


public plugin_init() {
    register_plugin(PLUGIN, VERSION, AUTHOR)
    
    register_clcmd("say /weapon", "Buy_Weapon")
}

public Buy_Weapon(id){

            give_item(id, "weapon_knife")
            give_item(id, "weapon_hegrenade")
            give_item(id, "weapon_flashbang")
            give_item(id, "weapon_flashbang")
            give_item(id, "weapon_smokegrenade")
            give_item(id, "item_assaultsuit")
            give_item(id, "item_thighpack")
            give_item(id, "weapon_deagle")
            give_item(id, "weapon_m4a1")

            cs_set_user_bpammo(id, CSW_M4A1, 100)
            cs_set_user_bpammo(id, CSW_DEAGLE, 100)
}
__________________
Of Developer to apprentice.

.ThePro is offline
Send a message via MSN to .ThePro