01.10.2013, 04:51
Hey
When The player explodes = 0 hp (No godmode & No message)
When The Player explodes = 100 hp = Invulnerable ( godmode & message)
How can I fix this
pawn Код:
format(hackmessage, sizeof(hackmessage), "%s [ID: %d] [IP: %s] has been exploded to test godmode %.0f to %.0f", hackername,playerid, plrIP, cHealth, cHealth);
SendClientMessageToAll(0xFFFFFFFF, hackmessage);
GetPlayerHealth(playerid, pHealth);
if(pHealth <= 99)
{
SetTimerEx("end", 5000, false, "i", playerid);
}
}
}
return 1;
}
forward end(playerid);
public end(playerid)
{
new hackername[MAX_PLAYER_NAME], hackmessage[80];
new plrIP[16];
GetPlayerName(playerid, hackername, sizeof(hackername));
GetPlayerIp(playerid, plrIP, sizeof(plrIP));
format(hackmessage, sizeof(hackmessage), "%s [ID: %d] [IP: %s] did not died, godmode DETECTED", hackername,playerid, plrIP);
SendClientMessageToAll(0xFFFFFFFF, hackmessage);
return 1;
}
When The player explodes = 0 hp (No godmode & No message)
When The Player explodes = 100 hp = Invulnerable ( godmode & message)
How can I fix this