Raised This Month: $ Target: $400
 0% 

How to block grenade throw


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
FromTheFuture
Senior Member
Join Date: Jan 2013
Old 04-25-2013 , 12:52   Re: How to block grenade throw
Reply With Quote #8

Thank You, work, but with errors.
It's work if I throw first grenade, change active weapon, then set weapon to grenade again. But if I'm not change active weapon, try to throw second grenade at once - grenade will not be thrown, never.

May be block throw with CurWeapon?
PHP Code:
public evCurWeapon(id)
{

    new 
Float:Time get_gametime() - g_fWaitTime[id];
    
    if(
Time  15)
    {
        
client_print(idprint_center"Please, wait %0.0f seconds"15 Time);
        
engclient_cmd(id"weapon_knife");
    }
    

This code work, but how I can set active weapon from 1 slot (if have) or 2?
FromTheFuture 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 10:46.


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