Hospital System
#2

Open up your game mode CTRL+f and search for OnPlayerDeath
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);
Under OnGameModeInit
pawn Код:
forward killtimer(playerid);
public killtimer(playerid)
{
TogglePlayerControllableEx(playerid,true);
ResetPlayerWeapons(playerid);
SetPlayerHealth(playerid,0.0);
SpawnPlayer(playerid);
Try this.
Reply


Messages In This Thread
Hospital System - by JustinAn - 27.05.2012, 22:53
Re: Hospital System - by AdamCooper - 28.05.2012, 00:01
Re: Hospital System - by JustinAn - 28.05.2012, 00:08
Re: Hospital System - by JustinAn - 30.05.2012, 20:52
Re: Hospital System - by N0FeaR - 30.05.2012, 21:08
Re: Hospital System - by JustinAn - 30.05.2012, 21:08
Re: Hospital System - by JustinAn - 30.05.2012, 21:11

Forum Jump:


Users browsing this thread: 1 Guest(s)