Raised This Month: $ Target: $400
 0% 

Item duration


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
rodrigo286
Veteran Member
Join Date: Sep 2010
Location: Brazil, São Paulo
Old 03-28-2011 , 17:30   Item duration
Reply With Quote #1

How to stay the effect of speed on all round and only leave when the player go to another team ...

PHP Code:
case 0:
{
if( 
HasSpeedid ] )
{
allready_haveid );
return 
PLUGIN_HANDLED;
}
if( 
whichmoney get_pcvar_numgSpeedCost ) )
{
dont_haveid );
return 
PLUGIN_HANDLED;
}
fm_set_user_maxspeedidget_pcvar_floatgSpeedCvar ) );
client_printidprint_chat"%L"id"DRSHOP_SPEED_ITEM" );
fm_set_user_moneyidwhichmoney get_pcvar_numgSpeedCost ) );
client_sound_playid );
HasSpeedid ] = true;

Regards.
rodrigo286 is offline
rodrigo286
Veteran Member
Join Date: Sep 2010
Location: Brazil, São Paulo
Old 03-29-2011 , 13:25   Re: Item duration
Reply With Quote #2

I want that the effect duration in all rounds.

Please help me!

Thanks 4 all!
rodrigo286 is offline
madeitout
Member
Join Date: Jun 2008
Old 03-29-2011 , 15:20   Re: Item duration
Reply With Quote #3

speed is reset when the user switches weapons, add this so the speed is set after the weapon switch
PHP Code:
public plugin_init()
{
    
register_event("CurWeapon""event_curweapon","be");
}

public 
event_curweapon(id)
{
    if (
HasSpeedid ])
        
fm_set_user_maxspeedidget_pcvar_floatgSpeedCvar ) ); 

__________________
madeitout is offline
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 14:40.


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