22.01.2018, 16:16
DEAD1 returns 1.
Why do you want to show this to the player?
Try it like this:
(Sorry, don't have time to test it.)
Why do you want to show this to the player?
Try it like this:
(Sorry, don't have time to test it.)
Код:
new hpString[3]; new hpTimeLeft[MAX_PLAYERS]; forward HospitalTimeLeft(playerid); public HospitalTimeLeft(playerid) { hpTimeLeft[playerid] = hpTimeLeft[playerid] - 1; format(hpString,sizeof(hpString),"%d",hpTimeLeft[playerid]); GameTextForPlayer(playerid, hpString,1000, 4); return 1; } public RespawnHospital(playerid) { SetSpawnInfo(playerid,GetPlayerTeam(playerid),GetPlayerSkin(playerid),322.197998,302.497985,999.148437,275.7301,0,0,0,0,0,0); GetGender(playerid); SetPlayerInterior(playerid, 5); SetTimerEx("DEAD1", 60000, false, "i", playerid); hpTimeLeft[playerid] = 60; //60 sec SetTimerEx("HospitalTimeLeft", 1000, false, "i", playerid); SpawnPlayer(playerid); return 1; } public DEAD1(playerid) { SetPlayerHealth(playerid,100); SetPlayerInterior(playerid,0); SetPlayerPos(playerid,1242.1780,328.2336,19.7555); SendClientMessage(playerid,WHITE,"* Pasveikai."); return 1; }