Raised This Month: $ Target: $400
 0% 

get_user_name ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hackking
New Member
Join Date: Aug 2008
Old 07-13-2011 , 16:05   Re: get_user_name ?
Reply With Quote #1

I tried it, and fail:
Code:
#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <cstrike>

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

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, "test.mdl")
case CS_TEAM_CT:cs_set_user_model(id, "test2.mdl")
default:cs_reset_user_model(id)
}  
    return PLUGIN_HANDLED
}
hackking 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 00:57.


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