Raised This Month: $ Target: $400
 0% 

keeping speed after weapon change


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 01-18-2009 , 02:18   keeping speed after weapon change
Reply With Quote #1

PHP Code:
#include <amxmodx>
#include <fakemeta>

public plugin_init()
{
    
register_plugin("250 MaxSpeed""0.1""Exolent");
    
register_event("CurWeapon""event_CurWeapon""be""1=1");
}

public 
event_CurWeapon(id)
{
    
set_pev(idpev_maxspeed250.0);



Found this but would like to know how to use that if i have multiple classes of guys and they all haf different speeds?
Doc-Holiday is offline
Mlk27
Veteran Member
Join Date: May 2008
Old 01-18-2009 , 04:02   Re: keeping speed after weapon change
Reply With Quote #2

keeping old speed of those guys after they change weapons?
Mlk27 is offline
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 01-18-2009 , 04:16   Re: keeping speed after weapon change
Reply With Quote #3

In event cur weapon

PHP Code:
switch(class)
{
   case 
INFANTRY// set speed
   
case SNIPER// set speed
// and on... 
__________________
I am out of order!
grimvh2 is offline
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 01-18-2009 , 14:56   Re: keeping speed after weapon change
Reply With Quote #4

Quote:
Originally Posted by grimvh2 View Post
In event cur weapon

PHP Code:
switch(class)
{
   case 
INFANTRY// set speed
   
case SNIPER// set speed
// and on... 
how do i define class though? cuz there is a few different classes. all useing
issniper[33]
Doc-Holiday is offline
Old 01-18-2009, 15:41
hleV
This message has been deleted by hleV.
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 01:44.


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