16.07.2009, 09:33
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;
}