Quote:
Originally Posted by HamletEagle
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_fUseTime[ 33 ];
const Float:g_fFreq = 15.0;
public plugin_init( )
{
register_clcmd( "say /healme", "@HealMe" );
}
public client_connect( id )
g_fUseTime[ id ] = 0.0;
@HealMe( id )
{
new Float:fTime = get_gametime( );
if( fTime >= g_fUseTime[ id ] )
{
g_fUseTime[ id ] = fTime + g_fFreq;
set_user_health( id, get_user_health( id ) + 15 );
}
else
{
client_print( id, print_center, "You have to wait %d seconds until you can use this again.", floatround( g_fUseTime[ id ] - fTime ) );
}
return PLUGIN_HANDLED;
}
Happy now?
__________________