AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Admin Models Dont Work =( (https://forums.alliedmods.net/showthread.php?t=113414)

shawlinn 12-26-2009 12:51

Admin Models Dont Work =(
 
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



Arkshine 12-26-2009 13:26

Re: Admin Models Dont Work =(
 
With "mymodel" you have to follow the rules :

models/player/mymodel/mymodel.mdl

shawlinn 12-26-2009 21:14

Re: Admin Models Dont Work =(
 
yea, but i dont wrong the directory

what is the problem :S ? Try it please

Hx7r 12-26-2009 22:21

Re: Admin Models Dont Work =(
 
precache_model("models/player/adminCT/adminCT.mdl")
precache_model("models/player/adminT/adminT.mdl")

Doc-Holiday 12-26-2009 23:30

Re: Admin Models Dont Work =(
 
Quote:

Originally Posted by Hx7r (Post 1032421)
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.

shawlinn 12-27-2009 12:49

Re: Admin Models Dont Work =(
 
okay thx


All times are GMT -4. The time now is 04:02.

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