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 , 09:30   Re: Set_user_maxspeed HELP
Reply With Quote #3

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

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

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

public 
event_curweapon(id)
{
    if( !
is_user_alive(id) )
    {
        return 
PLUGIN_HANDLED;
    }
    
    if( 
BoughtSpeed[id] )
    {
        
set_user_maxspeedidspeedyouwant )
    }
    
    return 
PLUGIN_HANDLED;
}  
public 
buy_speed(id)
{
client_print(id,print_chat,"Buy speeds")
speeds_time[id] = 20;
set_task(1.0"speeds_buy"56465+id""0"b");
}
public 
speeds_buy(taskid);
{
    new 
id taskid-56465;
    if(
speed_time[id] > 0)
    {
        
set_hudmessage(01702550.440.7506.01.0);
        
ShowSyncHudMsg(id,gSyncMessage,"Speeds %d"speed_time[id]);
        
speed_time[id]--;
    }
    else
    {
        ????
        
remove_task(taskid);
    }

Errors ;/

Can someone fix this?
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