Quote:
Originally Posted by jimaway
dont use for loop for that, use moduo
Code:
new g_Round public Event_NewRound() { g_Round++ if (g_Round % 5 == 0) { //1ststuff } if(g_Round % 5 == 1 && g_Round > 1) { //2ndstuff } }
|
i tried your way
PHP Code:
if(g_Round % 5 == 0)
{
for(new i = 1; i < g_MaxPlayers; i++)
{
g_Team[i] = cs_get_user_team(i)
}
start_assasinday()
client_print(0, print_chat, "this round is assasinday")
}
if((g_Round % 5 == 1) && (g_Round > 1))
{
for(new i = 1; i < g_MaxPlayers; i++)
{
cs_set_user_team(i, g_Team[i])
}
client_print(0, print_chat, "reset player team")
}
and it still doesn't work the 1st stuff

and the 2nd still works fine ...
im pretty sure the problem is not start_assasinday because it has no problem when i start it manually
__________________