Raised This Month: $ Target: $400
 0% 

Admin Models (Updated v1.1.1)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SquR
New Member
Join Date: Feb 2007
Old 03-16-2008 , 06:19   Re: Admin Models (Updated v1.1.1)
Reply With Quote #1

Hmm. i cant get my own models to work. If i call the model Fadmin_te.mdl and Fadmin_ct.mdl what have i to change in sma file ?
SquR is offline
Battousai-sama
Veteran Member
Join Date: Jul 2007
Old 03-16-2008 , 13:07   Re: Admin Models (Updated v1.1.1)
Reply With Quote #2

the names of fadmin to same as original
__________________
Battousai-sama is offline
Send a message via MSN to Battousai-sama
micke1101
Veteran Member
Join Date: Jan 2008
Location: Banned-town
Old 03-21-2008 , 04:47   Re: Admin Models (Updated v1.1.1)
Reply With Quote #3

if i want it to give all t players 1 model and all ct another model is this right? or am i out and cycle?
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/clonetrooper_ct/clonetrooper_ct.mdl")
        precache_model("models/player/battledroid_te/battledroid_te.mdl")
        return PLUGIN_CONTINUE
}
public resetModel(id, level, cid) {

                new CsTeams:userTeam = cs_get_user_team(id)
                if (userTeam == CS_TEAM_T) {
                        cs_set_user_model(id, "battledroid_te")
                }
                else if(userTeam == CS_TEAM_CT) {
                        cs_set_user_model(id, "clonetrooper_ct")
                }
                else {
                        cs_reset_user_model(id)
                }
        }
        return PLUGIN_CONTINUE
}
micke1101 is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 03-21-2008 , 10:21   Re: Admin Models (Updated v1.1.1)
Reply With Quote #4

Have you tested it?

Also public resetModel(id) {

(level & cid are for admins)
__________________
bmann_420 is offline
tgskills
Member
Join Date: Jul 2007
Location: Charlotte, North Carolin
Old 03-21-2008 , 14:58   Re: Admin Models (Updated v1.1.1)
Reply With Quote #5

www.SteamTools.net doesnt work
tgskills is offline
tgskills
Member
Join Date: Jul 2007
Location: Charlotte, North Carolin
Old 03-21-2008 , 15:05   Re: Admin Models (Updated v1.1.1)
Reply With Quote #6

I dont see a amx_adminmodels.amxx
Do I take this..

#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/admin_ct/admin_ct.mdl")
precache_model("models/player/admin_te/admin_te.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, "admin_te")
}
else if(userTeam == CS_TEAM_CT) {
cs_set_user_model(id, "admin_ct")
}
else {
cs_reset_user_model(id)
}
}

return PLUGIN_CONTINUE
}

Put it in notepad and tittle it that?

Thanks.
tgskills is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 03-21-2008 , 16:08   Re: Admin Models (Updated v1.1.1)
Reply With Quote #7

YOu have to compile an sma (which is done in any txt editor) Read the docs for more info.

But you click on "get plugin" which compiles it for you...... Like all other plugins on this forum
__________________
bmann_420 is offline
tgskills
Member
Join Date: Jul 2007
Location: Charlotte, North Carolin
Old 03-24-2008 , 05:59   Re: Admin Models (Updated v1.1.1)
Reply With Quote #8

Ok I know Ive bothered quite a few of you on this subject but I need one more thing. I put this on my server and it crashed it so the server people took it off. does anyone know why it crashed, and/or how I can get it working. And
2 does anyone know where I can get admin models/plugin from? Ive looked on google for 2 days litterally and havent found a thing. Itd be great if someone could help me out.

Thanks guys!
tgskills is offline
tgskills
Member
Join Date: Jul 2007
Location: Charlotte, North Carolin
Old 03-24-2008 , 06:09   Re: Admin Models (Updated v1.1.1)
Reply With Quote #9

Ok I know Ive bothered quite a few of you on this subject but I need one more thing. I put this on my server and it crashed it so the server people took it off. does anyone know why it crashed, and/or how I can get it working. And
2 does anyone know where I can get admin models/plugin from? Ive looked on google for 2 days litterally and havent found a thing. Itd be great if someone could help me out.

Thanks guys!
tgskills is offline
laidbackplaya713
Member
Join Date: Feb 2008
Location: D-ToWn to H-ToWn/North R
Old 03-24-2008 , 06:57   Re: Admin Models (Updated v1.1.1)
Reply With Quote #10

i have unzipped the admin files and have .amxx and .sma files. but i only found admin models for CT. where are the T admin models??
__________________
laidbackplaya713 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 10:58.


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