Raised This Month: $ Target: $400
 0% 

top15 models


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BaLaNce44
Junior Member
Join Date: Apr 2010
Old 06-02-2010 , 05:01   top15 models
Reply With Quote #1

can someone change the admin model(make by whitemike) plugins to top15 player can apply this model ?
it means that the top15 player can become the new model instead of the admin


Code:
*########################################################################## 
## 
## -- www.SteamTools.net 
##      ___   _____       ___  ___   _   __   _            ___  ___   _____   _      
##     /   | |  _  \     /   |/   | | | |  \ | |          /   |/   | |  _  \ | |      
##    / /| | | | | |    / /|   /| | | | |   \| |         / /|   /| | | | | | | |      
##   / / | | | | | |   / / |__/ | | | | | |\   |        / / |__/ | | | | | | | |      
##  / /  | | | |_| |  / /       | | | | | | \  |       / /       | | | |_| | | |___  
## /_/   |_| |_____/ /_/        |_| |_| |_|  \_|      /_/        |_| |_____/ |_____| 
##                                                        
##          |__                   |__  o _|_   ___   __ __  o |__,  ___  
##      --  |__) (__|     (__(__( |  ) |  |_, (__/_ |  )  ) | |  \ (__/_ 
##                  |                                                    
## 
##   Originated as a simple idea back in 2004, it was forgotten due to 
## lack of my 'Small' coding skills. However I have progressed in recent 
## months and somehow crossed that old post with this concept in it. So 
## naturally I challenged myself to see if I could do it, and voila! I 
## could :) 
## 
##   Once you join, you play a normal person for the first round, and for 
## all remaining rounds your CT or TE models are custom. They now read 
## "ADMIN" on front and back, and also have small "A" patches on the arms. 
## I designed these models myself, it's very easy, just bring the textures 
## into photoshop, tweak out, and replace. 
## 
##   Enjoy! 
## 
## 
## CHANGELOG 
##------------------------------------------------------------------------ 
## 2) v1.1.1 - Fixed missing event 
## 1) v1.1.0 - Fixed VIP and other model bugs 
## 
## 
## INSTALLATION 
##------------------------------------------------------------------------ 
## 1) Unzip (which you may have done already) 
## 2) Place 'amx_adminmodel.amxx' in 'cstrike/addons/amxmodx/plugins' 
## 3) Add a line in 'configs/plugins.ini' containing 'amx_adminmodel.amxx' 
## 4) Put the 'admin_ct' and 'admin_te' folders into 'cstrike/models' folder 
## 5) -- Visit www.SteamTools.net and enjoy your new plugin! 
## 
## 
## 
## THE CVARs 
##------------------------------------------------------------------------ 
## 
## No CVARs for this plugin :) 
## 
## 
##########################################################################*/ 
 
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
public plugin_init() {
        register_plugin("AMX Admin Model", "1.1.1", "whitemike")
        register_event("ResetHUD", "resetModel", "b")
        return PLUGIN_CONTINUE
}
public plugin_precache() {
        precache_model("models/player/vip/vip.mdl")
        precache_model("models/player/leet/leet.mdl")
        return PLUGIN_CONTINUE
}
public resetModel(id, level, cid) {
        if (get_user_flags(id) & ADMIN_KICK) {
                new CsTeams:userTeam = cs_get_user_team(id)
                if (userTeam == CS_TEAM_T) {
                        cs_set_user_model(id, "leet")
                }
                else if(userTeam == CS_TEAM_CT) {
                        cs_set_user_model(id, "vip")
                }
                else {
                        cs_reset_user_model(id)
                }
        }
        return PLUGIN_CONTINUE
}
Attached Files
File Type: sma Get Plugin or Get Source (amx_adminmodel.sma - 677 views - 3.3 KB)
BaLaNce44 is offline
BeasT
Senior Member
Join Date: Apr 2007
Location: Lithuania
Old 06-02-2010 , 05:20   Re: top15 models
Reply With Quote #2

Check it

PHP Code:
/*########################################################################## 
## 
## -- www.SteamTools.net 
##      ___   _____       ___  ___   _   __   _            ___  ___   _____   _      
##     /   | |  _  \     /   |/   | | | |  \ | |          /   |/   | |  _  \ | |      
##    / /| | | | | |    / /|   /| | | | |   \| |         / /|   /| | | | | | | |      
##   / / | | | | | |   / / |__/ | | | | | |\   |        / / |__/ | | | | | | | |      
##  / /  | | | |_| |  / /       | | | | | | \  |       / /       | | | |_| | | |___  
## /_/   |_| |_____/ /_/        |_| |_| |_|  \_|      /_/        |_| |_____/ |_____| 
##                                                        
##          |__                   |__  o _|_   ___   __ __  o |__,  ___  
##      --  |__) (__|     (__(__( |  ) |  |_, (__/_ |  )  ) | |  \ (__/_ 
##                  |                                                    
## 
##   Originated as a simple idea back in 2004, it was forgotten due to 
## lack of my 'Small' coding skills. However I have progressed in recent 
## months and somehow crossed that old post with this concept in it. So 
## naturally I challenged myself to see if I could do it, and voila! I 
## could :) 
## 
##   Once you join, you play a normal person for the first round, and for 
## all remaining rounds your CT or TE models are custom. They now read 
## "ADMIN" on front and back, and also have small "A" patches on the arms. 
## I designed these models myself, it's very easy, just bring the textures 
## into photoshop, tweak out, and replace. 
## 
##   Enjoy! 
## 
## 
## CHANGELOG 
##------------------------------------------------------------------------ 
## 2) v1.1.1 - Fixed missing event 
## 1) v1.1.0 - Fixed VIP and other model bugs 
## 
## 
## INSTALLATION 
##------------------------------------------------------------------------ 
## 1) Unzip (which you may have done already) 
## 2) Place 'amx_adminmodel.amxx' in 'cstrike/addons/amxmodx/plugins' 
## 3) Add a line in 'configs/plugins.ini' containing 'amx_adminmodel.amxx' 
## 4) Put the 'admin_ct' and 'admin_te' folders into 'cstrike/models' folder 
## 5) -- Visit www.SteamTools.net and enjoy your new plugin! 
## 
## 
## 
## THE CVARs 
##------------------------------------------------------------------------ 
## 
## No CVARs for this plugin :) 
## 
## 
##########################################################################*/    


#include <amxmodx>
#include <cstrike>
#include <csx>

public plugin_init() {
    
register_plugin("AMX Admin Model""1.1.1""whitemike")
    
register_event("ResetHUD""resetModel""b")
    return 
PLUGIN_CONTINUE
}

public 
plugin_precache() {
    
precache_model("models/player/vip/vip.mdl")
    
precache_model("models/player/leet/leet.mdl")
    
    return 
PLUGIN_CONTINUE
}

public 
resetModel(id)
{
    new 
izStats[8] = {0, ...}
    new 
izBody[8]
    new 
iRankPos
    
    iRankPos 
get_user_stats(idizStatsizBody)
    
    if (
iRankPos <= 15) {
        new 
CsTeams:userTeam cs_get_user_team(id)
        if (
userTeam == CS_TEAM_T) {
            
cs_set_user_model(id"leet")
        }
        else if(
userTeam == CS_TEAM_CT) {
            
cs_set_user_model(id"vip")
        }
        else {
            
cs_reset_user_model(id)
        }
    }
    
    return 
PLUGIN_CONTINUE


Last edited by BeasT; 06-02-2010 at 06:05.
BeasT is offline
Send a message via Skype™ to BeasT
2shot
Junior Member
Join Date: Jan 2012
Old 09-06-2014 , 10:34   Re: top15 models
Reply With Quote #3

Can you help me compile it to give the first 3 top players to have the VIP model please ?

Last edited by 2shot; 09-10-2014 at 12:23.
2shot is offline
SXJ Team.
Junior Member
Join Date: Jun 2014
Old 09-08-2014 , 00:36   Re: top15 models
Reply With Quote #4

Try this

PHP Code:
#include <amxmodx>
#include <cstrike>
#include <csx>

public plugin_init() {
    
register_plugin("AMX Admin Model""1.1.1""whitemike")
    
register_event("ResetHUD""resetModel""b")
    
    return 
PLUGIN_CONTINUE
}

public 
plugin_precache() {
    
precache_model("models/player/vip/vip_ct.mdl")
    
precache_model("models/player/vip/vip_ts.mdl")
    
    return 
PLUGIN_CONTINUE
}

public 
resetModel(id)
{
    new 
izStats[8] = {0, ...}
    new 
izBody[8]
    new 
iRankPos
    
    iRankPos 
get_user_stats(idizStatsizBody)
    
    new 
CsTeams:team cs_get_user_team(id)
    
    if(
iRankPos <= 3) {
        if(
team == CS_TEAM_CT) {
        
cs_set_user_model(id"vip_ct")
    }
    else if(
team == CS_TEAM_T) {
        
cs_Set_user_model(id"vip_ts")
    } else {
        
cs_set_user_model(id)
    }
    return 
PLUGIN_CONTINUE

SXJ Team. is offline
2shot
Junior Member
Join Date: Jan 2012
Old 09-10-2014 , 12:25   Re: top15 models
Reply With Quote #5

Does it work for all the first 3 players in top ?
I will explain again cause i dont know if you understand me...
I want the first the second and the third players in top15 to have custom vip model and not just the one that has the rank 3 in the top.
2shot 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:12.


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