Raised This Month: $ Target: $400
 0% 

need a simple explanation.....


Post New Thread Reply   
 
Thread Tools Display Modes
Squallkins
AlliedModders Donor
Join Date: Mar 2005
Old 07-27-2005 , 15:43  
Reply With Quote #21

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




public plugin_init() {
register_plugin("ADMIN VIP" , "1.0" , ".:{EK}:. SQUALL")
register_event("ResetHUD","admin_vip","b")
return PLUGIN_CONTINUE
}


public plugin_precache() {
precache_model("models/player/vip/vip.mdl")
return PLUGIN_CONTINUE
}

public admin_vip(id, level, cid) {
if (get_user_flags(id) & ADMIN_KICK) {
//cs_set_user_vip (id,1) <--this is wat i used
cs_set_user_model(id,"vip")
}

return PLUGIN_CONTINUE


}
Squallkins is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 07-27-2005 , 23:55  
Reply With Quote #22

Use cs_get_user_team (I think that's the function) and see if they are on a team before setting their model or VIP status, because ResetHUD will be called when they join, and thus the game thinks they're a VIP, so they can't switch roles. However, if they're already on a team, they won't have to worry about it. Although, they still won't be able to switch teams later.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX 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 07:31.


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