hello guys. i want to set players frags at event round start. this is my code:
PHP Code:
if(my_data_2_store[0] == 16)
{
get_players(iPlayers, iNum)
for (new i = 0; i < iNum; i++)
{
iPlayer = iPlayers[i]
cs_set_user_deaths(iPlayer, iDeaths[i])
fm_set_user_frags(iPlayer, iFrags[i])
}
x = my_data_2_store[1]
my_data_2_store[1] = my_data_2_store[2]
my_data_2_store[2] = x
}
the problem is it will show 0 until the player make 1 frag, then it will show his saved frags + frag that he made. how could i avoid that 0 ? i want to set his frags from the round start not when he's making a frag. i tried with cs_set_user_frags but same result