Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- forward SpawnDeath(playerid);
- public OnPlayerDeath(playerid, killerid, reason)
- {
- if (killerid == INVALID_PLAYER_ID) return 0b0;
- TogglePlayerSpectating(playerid, 1);
- PlayerSpectatePlayer(playerid, killerid);
- SetTimerEx("SpawnDeath", 10000, 1, "i", playerid);
- }
- public SpawnDeath(playerid) TogglePlayerSpectating(playerid, 0), SpawnPlayer(playerid);
Advertisement
Add Comment
Please, Sign In to add comment