Raised This Month: $ Target: $400
 0% 

not


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
GXLZPGX
Veteran Member
Join Date: Sep 2009
Old 08-08-2010 , 09:08   Re: Set_user_maxspeed HELP
Reply With Quote #2

Quote:
Originally Posted by BeNq! View Post
Hi,

How do, using set_user_maxspeed / fm_set_user_maxspeed speed for buy 10 seconds and when you change weapons do not lose speed?

Sorry... My bad english. I'm from polish ...

-----------

[PL]

Witam,

Jak zrobic, przy uzyciu set_user_maxspeed / fm_set_user_maxspeed kupic to na 10 sekund szybkosc oraz przy zmianie broni nie traci sie predkosci?
When they buy something - set_task( 10.0, "eventcalled" )

For the speed:

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

new bool:BoughtSpeed[33]; //make this bool true when they buy the speed

public plugin_init()
{
    
register_event("CurWeapon""event_curweapon""be""1=1")
}

public 
event_curweapon(id)
{
    if( !
is_user_alive(id) )
    {
        return 
PLUGIN_HANDLED;
    }
    
    if( 
BoughtSpeed[id] )
    {
        
set_user_maxspeedidspeedyouwant )
    }
    
    return 
PLUGIN_HANDLED;

change "speedyouwant" to the speed you want obviously.

I could be wrong though.
__________________
Currently accepting payment US DOLLARS ONLY for custom plugins, contact me through PM.

Last edited by GXLZPGX; 08-08-2010 at 09:11.
GXLZPGX 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 00:05.


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