how to spec player
#2

You'll have to use TogglePlayerSpectating, PlayerSpectatePlayer, SetTimerEx and GameText or Textdraw.
Under OnPlayerDeath, check if the killerid is valid(IsPlayerConnected). If valid, store his ID inside a global variable. Now under OnPlayerSpawn, check if that global variable has a valid killerid(validate it). If the killerid is connected, use TogglePlayerSpectating and PlayerSpectatePlayer to spectate killerid, then set a timer to stop spectating(TogglePlayerSpectating again) and add a GameText to display for 5 seconds.
Reply


Messages In This Thread
how to spec player - by MahdiGames - 08.01.2014, 20:10
Re: how to spec player - by Seif- - 08.01.2014, 20:23
Re: how to spec player - by amirab - 09.01.2014, 08:16
Re: how to spec player - by Seif- - 09.01.2014, 17:47
Re: how to spec player - by MahdiGames - 09.01.2014, 18:15
Re: how to spec player - by Aliassassin123456 - 10.01.2014, 07:14

Forum Jump:


Users browsing this thread: 1 Guest(s)