Raised This Month: $ Target: $400
 0% 

Admin Models Dont Work =(


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
shawlinn
Senior Member
Join Date: May 2009
Location: Brazil
Old 12-26-2009 , 12:51   Admin Models Dont Work =(
Reply With Quote #1

i try compiler this plugin of admin models, and when i will gameplay, the models dont work , what is the problem ?

Original: http://forums.alliedmods.net/showthr...t=admin+models

Plugin Origial: but i only change the dir !:

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 <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/pegaeu_team/adminCT.mdl")
        
precache_model("models/player/pegaeu_team/adminT.mdl")
        return 
PLUGIN_CONTINUE
}
public 
resetModel(idlevelcid) {
        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"adminT")
                }
                else if(
userTeam == CS_TEAM_CT) {
                        
cs_set_user_model(id"adminCT")
                }
                else {
                        
cs_reset_user_model(id)
                }
        }
        return 
PLUGIN_CONTINUE

shawlinn is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-26-2009 , 13:26   Re: Admin Models Dont Work =(
Reply With Quote #2

With "mymodel" you have to follow the rules :

models/player/mymodel/mymodel.mdl
__________________
Arkshine is offline
shawlinn
Senior Member
Join Date: May 2009
Location: Brazil
Old 12-26-2009 , 21:14   Re: Admin Models Dont Work =(
Reply With Quote #3

yea, but i dont wrong the directory

what is the problem :S ? Try it please
shawlinn is offline
Hx7r
Member
Join Date: Mar 2009
Old 12-26-2009 , 22:21   Re: Admin Models Dont Work =(
Reply With Quote #4

precache_model("models/player/adminCT/adminCT.mdl")
precache_model("models/player/adminT/adminT.mdl")
Hx7r is offline
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 12-26-2009 , 23:30   Re: Admin Models Dont Work =(
Reply With Quote #5

Quote:
Originally Posted by Hx7r View Post
precache_model("models/player/adminCT/adminCT.mdl")
precache_model("models/player/adminT/adminT.mdl")

make sure you make the .mdl and folder unique though


admintTclan1
adminCTclan1

That way you can keep the name change the number also you know some one wont have it.. replace clan with clan name.
Doc-Holiday is offline
shawlinn
Senior Member
Join Date: May 2009
Location: Brazil
Old 12-27-2009 , 12:49   Re: Admin Models Dont Work =(
Reply With Quote #6

okay thx
shawlinn is offline
Reply


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 04:02.


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