Quote:
Originally Posted by mansonh
You can do a camera, but why do that when you can spectate.
pawn Код:
new playerSpecTimer [MAX_PLAYERS ] = {-1}; public OnPlayerDeath (playerid, killerid, reason ){ TogglePlayerSpectating (playerid, 1); PlayerSpectatePlayer (playerid, killerid ); //spectate their killer playerSpecTimer [playerid ] = SetTimerEx ("TogglePlayerSpectating", 10000, false, "dd", playerid, 0); }public OnPlayerKeyStateChange (playerid, newkeys, oldkeys ){ //You can't choose space, see https://sampwiki.blast.hk/wiki/GetPlayerKeys if(newkeys & KEY_SPRINT && playerSpecTimer [playerid ]!=-1) { KillTimer (playerSpecTimer [playerid ]); TogglePlayerSpectating (playerid, 0); }}
|
yeah thats what i ment a spectate :P
thanks man this works