18.04.2012, 12:42
Bom, coloquei um sistema de hospital, porem as mensagens estao se repetindo!
Nгo da erro nem Warnigs so repete as mensagens duas vezes.
pawn Код:
forward Curando(playerid);
public Curando(playerid)
{
TogglePlayerControllable(playerid, true);
Hospital[playerid] = 0;
SetPlayerPos(playerid, 2030.7048,-1418.8386,16.9922);
SendClientMessage(playerid, 0xFF3030FF,"[Hospital]Vocк recebeu, alta do hospital!");
}
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(Hospital[playerid] == 1)
{
SetPlayerPos(playerid, 2030.7048,-1418.8386,16.9922);
TogglePlayerControllable(playerid, false);
SetTimerEx("Curando", 50000, false, "i", playerid);
SendClientMessage(playerid, 0xFF3030FF,"[Hospital] Vocк estб sendo curado.");
}
return 1;
}
pawn Код:
new Hospital[MAX_PLAYERS];