View Single Post
GmTx
BANNED
Join Date: May 2009
Location: Mountains [BG/Sofia]
Old 09-17-2009 , 11:43   Re: [{ AK VS M4 } ]
Reply With Quote #4

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <hamsandwich>
#include <cstrike>

#define PLUGIN "AKM4"
#define VERSION "1.0"
#define AUTHOR "Xevious"


public plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
RegisterHamHam_Spawn"player""fwdPlayerSpawn");
}

public 
fwdPlayerSpawn(id)
{    
    if(
is_user_alive(id))
    {
        new 
name[32]    
        
get_user_name(idname31)
        
        
client_print(idprint_chat"Welcome %s your money now is , this server is using AKM4"name)
        
        switch(
cs_get_user_team(id))
        {
            case 
CS_TEAM_T:
            {
                
strip_user_weapons(id)
                
cs_set_user_money (id0)
                
give_item(id"weapon_ak47")
                
give_item(id"weapon_glock18")
                
give_item(id"weapon_hegrenade")
                
give_item(id"weapon_flashbang")
                
cs_set_user_bpammo(idCSW_AK4790)
                
cs_set_user_bpammo(idCSW_GLOCK18120)                
            }
            case 
CS_TEAM_CT:
            {
                
strip_user_weapons(id)
                
cs_set_user_money(id0)
                
give_item(id"weapon_m4a1")
                
give_item(id"weapon_usp")
                
give_item(id"weapon_hegrenade")
                
give_item(id"weapon_flashbang")
                
cs_set_user_bpammo(idCSW_M4A190)
                
cs_set_user_bpammo(idCSW_USP100
            }
        }
    }

GmTx is offline
Send a message via Skype™ to GmTx