Raised This Month: $ Target: $400
 0% 

Combing scripts


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 11-22-2006 , 21:50   Re: Combing scripts
Reply With Quote #3

Code:
#include <amxmodx> #include <amxmisc> #include <fun> #include <cstrike> #define PLUGIN "Model_Me_Mod123" #define VERSION "1.01b" #define AUTHOR "Da_sk8rboy" public plugin_init() {             register_plugin(PLUGIN, VERSION, AUTHOR)         register_concmd("amx_modelme", "cmd_modelme",0, "<target> <model num>") } public cmd_modelme1(id, level, cid) {         if (!cmd_access(id, level, cid, 3))                 return PLUGIN_HANDLED                 new Arg1[32], Arg2[3]   read_argv(1, Arg1, 31)         read_argv(1, Arg2, 2) new player = cmd_target(id, Arg1, 0)         //Flags:         //1 - obey immunity         //2 - allow yourself         //4 - must be alive         //8 - can't be bot                 if (!player)         {                 console_print(id, "[Model_Me_Mod] player %s could not be found or targetted!", Arg1)                 return PLUGIN_HANDLED         }         else         {             switch(str_to_num(Arg2)) { case 2: cs_set_user_model(player, "modelme2")       case 3: cs_set_user_model(player, "modelme3")       default: cs_set_user_model(player, "modelme1")         } }         return PLUGIN_HANDLED } public plugin_precache() {         precache_model("models/player/modelme1/modelme1.mdl") precache_model("models/player/modelme2/modelme2.mdl") precache_model("models/player/modelme3/modelme3.mdl") }

Indent next time please. ;)
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX 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 06:55.


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