[HOSPITAL SYSTEM] i need help with it please
#1

When i die i should be kept in the hospital for 60 seconds but when i die the piece of code isnt exicuted =l heres my codes
These are the forwards:
Код:
forward DEAD1(playerid);
forward RespawnHospital(playerid);
This is in OnPlayerDeath:
Код:
SetTimer("RespawnHospital", 3500, 0);
And here are my new publics:
Код:
public RespawnHospital(playerid)
{
    SendClientMessage(playerid, COLOUR_YELLOW, "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); 
    return 1;
}

public DEAD1(playerid)
{
    SetPlayerHealth(playerid,100);
    SetPlayerPos(playerid,1172.6569,-1323.2815,15.4025);
  	TogglePlayerControllable(playerid,1);
    return 1;
}
Any ideas? Thanks for the help
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 8 Guest(s)