Raised This Month: $32 Target: $400
 8% 

Bind


Post New Thread Reply   
 
Thread Tools Display Modes
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 06-21-2017 , 19:52   Re: Bind
Reply With Quote #21

Yes you did, check #11 ( my question ) and #10, #12 ( your answer ).
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 06-21-2017 at 19:53.
EFFx is offline
HoussamBenmouna
Member
Join Date: Jun 2017
Location: Morocco
Old 06-21-2017 , 19:54   Re: Bind
Reply With Quote #22

No I just talking about a player if he steams or he not steams
__________________
Working on Hulk's Mode (10%)

Last edited by HoussamBenmouna; 06-21-2017 at 19:56. Reason: no = not
HoussamBenmouna is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 06-21-2017 , 20:04   Re: Bind
Reply With Quote #23

Try dude

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

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"

new pCvarSpeedAfterReloadpCvarTimeForEnd
new bool:g_bIsWithMaxSpeed[33]

const 
TASK_SPEED =        2017

public plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
pCvarTimeForEnd register_cvar("speed_end_time""3.5")
    
pCvarSpeedAfterReload register_cvar("speed_after_reload""500.0")
    
    
register_event("CurWeapon""CurWeapon""be""1=1")
    
register_clcmd("+reload""playerReloaded")
}

public 
playerReloaded(id)
{
    if(
get_user_team(id) == && !g_bIsWithMaxSpeed[id])
    {
        
set_task(get_pcvar_float(pCvarTimeForEnd), "endSpeed"id TASK_SPEED)
        
setUserSpeed(id)
        
g_bIsWithMaxSpeed[id] = true
    
}
}

public 
CurWeapon(id)
{
    if(
g_bIsWithMaxSpeed[id])
    {
        
setUserSpeed(id)
    }
}

public 
endSpeed(id)
{
    
id -= TASK_SPEED
    
    
if(is_user_connected(id))
    {
        
g_bIsWithMaxSpeed[id] = false
    
}
}

setUserSpeed(id)
{
    
set_user_maxspeed(idget_pcvar_float(pCvarSpeedAfterReload))

It'll only work if you press R button, not reload after run out of bullets.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 06-21-2017 at 20:15.
EFFx is offline
HoussamBenmouna
Member
Join Date: Jun 2017
Location: Morocco
Old 06-21-2017 , 20:13   Re: Bind
Reply With Quote #24

okay. thanks
__________________
Working on Hulk's Mode (10%)
HoussamBenmouna is offline
Reply


Thread Tools
Display Modes

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 19:38.


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