Hi.
The title might be not very informative. What I want to do is as simple as setting a definite round interval before players are able to use *some* function. I use an bool for checking.
PHP Code:
#define RoundInterval 5
new bool:IntervalGood = true
new iRoundInterval = 0
public plugin_init( )
{
//...
register_logevent( "EventRoundStart", 2, "1=Round_Start" );
}
public EventRoundStart( )
{
if( !IntervalGood && iRoundInterval <= RoundInterval ) {
iRoundInterval++ //It's increasing the integer value by 1, right?
}
if( iRoundInterval > RoundInterval ) {
iRoundInterval = 0
IntervalGood = true
}
return PLUGIN_HANDLED
}
For some reason it's not working properly. I don't know where is the problem.