Here (btw, no need to have any:client in the timer callback if you're not passing it). Also, you could probably have that timer fire every 3 seconds... I forget how long center text stays on screen (maybe it's only one second, I forget).
PlayerIsAlive is wrong, it's
IsPlayerAlive
PHP Code:
CreateTimer(1.0, mort, _, TIMER_REPEAT|TIMER_FLAG_NO_MAPCHANGE);
public Action:mort(Handle:timer)
{
for(new i = 1; i <= MaxClients; i++)
{
if(IsClientInGame(i) && !IsPlayerAlive(i) && player_respawn_wait[i] > 0)
{
PrintCenterText(i, "En cours de réanimation : %d secondes", player_respawn_wait[i]);
}
}
return Plugin_Handled; // Maybe Plugin_Continue;?
}
__________________