I have this code:
PHP Code:
new round
new VIPMenuRound
<...>
VIPMenuRound = register_cvar("amx_vipmenu_round", "2")
register_logevent("LogEvent_RoundStart", 2, "1=Round_Start" );
register_event("TextMsg","Event_RoundRestart","a","2&#Game_w")
<...>
public LogEvent_RoundStart()
{
CurrentRound++;
}
public Event_RoundRestart()
{
CurrentRound=0;
}
public cmdvipmenu(id)
{
round = get_pcvar_num (VIPMenuRound)
if( CurrentRound >= round )
{
Showrod(id)
}
}
It shouldn't let players use vipmenu until certain round, set by cvar, but it lets use it at first round...