Quote:
Originally Posted by Dan.
This is the timer, a player spectates his killer for 6 seconds after the player dies:
pawn Код:
// if(killerid != INVALID_PLAYER_ID) { TogglePlayerSpectating(playerid, 1); if(IsPlayerInAnyVehicle(killerid)) { new vehicleid = GetPlayerVehicleID(killerid); PlayerSpectateVehicle(playerid, vehicleid); } else { PlayerSpectatePlayer(playerid, killerid); }
SetTimerEx("DeathCameraStop", 1000*6, false, "i", playerid); }
And timer:
pawn Код:
forward DeathCameraStop(playerid); public DeathCameraStop(playerid) { TogglePlayerSpectating(playerid, 0); return 1; }
You can edit so it meets your standards.
|
Hmm sounds good, but this is more a racing server and when you die/explode/fall you got to spectate other racers till the everyone is dead and till one is left. Then you re-spawn.