18.11.2010, 02:12
(
Последний раз редактировалось Buzzbomb; 18.11.2010 в 02:46.
)
pawn Код:
forward DEAD1(playerid);
forward RespawnHospital(playerid);
public OnPlayerDeath(playerid)
{
SetTimer("RespawnHospital", 3500, 0);
return 1;
}
public RespawnHospital(playerid)
{
SendClientMessage(playerid, COLOR_RED, "You're being rushed to the hospital!");
SetPlayerPos(playerid, 1221.7010,-1328.6449,13.4821);
SetPlayerCameraPos(playerid, 1204.3781,-1313.3323,16.3984);
SetPlayerCameraLookAt(playerid, 1174.7167,-1323.4485,14.5938);
TogglePlayerControllable(playerid,0);
SetTimer("DEAD1", 50000, 0); // oops forgot to change that
return 1;
}
public DEAD1(playerid);
{
SetPlayerHealth(playerid,100);
SetPlayerPos(playerid,1172.6569,-1323.2815,15.4025);
TogglePlayerControllable(playerid,1);
return 1;
}