Raised This Month: $ Target: $400
 0% 

Solved Wait N amount of seconds?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 08-05-2018 , 13:59   Re: Wait N amount of seconds?
Reply With Quote #1

Quote:
Originally Posted by HamletEagle View Post
edon, please, just stop. You made a mistake, it's not the end of the world. Stop arguing for the sake of arguing, it is much better if you simply say "yeah, my bad" and move on, instead of coming with silly excuses.
Anyway, it's not going to ever work properly, be it first or last round. That's not the issue.
Perhaps you should see that I instantly deleted the comment.

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

new Float:g_fUseTime33 ];

const 
Float:g_fFreq 15.0

public 
plugin_init( ) 
{     
    
register_clcmd"say /healme""@HealMe" ); 


public 
client_connectid )
g_fUseTimeid ] = 0.0;

@
HealMeid 

    new 
Float:fTime get_gametime( ); 
     
    if( 
fTime >= g_fUseTimeid ] ) 
    { 
        
g_fUseTimeid ] = fTime g_fFreq
         
        
set_user_healthidget_user_healthid ) + 15 ); 
    } 
     
    else 
    { 
        
client_printidprint_center"You have to wait %d seconds until you can use this again."floatroundg_fUseTimeid ] - fTime ) ); 
    } 
     
    return 
PLUGIN_HANDLED

Happy now?
__________________

Last edited by edon1337; 08-05-2018 at 14:01.
edon1337 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 12:37.


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