Raised This Month: $ Target: $400
 0% 

not


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
BeNq!
Senior Member
Join Date: Mar 2009
Old 08-08-2010 , 10:20   Re: Set_user_maxspeed HELP
Reply With Quote #5

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

new bool:has_speed[33]

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

public 
event_curweapon(id)
{
    if(
has_speed[id] == true)
    {
        
set_user_maxspeed(id290.0)
    }
}

public 
cmdBuySpeed(id)
{
    if(!
has_speed[id])
    {
        
set_user_maxspeed(id450.0)
        
set_hudmessage(255000.00.006.01.0)
        
show_hudmessage(id"You brought Speed in %d sekund",has_speed[id])

        
        
set_task(20.0"cmdRemoveSpeed"id)
    }
    else
    {
        
client_print(idprint_chat"You already brought Speed!")
    }
}

public 
cmdRemoveSpeed(id)
{
    
set_user_maxspeed(id240.0// Set normal speed after 10 Seconds

?
BeNq! 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