#include <a_vcmp>
#define COLOR_ORANGE 0xFF9011AA
#define COLOR_BLUE 0x33CCFFAA
#define COLOR_RED 0xED0700AA
#define COLOR_WHITE 0xFFFFFFAA
#define NOTACCES 0xFF0000AA
#define FILTERSCRIPT
new gPlayers[MAX_PLAYERS][MAX_PLAYER_NAME+1];
forward PlayerHeal();
public OnFilterScriptInit()
{
SetTimer("PlayerHeal", 500, true); // if you put "//" before timer, the server run . if not, server stop.
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
public PlayerHeal()
{
for(new i=0;i<MAX_PLAYERS;i++) {
if(IsPlayerConnected(i)) {
new Float:healths,string[256];
SetPlayerHealth(i,100);
format(string,sizeof(string),"ThePunisher: [%d] %s Used Health-Hack ! [Player HP: %d]",i,gPlayers[i],healths);
SendClientMessageToAll(NOTACCES,string);
}
}
}