28.05.2012, 00:01
Open up your game mode CTRL+f and search for OnPlayerDeath
Under it place :
Under OnGameModeInit
Try this.
Under it place :
pawn Код:
SetPlayerPos(playerid,X,Y,Z);
SetPlayerFacingAngle(playerid,15.000000);
SetPlayerCameraPos(playerid, X,Y,Z);
SetPlayerCameraLookAt(playerid, X,Y,Z);
SetTimerEx("killtimer",8000,false,"i",playerid);
TogglePlayerControllableEx(playerid,false);
pawn Код:
forward killtimer(playerid);
public killtimer(playerid)
{
TogglePlayerControllableEx(playerid,true);
ResetPlayerWeapons(playerid);
SetPlayerHealth(playerid,0.0);
SpawnPlayer(playerid);