24.06.2011, 14:09
Quote:
public OnPlayerDeath(playerid, killerid, reason) { TogglePlayerSpectating(playerid, 1); PlayerSpectatePlayer(playerid, killerid); |
pls help
public OnPlayerDeath(playerid, killerid, reason) { TogglePlayerSpectating(playerid, 1); PlayerSpectatePlayer(playerid, killerid); |
forward respawnFromSpec(playerid);
public respawnFromSpec(playerid) {
TogglePlayerSpectating(playerid, false);
SpawnPlayer(playerid);
return 1;
}
public OnPlayerDeath(playerid, killerid, reason) {
TogglePlayerSpectating(playerid, true);
PlayerSpectatePlayer(playerid, killerid);
SetTimerEx("respawnFromSpec", 5000, false, "d", playerid);
return 0;
}