Raised This Month: $ Target: $400
 0% 

amx_speed by Petey B


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ZiP*
Senior Member
Join Date: Jul 2004
Old 04-05-2005 , 16:17  
Reply With Quote #10

He hasn't done it yet...

Code:
 /*  Fast Movement, v0.2  By Petey B thanks to KRoT@L  Usage: amx_speed <nick, part nick, @TEAM or *ALL> <Speed>  */  #include <amxmodx>  #include <fun>  #include <amxmisc>  new bool:speedy[33]  new Float:speedvar[33]  public client_connect(id)  {     speedy[id] = false     speedvar[id] = 250.0  }  public admin_speed(id,level,cid){     if (!cmd_access(id,level,cid,2)){         console_print(id, "you arn't good enough to use this command")         return PLUGIN_HANDLED     }     server_cmd("sv_maxspeed 99999999")     new i     new arg[32], arg2[32]     read_argv(1, arg, 31)     read_argv(2, arg2, 31)     if(arg[0] == '@')     {         new users[32], inum         get_players(users, inum, "ae", arg[1])         if(inum == 0)         {             console_print(id, "No users in such team Idiot")             return PLUGIN_HANDLED         }         for(i = 0; i < inum; ++i)         {             speedvar[users[i]] = float(str_to_num(arg2))             set_user_maxspeed(users[i], speedvar[users[i]])             speedy[users[i]] = true             client_print(0, print_chat, "AMX: the %s's speed is %s", arg, arg2)         }     }     else if(arg[0] == '*')     {         new users[32], inum         get_players(users, inum)         if(inum == 0)         {             console_print(id, "No users in such team idiot")             return PLUGIN_HANDLED         }         for(i = 0; i < inum; ++i)         {             speedvar[users[i]] = float(str_to_num(arg2))             set_user_maxspeed(users[i], speedvar[users[i]])             speedy[users[i]] = true             client_print(0, print_chat, "AMX: Everybody's speed is %s", arg2)         }     }     else     {         new player = cmd_target(id, arg, 0)         if(!player){             console_print(id, "you can't spell!!")             return PLUGIN_HANDLED         }         speedvar[player] = float(str_to_num(arg2))         set_user_maxspeed(player, speedvar[player])         speedy[player] = true         new name[32]         get_user_name(player, name, 31)         client_print(0, print_chat, "AMX: %s's speed is %s", name , arg2)     }     return PLUGIN_HANDLED  }  public switch_weapon(id)  {     if(speedy[id])     {         set_user_maxspeed(id, speedvar[id])     }     return PLUGIN_CONTINUE  }  public plugin_init() {     register_plugin("Fast Movement","0.2","Petey B")     register_concmd("amx_speed","admin_speed",ADMIN_KICK, "<nick, part of nick, @team, * all> <speed>")     register_event("CurWeapon", "switch_weapon", "be", "1=1")  }
ZiP* 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 09:40.


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