Raised This Month: $ Target: $400
 0% 

[HELP] cs_set_user_model [o.O]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 05-21-2009 , 09:38   Re: [HELP] cs_set_user_model [o.O]
Reply With Quote #4

PHP Code:
/* Plugin generated by Emilioneri */ 

#include <amxmodx> 
#include <amxmisc> 
#include <cstrike> 

#define PLUGIN "Spy" 
#define VERSION "1.0" 
#define AUTHOR "Emilioneri" 


public plugin_init() { 
    
register_plugin(PLUGINVERSIONAUTHOR
    
    
// Add your code here... 
    
register_concmd("amx_spy""cmd_spy"ADMIN_SLAY"< saxeli | #userid > 1/0"


public 
plugin_precache() 

    
precache_model("models/player/sas/sas.mdl"
    
precache_model("models/player/guerilla/guerilla.mdl"


public 
cmd_spy(idlevelcid

    if (!
cmd_access(idlevelcid3)) 
        return 
PLUGIN_HANDLED 
    
    
new Argument[32], status[4
    
    
read_argv(1Argument31)
    
read_argv(2status3)
    
    new 
Target cmd_target(idArgumentCMDTARGET_ALLOW_SELF)
    
    if (
Target)
    {
        if (
equal(status"1")) 
        { 
            if (
cs_get_user_team(id) == CS_TEAM_T)  // line 42
            

                
cs_set_user_model(Target"sas"
            } 
            else if(
cs_get_user_team(id) == CS_TEAM_CT)  // line 46
            

                
cs_set_user_model(Target"guerilla"
            } 
            else 
            { 
                
cs_reset_user_model(Target)
            } 
        } 
        if (
equal(status"0")) 
        { 
            
cs_reset_user_model(id
        }
    }
    return 
PLUGIN_HANDLED

__________________
alan_el_more 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 01:26.


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