Raised This Month: $ Target: $400
 0% 

help with speeds


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ng1200
Member
Join Date: May 2005
Old 03-11-2006 , 12:58   help with speeds
Reply With Quote #1

heres my code:
Code:
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #include <tsx> #include <engine> #include <fun> #define PLUGIN "Ninja Mode" #define VERSION "1.0" #define AUTHOR "CBM" new ninjaed[33] public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)     register_concmd("amx_ninja","ninja",ADMIN_IMMUNITY,"<name> <1/0> - Sets Player Ninja mode")     // Add your code here... } public client_PostThink(id) {     if(ninjaed[id] == 1)     {         set_user_rendering(id,kRenderFxGlowShell,0,0,0,kRenderTransAlpha,8)     }     else     {         set_user_rendering(id,kRenderFxGlowShell,0,0,0,kRenderTransAlpha,255)     } } public ninja(id) {     new onoff[32],player[32]     read_argv(1,player,31)     read_argv(2,onoff,31)       new tid = cmd_target(id,player,0)     new onoff2 = str_to_num(onoff)     if(equali(onoff,"") || equali(player,"")) return PLUGIN_HANDLED     if(onoff2 != 1 && onoff2 != 0) return PLUGIN_HANDLED     if(!tid)     {         client_print(id,print_console,"[Ninja] Target Not Found")         return PLUGIN_HANDLED     }     if(onoff2 == 1)     {           if(ninjaed[id] == 1)         {             return PLUGIN_HANDLED         }         ts_giveweapon(tid,34,1,0)         set_user_footsteps(tid,1)         set_user_health(tid,300)         set_user_maxspeed(tid,600.0)         client_print(tid,print_chat,"[Ninja] An Admin Has Set Ninja Mode on you.")         ninjaed[tid] = 1         return PLUGIN_HANDLED     }     if(onoff2 == 0)     {         if(ninjaed[id] == 0)         {             return PLUGIN_HANDLED         }         set_user_footsteps(tid,0)         set_user_health(tid,100)         set_user_maxspeed(tid,400.0)         ninjaed[tid] = 0         client_print(tid,print_chat,"[Ninja] An Admin Has Disabled Ninja Mode on you.")         return PLUGIN_HANDLED     }     return PLUGIN_HANDLED }
the only problem with it, is when u stop the ninja mode, the high speed stays.
help?

p.s: whats the default speed? 0.0 didnt work
ng1200 is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 03-11-2006 , 13:12  
Reply With Quote #2

250.0
VEN 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 20:17.


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