Raised This Month: $ Target: $400
 0% 

get_user_name ?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
hackking
New Member
Join Date: Aug 2008
Old 07-13-2011 , 21:40   Re: get_user_name ?
Reply With Quote #9

@Artifact
I can compile the plugin but not check the models..

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

#define name blaaablaaa

public plugin_init() {
    register_plugin("Jake's Plugin", "1.0", "Fire")
    register_cvar("jakes_plugin", "1")
}

public plugin_precache() {
        precache_model("models/player/ritsuka/ritsuka.mdl")
        precache_model("models/player/ritsuka2/ritsuka2.mdl")

        return PLUGIN_CONTINUE
}

public client_authorized(id) {
    
    if(get_cvar_num("jakes_plugin") == 0) {
        return PLUGIN_HANDLED
    }
    
    new szname[32]
    get_user_name(id,szname,31)
    
    if(equal(szname,"name"))
        switch(cs_get_user_team(id))
    {
        case CS_TEAM_T: cs_set_user_model(id, "ritsuka")
            case CS_TEAM_CT:cs_set_user_model(id, "ritsuka2")
            default:cs_reset_user_model(id)
    }  
    return PLUGIN_HANDLED
}
I added public plugin_precache, but nothing..
hackking 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 00:57.


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