PHP Code:
RegisterHam(Ham_Spawn, "player", "fwHamSpawnPlayer");
public fwHamSpawnPlayer(id) {
client_print_color(id, RED, "^3Spawned!");
set_task(5.0, "fnNameProfit", id);
}
public fnNameProfit(id) {
client_print_color(id, RED, "^3Hi!");
return PLUGIN_HANDLED;
}
Whenever i output it 5 seconds after the spawn, plugin prints it twice to the chat with a second delay. Am i doing anything wrong or is this supposed to happen? I tried to HAM_SUPERCED it, i am not a smart man.
Is there a IRC channel or anything for quick and (possibly) dumb questions i could ask occasionally if i can't find the answer after wasting 2 hours of my life.
Note: It only happens when the map begins -- on the very first round, second, third etc it only prints once.