Raised This Month: $ Target: $400
 0% 

Model toggle help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
10Stars
Senior Member
Join Date: Mar 2006
Location: New Jersey
Old 10-06-2006 , 06:46   Model toggle help
Reply With Quote #1

MMmk this was completely private, but i think ill release it if i can get it so that when someone says /nosource that it removes the source models:::*Yet i highly doubt it would be approved, due to the fact that it will only let users toggle between 1.6 models and CSS models.

Code:
#include <amxmodx> #include <fakemeta> #include <engine> #include <cstrike> new PLUGIN_NAME[] = "Countermodels" new PLUGIN_VERSION[] =  "6.2" new PLUGIN_AUTHOR[] =   "10$74|2$" new hasModels[33] public plugin_init() {     register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR)     register_event("CurWeapon", "Event_CurWeapon", "be", "1=1")     register_clcmd("say /source", "cmdModels", 0) } public cmdModels(id) {     hasModels[id] = 1 } public client_connect(id) {     hasModels[id] = 0 } public plugin_precache() {     precache_model("models/CSS/v_ak47.mdl") } public Event_CurWeapon(id) {     if(!is_user_alive(id) || !hasModels[id])         return PLUGIN_CONTINUE         new temp[2], weapon = get_user_weapon(id, temp[0], temp[1])     if(weapon == CSW_KNIFE)     {         entity_set_string(id, EV_SZ_viewmodel,"models/CSS/v_knife.mdl")     }         return PLUGIN_CONTINUE }

I stopped at 6.2 because i couldnt figure out how to remove the models once a user has switched to them.

Any help o.o
__________________
www.6o9clan.com

Im 10 $74|2$.
10Stars is offline
Send a message via AIM to 10Stars Send a message via MSN to 10Stars
 



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 04:46.


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