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

Need to detect is admin


Post New Thread Reply   
 
Thread Tools Display Modes
KaOs
Senior Member
Join Date: Apr 2004
Old 08-10-2004 , 23:56  
Reply With Quote #11

It does. I made it print "Your model has been changed." (print is before the set model line) and it prints that for me and not regular users (works) but my model doesn't change.. someone wanna compile for me.. tell me if its just me or what?
KaOs is offline
Send a message via AIM to KaOs Send a message via MSN to KaOs
Ingram
Veteran Member
Join Date: May 2004
Old 08-11-2004 , 02:32  
Reply With Quote #12

can u post ur plugin here and the location of the model file?
Ingram is offline
KaOs
Senior Member
Join Date: Apr 2004
Old 08-12-2004 , 19:38  
Reply With Quote #13

Code:
#include <amxmodx> #include <cstrike> #define MODEL_ACCESS ADMIN_KICK public plugin_init() {   register_plugin("Model Changer","1.0","Qwerty Access")   register_event("ResetHUD", "ReseHud", "b")   return PLUGIN_CONTINUE } public ReseHud(id) {     if (!(get_user_flags(id)&MODEL_ACCESS)) {         return PLUGIN_HANDLED               }             cs_set_user_model(id,"models/admin/admin.mdl")         return PLUGIN_CONTINUE } public plugin_precache()   {        precache_model("models/admin/admin.mdl") }
KaOs is offline
Send a message via AIM to KaOs Send a message via MSN to KaOs
Ingram
Veteran Member
Join Date: May 2004
Old 08-12-2004 , 23:22  
Reply With Quote #14

what is the model name and path?
Ingram is offline
sanaell
Senior Member
Join Date: May 2004
Location: SamutPrakarn Thailand
Old 08-13-2004 , 03:37  
Reply With Quote #15

Use condition zero model
(the last of each team)


and force the player to use only one model if they choose the admin model


Like that
-ADMIN : take admin skin -(the last of choice)-
-*PLAYER : can take player skin (the four first)

....don t use an ADMIN because if the admin enter in team... the other can t see if he was Terrorist or Counter Terrorist
__________________
[email protected]
The Source of Pain is the Pain of Source
sanaell is offline
Send a message via MSN to sanaell
Ingram
Veteran Member
Join Date: May 2004
Old 08-13-2004 , 03:49  
Reply With Quote #16

o ur doing it wrong then, u gotta prevent the player from pickign the last model and force it on admins, can u give me the names of the admin model and the path to it?
Ingram is offline
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Old 08-13-2004 , 11:25  
Reply With Quote #17

Added a similar feature to http://forums.alliedmods.net/showthr...?p=42970#45439 ..Just set the cvar amx_admin_model to the model name for admins and add it to the config file
__________________
Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/
devicenull is offline
sanaell
Senior Member
Join Date: May 2004
Location: SamutPrakarn Thailand
Old 08-13-2004 , 11:31  
Reply With Quote #18

REMEMBER :

2 TEAMS

2 MODELS


....... if you don t made this you may have some trouble in game, instead the admin is immortal...
__________________
[email protected]
The Source of Pain is the Pain of Source
sanaell is offline
Send a message via MSN to sanaell
KaOs
Senior Member
Join Date: Apr 2004
Old 08-14-2004 , 15:35  
Reply With Quote #19

I was going to implement that once i got the plugin working. Why worry about something that doesn't apply yet?

The model name and path is admin/admin.mdl
KaOs is offline
Send a message via AIM to KaOs Send a message via MSN to KaOs
KaOs
Senior Member
Join Date: Apr 2004
Old 03-18-2005 , 01:45  
Reply With Quote #20

A year later and much more experienced. Perhaps some people still would like this code?

I'm releasing it in about 30 minutes !
__________________
KaOs is offline
Send a message via AIM to KaOs Send a message via MSN to KaOs
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 05:01.


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