Respawn Time
#7

As MenaceX^ said, you will need to use SetTimerEx to use the playerid variable.

pawn Код:
forward Respawntimer(playerid);
pawn Код:
public OnPlayerDeath(playerid,killerid,reason)
{
  SetCamerLookAt(playerid, 1234567.0, 1234567.0, 1234567.0);
  SetTimerEx("Respawntimer", 300000, 0, "i", playerid);
  GameTextForPlayer(playerid, COLOR_RED, "you'll respawn in 5 minutes", 5000, 4);
  //Other stuff in OnPlayerDeath
  return 1;
}
pawn Код:
public Respawntimer(playerid)
{
  SetPlayerPos(playerid, 1234567, 1234567, 1234567);
  SetPlayerFacingAngle(playerid, 90.0000);
  SetCameraBehindPlayer(playerid)
  return 1;
}
Reply


Messages In This Thread
Respawn Time - by Illex - 16.07.2009, 09:06
Re: Respawn Time - by MenaceX^ - 16.07.2009, 09:07
Re: Respawn Time - by Illex - 16.07.2009, 09:18
Re: Respawn Time - by kc - 16.07.2009, 09:20
Re: Respawn Time - by MenaceX^ - 16.07.2009, 09:21
Re: Respawn Time - by Illex - 16.07.2009, 09:24
Re: Respawn Time - by kc - 16.07.2009, 09:33
Re: Respawn Time - by Illex - 16.07.2009, 09:36
Re: Respawn Time - by kc - 16.07.2009, 09:37
Re: Respawn Time - by Illex - 16.07.2009, 10:05

Forum Jump:


Users browsing this thread: 1 Guest(s)