25.10.2010, 07:24
First question,
Player who dies spectates the player who kills them for 5 seconds, it has the gametextforplayer saying "respawning in 5.. and does a countdown, how could i do this?
my attempt.
didn't really work, you spectated yourself and yes i had all of the forward timer stuff etc.
Thanks in advance
Player who dies spectates the player who kills them for 5 seconds, it has the gametextforplayer saying "respawning in 5.. and does a countdown, how could i do this?
my attempt.
didn't really work, you spectated yourself and yes i had all of the forward timer stuff etc.
Код:
public OnPlayerDeath(playerid, killerid, reason)
{
TogglePlayerSpectating(playerid, 1);
PlayerSpectatePlayer(playerid, killerid);
SetTimer("spectating",5000,false);
new string[50];
format(string, sizeof(string), "Repawning in 5");
GameTextForPlayer(playerid, string, 5000, 4);
TogglePlayerSpectating(playerid, 0);
return 1;
}

