28.01.2010, 12:59
Explicate un poco mas, asн podremos ayudarte.
Esos son los cуdigos correctos, si no me equivoco.
Код:
public OnPlayerDeath(playerid, killerid){ if(IsPlayerInAnyVehicle(killerid){ TogglePlayerSpectating(playerid, 1) PlayerSpectateVehicle(GetPlayerVehicleID(killerid)); } TogglePlayerSpectating(playerid, 1); PlayerSpectatePlayer(playerid, killerid); SetTimerEx("StopDeathSpec", 5000, 0, "dd", playerid); return 1;}
Код:
forward StopDeathSpec(playerid); public StopDeathSpec(playerid){ TogglePlayerSpectating(playerid, 0); SpawnPlayer(playerid); return 1;}