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;
}