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

Need to detect is admin


Post New Thread Reply   
 
Thread Tools Display Modes
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 03-18-2005 , 13:53  
Reply With Quote #22

Sorry I didn't notice this one before.

Tsk, tsk, qwerty...

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") } public ReseHud(id) {     // firstly, fix those stupid indentation warnings     if (!(get_user_flags(id)&MODEL_ACCESS)) {         return PLUGIN_HANDLED     }     // previously: cs_set_user_model(id,"models/admin/admin.mdl")     // cs_set_user_model doesn't take a full model path, just the name     cs_set_user_model(id,"admin");     return PLUGIN_CONTINUE } public plugin_precache()   {        // previously: precache_model("models/admin/admin.mdl")     // that isn't the correct path! it has to be in the players directory     precache_model("models/player/admin/admin.mdl"); }

Of course you may have figured this out by now.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Old 07-31-2014, 12:53
suundz
This message has been deleted by suundz.
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 15:40.


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