This task hasn't got id. You must do the loop. In the global variables add:
Next add function public plugin_cfg:
Code:
public plugin_cfg(){
g_MaxPlayers = get_maxplayers();
}
Replace your code with this:
Code:
public ShowHud(){
for(new i = 1; i <= g_MaxPlayers; i++){
if(is_user_alive(i)){
set_hudmessage(255, 255, 255, 0.01, 0.18, 0, 0.0, 1.0, _, _, -1 );
show_hudmessage(i, "%s^n%s: %i", SKINS[sz_ModelName[i]], Currency, Shop_XP[i]);
}
}
}
You can replace this:
Code:
set_task(1.0, "ShowHud", _, _, _, "b")
For:
Code:
set_task(1.0, "ShowHud",.flags = "b")
If you want do this without loop, create task in:
Code:
public client_putinserver(id)