Raised This Month: $51 Target: $400
 12% 

Changing maxspeed perm.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Lure.d
BANNED
Join Date: Dec 2009
Location: Lithuania->USA
Old 06-08-2010 , 03:56   Changing maxspeed perm.
Reply With Quote #1

This is tutorial for people that PM me asking how to change maxspeed permenantely.
Its done in a really easy way, and in this tutorial it will be done if play player is admin(ADMIN_IMMUNITY FLAG).

PHP Code:
#include <amxmodx> 
#include <fun> //we include fun since it has those cool functions 

#define ADMIN_FLAG ADMIN_IMMUNITY 

public plugin_init( ) 

     
register_plugin"Admin maxspeed""0.0.1""Lure.d" ); 
      
     
register_event"CurWeapon""event_changeweapon""be""1=1" ); 
     
//CurWeapon is an event which is activated when an user changes his weapon 
     //we hook event_changeweapon function on it so we could execute some commands in it 
     //we look on connected and alive users 
}

public 
event_changeweaponclient // yeah thats right, its our weapon event function 

     if( 
get_user_flagsclient ) & ADMIN_FLAG //again if he's admin
          
set_user_maxspeedclient500.0 ); //if he is lets give him some maxspeed

So all we've done, is just checking if the player was admin when he changed his weapon,
and if so we gave him some maxspeed.

Have fun
Lure.d is offline
Send a message via Skype™ to Lure.d
SaM.ThE.MaN
Senior Member
Join Date: Jan 2010
Old 06-08-2010 , 05:56   Re: Changing maxspeed perm.
Reply With Quote #2

huh! , nice one lol , as you said its really simple
SaM.ThE.MaN is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 06-08-2010 , 06:12   Re: Changing maxspeed perm.
Reply With Quote #3

You should not used curWeapon, it's called each time your fire and switch weapon, you don't need to set the speed so much time.
__________________
Arkshine is offline
SaM.ThE.MaN
Senior Member
Join Date: Jan 2010
Old 06-08-2010 , 06:19   Re: Changing maxspeed perm.
Reply With Quote #4

O.o , i c i c
__________________
  • Project : Level Plugin
o [||||||||||] - 100%
  • Project : OnePieceMod
o [||||||||||] - 20%
SaM.ThE.MaN is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 06-10-2010 , 09:23   Re: Changing maxspeed perm.
Reply With Quote #5

This also only works for CS.

EDIT: Fuck it, trashed.
__________________

Last edited by Hawk552; 06-10-2010 at 09:27.
Hawk552 is offline
Send a message via AIM to Hawk552
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 02:55.


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