Raised This Month: $12 Target: $400
 3% 

Admin Models (Updated v1.1.1)


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Admin Commands       
KaOs
Senior Member
Join Date: Apr 2004
Old 03-18-2005 , 03:01   Admin Models (Updated v1.1.1)
Reply With Quote #1

Current Version: 1.1.1

Original concept for this plugin: (just for shits and giggles)
http://forums.alliedmods.net/showthread.php?t=4745

All of these people tried to contribute in some way:
QwertyAccess
sanaell
devicenull
JJkiller
Martel (thx)


Changes from previous versions:
* (1.1.1) Fixed the "resetHud" missing problem (:Martel)
* (1.0.1) Fixed models not changing after a while
* (1.0.1) Fixed VIP bug


Plans for next major version (v2):
* Fix that stupid you have to wait a round before model is changed -- thing.
* CVAR or command to turn plugin off / reset models


You MUST download the models at the bottom of this post.
Unless you are using your own..

Pictures of the models:
http://www.steamtools.net/files/plug.../modelpic1.jpg (CT)
http://www.steamtools.net/files/plug.../modelpic2.jpg
http://www.steamtools.net/files/plug.../modelpic3.jpg
http://www.steamtools.net/files/plug.../modelpic4.jpg (TE)
http://www.steamtools.net/files/plug.../modelpic5.jpg
http://www.steamtools.net/files/plug.../modelpic6.jpg

Required modules:
CStrike

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 :) 
## 
## 
##########################################################################*/
Attached Files
File Type: sma Get Plugin or Get Source (amx_adminmodel.sma - 145374 views - 3.4 KB)
File Type: zip adminmodels.zip (3.00 MB, 108226 views)
__________________

Last edited by Zenith77; 10-04-2007 at 17:50.
KaOs is offline
Send a message via AIM to KaOs Send a message via MSN to KaOs
Bend3R
Veteran Member
Join Date: Oct 2004
Location: Sweden (Stockholm)
Old 03-18-2005 , 03:33  
Reply With Quote #2

very great job you stole my ide i think make this when my computer is fixed
Ka0s
Bend3R is offline
alimontanaaa
New Member
Join Date: Jan 2010
Old 01-22-2010 , 17:51   Re: Admin Models (Updated v1.1.1)
Reply With Quote #3

Quote:
Originally Posted by Bend3R View Post
very great job you stole my ide i think make this when my computer is fixed
Ka0s

I can't see my models im my server, Why?!
alimontanaaa is offline
loN
Junior Member
Join Date: Apr 2010
Old 04-18-2010 , 08:18   Re: Admin Models (Updated v1.1.1)
Reply With Quote #4

Hi!

I'm new here, but I have a request too...
Well, I'm not the best at scripting so:

#include <amxmodx>
#include <amxmisc>
#include <cstrike>

public plugin_init() {
register_plugin("AMX Admin Model", "1.1.1", "whitemike")
register_event("ResetHUD", "resetModel", "b") // ResetHUD shouldn't be a place to set models
return PLUGIN_CONTINUE // This return shouldn't exist
}

public plugin_precache() {
precache_model("models/player/admin_ct/admin_ct.mdl") // hardcoded model
precache_model("models/player/admin_te/admin_te.mdl") // hardcoded model

return PLUGIN_CONTINUE // This return shouldn't exist
}

public resetModel(id, level, cid) { // level and cid have no reason to be here, have no effect and may confuse scripters
if (get_user_flags(id) & ADMIN_KICK) {
new CsTeams:userTeam = cs_get_user_team(id) // switch statement would be more appropriated
if (userTeam == CS_TEAM_T) {
cs_set_user_model(id, "admin_te") // hardcoded model
}
else if(userTeam == CS_TEAM_CT) {
cs_set_user_model(id, "admin_ct") // hardcoded model
}
else {
cs_reset_user_model(id)
}
}

return PLUGIN_CONTINUE // again a return with no effect
}


The models can not be in "active status" while you wait for the next round, or just restart the actual round.
I think the "register_event" is the problem, so I should make it to "register_spawn", but yeah... I'm not a scripter.
I've took a look at
ConnorMcLeod's Player Models script, it's really amazing but it can not supports the name or IP access, so it's not the best for me...

If anyone can fix this "wait for the next round to see the models" please fix it. I did not want to make a new request, because it already exists but it works badly.
loN is offline
KaOs
Senior Member
Join Date: Apr 2004
Old 03-18-2005 , 03:35  
Reply With Quote #5

Thx alot, and uhh .. Stole your idea? Please tell

BTW I just updated with some screenshots!
__________________
KaOs is offline
Send a message via AIM to KaOs Send a message via MSN to KaOs
Bend3R
Veteran Member
Join Date: Oct 2004
Location: Sweden (Stockholm)
Old 03-18-2005 , 03:50  
Reply With Quote #6

you stole 90% of my ide but my computer will not show something
so i cant work on my plugin so i dont need it more because you make it now

my plugin was for only 1 admin have 1 skin in CT and a other T skin when admin join T
it was my ide
Bend3R is offline
KaOs
Senior Member
Join Date: Apr 2004
Old 03-18-2005 , 03:56  
Reply With Quote #7

Well i'm sorry I didn't know ..

as you can see this idea has been running through my head since early '04, I clearly didn't "steal" it from you
__________________
KaOs is offline
Send a message via AIM to KaOs Send a message via MSN to KaOs
Bend3R
Veteran Member
Join Date: Oct 2004
Location: Sweden (Stockholm)
Old 03-18-2005 , 03:58  
Reply With Quote #8

np because i didn't have post it because my computer works not
so.. No Problem ka0s ;)
Bend3R is offline
KaOs
Senior Member
Join Date: Apr 2004
Old 03-18-2005 , 04:00  
Reply With Quote #9

Thx alot, maybe i'll add you to the credits anyways ;)
__________________
KaOs is offline
Send a message via AIM to KaOs Send a message via MSN to KaOs
Bend3R
Veteran Member
Join Date: Oct 2004
Location: Sweden (Stockholm)
Old 03-18-2005 , 05:38  
Reply With Quote #10

you need not add me to credits its fine ;)
Bend3R 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 21:10.


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