Raised This Month: $ Target: $400
 0% 

[REQ] Empty deagle and 3HE


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
jingojang
Senior Member
Join Date: Feb 2010
Location: The Moon
Old 04-10-2014 , 12:19   [REQ] Empty deagle and 3HE
Reply With Quote #1

Hello,

I need a plugin that gives all players an empty deagle and 3 Hegrenades. I also need to block buyzone so nobody can buy weapons but I think that is already made.

Anyways I need the first thingy

Regards,
Jing
__________________
jingojang is offline
Xalus
Veteran Member
Join Date: Dec 2009
Location: Belgium
Old 04-10-2014 , 12:33   Re: [REQ] Empty deagle and 3HE
Reply With Quote #2

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

#define PLUGIN "Empty dgl + nades"
#define VERSION "1.0"
#define AUTHOR "Xalus"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
RegisterHam(Ham_Spawn"player""Ham_PlayerSpawn_Post"1)
}
public 
Ham_PlayerSpawn_Post(id)
{
    if(
is_user_alive(id))
    {
        
strip_user_weapons(id)
        
        
give_item(id"weapon_knife")
        
give_item(id"weapon_hegrenade")
        
cs_set_user_bpammo(idCSW_HEGRENADE3)
        
        
cs_set_weapon_ammo(give_item(id"weapon_deagle"), 0)
    }

__________________
Retired.
Xalus is offline
jingojang
Senior Member
Join Date: Feb 2010
Location: The Moon
Old 04-10-2014 , 12:39   Re: [REQ] Empty deagle and 3HE
Reply With Quote #3

Thanks
__________________
jingojang is offline
Reply



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 06:35.


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