pawn Код:
#include <a_samp>
#define hospor 0xB8860BAA
new Tempo[MAX_PLAYERS];
new Tempo2[MAX_PLAYERS];
new hospital[MAX_PLAYERS];
forward HospProgresso(playerid);
public OnFilterScriptInit()
{
print("Hospital by FenixBorn Carregado");
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
hospital[playerid] = 1;
return 1;
}
public OnPlayerSpawn(playerid)
{
if(hospital[playerid] > 0)
{
Tempo2[playerid] = SetTimerEx("HospProgresso", 1000, 1, "i", playerid);
Tempo[playerid] = 20;
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,2782.7371,-2736.4546,-0.0863);
SetPlayerCameraPos(playerid,1197.5721,-1325.6716,26.9214);
SetPlayerCameraLookAt(playerid, 1177.6808,-1324.3663,14.0827);
TogglePlayerControllable(playerid, 0);
}
return 1;
}
public OnPlayerConnect(playerid)
{
hospital[playerid] = 0;
return 1;
}
public HospProgresso(playerid)
{
new string[64];
format(string, sizeof(string), "~w~Voce esta sendo ~r~Curado.", Tempo[playerid]);
GameTextForPlayer(playerid, string, 1500, 3);
hospital[playerid] = 0;
if(Tempo[playerid] == 0)
{
KillTimer(Tempo2[playerid]);
SpawnPlayer(playerid);
SetPlayerHealth(playerid, 100.00);
GivePlayerMoney(playerid, -500);
SetCameraBehindPlayer(playerid);
TogglePlayerControllable(playerid, 1);
SendClientMessage(playerid, hospor,"{FF0101}Vocк ja estб melhor. {FFFFFF}os custos ficaram em {FF0101}500$ .");
}
Tempo[playerid]--;
}
peguei seu cod e fiz isso ae testado e aprovado acabei de testar aqui.