Please help with this!
#5

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
Reply


Messages In This Thread
Please help with this! - by Flake. - 15.02.2010, 06:37
Re: Please help with this! - by [gmR]BarMaN - 15.02.2010, 06:41
Re: Please help with this! - by Flake. - 15.02.2010, 06:45
Re: Please help with this! - by mansonh - 15.02.2010, 06:55
Re: Please help with this! - by Flake. - 15.02.2010, 06:57
Re: Please help with this! - by mansonh - 15.02.2010, 06:59
Re: Please help with this! - by [gmR]BarMaN - 15.02.2010, 07:01
Re: Please help with this! - by mansonh - 15.02.2010, 07:04
Re: Please help with this! - by [gmR]BarMaN - 15.02.2010, 07:05
Re: Please help with this! - by Flake. - 15.02.2010, 07:15

Forum Jump:


Users browsing this thread: 1 Guest(s)