[Hospital System] Timer and Respawn place
#2

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;
}
Here you go
Reply


Messages In This Thread
[Hospital System] Timer and Respawn place - by XoSarahMoX - 18.11.2010, 01:22
Re: [Hospital System] Timer and Respawn place - by Buzzbomb - 18.11.2010, 02:12
Re: [Hospital System] Timer and Respawn place - by XoSarahMoX - 18.11.2010, 02:52
Re: [Hospital System] Timer and Respawn place - by Buzzbomb - 18.11.2010, 03:08
Re: [Hospital System] Timer and Respawn place - by XoSarahMoX - 18.11.2010, 03:14
Re: [Hospital System] Timer and Respawn place - by Buzzbomb - 18.11.2010, 03:51

Forum Jump:


Users browsing this thread: 1 Guest(s)