Raised This Month: $ Target: $400
 0% 

Broertjes Admin Models


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
broertje
Senior Member
Join Date: Mar 2005
Old 10-23-2005 , 11:01   Broertjes Admin Models
Reply With Quote #1

I Think This Already has Been Created,But I'm A Beginner Scripter And...
So If You Say /modelmenu In Game A Menu Shows Up(Only Admins)
And Then You Can Choose A Model...
Pls Dont Say Wrong Forum Or Things Like This,There No forum Where You Can Give Points Or Something Like That And I Dont Want To Add This Plugin Because Its Already Been Created...
Code:
#include <amxmodx> #include <amxmisc> #include <cstrike> #define PLUGIN "Broertjes Admin Models" #define VERSION "1.0" #define AUTHOR "Broertje" public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)         register_clcmd("say /modelmenu", "sayMM", ADMIN_ALL, "- Show Menu With Models For Admins.")          register_menucmd(register_menuid("MODEL_MENU"),1023,"giveStuff"); } public plugin_precache()       {     precache_model("models/player/wolverine/wolverine.mdl")     precache_model("models/player/homer1/homer1.mdl")     precache_model("models/player/jesus/jesus.mdl")     precache_model("models/player/gs/gs.mdl")     precache_model("models/player/aquafresh/aquafresh.mdl") } public sayMM(id) {     new menu[192]     new keys = (1<<0)|(1<<1)|(1<<2)|(1<<3)|(1<<4)|(1<<5)           format(menu, 191, "\yModels:^n\w^n1. Wolverine^n2. Homer^n3. Jesus^n4. Alien^n5. AquaFresh")     show_menu(id, keys, menu, -1, "MODEL_MENU")       return PLUGIN_HANDLED } public giveStuff(id, key) {     switch(key)     {         case 0:           {             cs_set_user_model(id, "wolverine")         }         case 1:           {             cs_set_user_model(id, "homer1")         }     case 2:           {             cs_set_user_model(id, "jesus")         }         case 3:           {             cs_set_user_model(id, "gs")         }          case 4:           {             cs_set_user_model(id, "aquafresh")         }     }     return PLUGIN_HANDLED;    }

Points: 4.5/10 WOOOOHOOOOO
broertje is offline
 



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 23:37.


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