22.07.2011, 12:07
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:
This is in OnPlayerDeath:
And here are my new publics:
Any ideas? Thanks for the help
These are the forwards:
Код:
forward DEAD1(playerid); forward RespawnHospital(playerid);
Код:
SetTimer("RespawnHospital", 3500, 0);
Код:
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; }