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_changeweapon( client ) // yeah thats right, its our weapon event function
{
if( get_user_flags( client ) & ADMIN_FLAG ) //again if he's admin
set_user_maxspeed( client, 500.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