Raised This Month: $7 Target: $400
 1% 

Plugin que cambie el model del Knife


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Shion
Senior Member
Join Date: Dec 2008
Old 01-24-2011 , 04:24   Plugin que cambie el model del Knife
#1

Lo qise editar ase banda como a las 7 y no se modificaba u.u, ya esta, en lo posible cierren el post porfavor, gracias a los qe comentaron igual

Code:
#include <amxmodx>
#include <cstrike>
#include <engine>
#include <hamsandwich>

#define PLUGIN "Cambiar mdls"
#define VERSION "1.0"
#define AUTHOR "alan_el_more"

new v_mdl[] = "models/v_newKnife.mdl"

public plugin_init()
{
    register_plugin(PLUGIN, VERSION, AUTHOR)
    
    register_event("CurWeapon", "Event_CurWeapon", "be","1=1")
    
    RegisterHam(Ham_Spawn, "player", "fw_PlayerSpawn_Post", 1)
}

public plugin_precache()
{
    precache_model(v_mdl)
}

public Event_CurWeapon(id) 
{     
    if(read_data(2)  != CSW_KNIFE)
        return PLUGIN_CONTINUE

    entity_set_string(id, EV_SZ_viewmodel, v_mdl)
        
    return PLUGIN_CONTINUE 
}

public fw_PlayerSpawn_Post(id)
{
    if(is_user_alive(id) && get_user_flags(id) & ADMIN_BAN)
        cs_set_user_model(id, "vip")
} 

__________________

Last edited by Shion; 01-24-2011 at 11:27.
Shion is offline
 


Thread Tools
Display Modes

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:56.


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