Health error
#1

why this not working when i test in game
Код:
#include <a_samp>
#include <foreach>

#define BJELA      "{FFFFFF}"
#define CRVENA     "{F81414}"

#define MAX_HEALTH (99.0)
#define DIALOG_PRAVILA (1000)

public OnFilterScriptInit()
{
    return 1;
}

public OnPlayerUpdate(playerid)
{
    new Float:Health;
    GetPlayerHealth(playerid, Health);
    #if defined MAX_HEALTH
    if(Health > 99.0)
    {
        TogglePlayerControllable(playerid, false);
        SetPlayerPos(playerid, 1941.1534,-1100.2391,-23.7885);
        ShowPlayerDialog(playerid, DIALOG_PRAVILA,DIALOG_STYLE_MSGBOX,"Anti-Hack", "{FFCC00}[Anticheat]"BJELA"YOUKikovani ste sa servera\nRazlog kick-a:"CRVENA" Health Hack","Ok","");
        BanEx(playerid, "Health Hack");
    }
    #endif
    return 1;
}
public OnPlayerSpawn(playerid)
{
        SetPlayerHealth(playerid, 99);
        return 1;
}
Reply


Messages In This Thread
Health error - by lanix - 23.01.2015, 14:15
Re: Health error - by nezo2001 - 23.01.2015, 14:22
Re: Health error - by lanix - 23.01.2015, 14:27
Re: Health error - by nezo2001 - 23.01.2015, 14:31
Re: Health error - by lanix - 23.01.2015, 14:37
Re: Health error - by lanix - 23.01.2015, 14:42
Re: Health error - by Riso135 - 23.01.2015, 14:44
AW: Health error - by Saize - 23.01.2015, 14:45
Re: Health error - by lanix - 23.01.2015, 14:47
Re: Health error - by Riso135 - 23.01.2015, 14:54

Forum Jump:


Users browsing this thread: 1 Guest(s)