Thx for link.
So, i have modified my own code, and it works.. But, hm, i thought that it will work all the time for each other player, and i see that playa_id is still 6 (i have 6 players on the server)... so is whole idea dead? rawr... help me please!
PHP Code:
new playa_id;
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR);
register_logevent("round_start", 2, "1=Round_Start");
}
public client_putinserver(id) {
playa_id = id;
return playa_id;
}
public round_start() {
// 1 is my real ID, im the first player
client_print(1, print_chat, "[AMXX] NEW ROUND| Your ID is %d", playa_id);
}
EDIT
Problem sloved using spawn detection.
__________________