connor: "i hope you will understand"
arkshine "You don't understand."
lol ;)
Thanks for your support. I'm using VEN's code (
http://forums.alliedmods.net/showthread.php?t=42159). I will (propably) have some more problems tommorow, cause it's only begginning of much bigger plugin.
Listing of plugin (feel free to comment):
PHP Code:
#define MAX_PLAYERS 32
new bool:g_restart_attempt[MAX_PLAYERS + 1]
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR);
register_event("ResetHUD", "event_hud_reset", "be")
register_clcmd("fullupdate", "clcmd_fullupdate")
register_event("TextMsg", "event_restart_attempt", "a", "2=#Game_will_restart_in")
}
public clcmd_fullupdate() {
return PLUGIN_HANDLED_MAIN
}
public event_restart_attempt() {
new players[32], num
get_players(players, num, "a")
for (new i; i < num; ++i)
g_restart_attempt[players[i]] = true
}
public event_hud_reset(id) {
if (g_restart_attempt[id]) {
g_restart_attempt[id] = false
return
}
event_player_spawn(id)
}
// this function is called on player spawn
public event_player_spawn(id) {
client_print(id, print_chat, "[AMXX] SPAWN: NOWA RUNDA | Twoje ID to %d", id);
}
__________________