Can you help me?
I changed code like that
PHP Code:
// Now making a message and set some stuff
for (new i=0; i<num; i++)
{
id = players[i]
if (id==g_FirstVADA)
{
client_print(id,print_chat,"* [H&S] You are VADA!")
// Change model speed & godmode
cs_set_user_model(id,"vip")
set_user_godmode(id,1)
set_user_footsteps(id,1)
set_user_gravity(id,1.0)
}
else
{
new name[32]
get_user_name(g_FirstVADA,name,31)
client_print(id,print_chat,"* [H&S] VADA is %s",name)
// Change model speed & godmode
set_task(1.0 + g_models_counter, "task_set_model", id+MODELSET_TASK)
g_models_counter += TASK_DELAY
set_user_godmode(id)
set_user_footsteps(id,0)
set_user_gravity(id,g_Gravity)
}
}
g_RoundStarted=true
But all what i have - delayed momentarely change of all models, it's going to crash again with delay in 1 second
This is my task_set_model:
PHP Code:
public task_set_model(id)
{
// Get player id
id -= MODELSET_TASK
// Actually set the player's model
fm_set_user_model(id, "gign")
}
How to make asynchronized changing?
__________________