Health error
#10

OnPlayerConnect:
Код:
SetPvarInt(playerid,"Test",1);
when firstly spawned add to line:
Код:
SetPvarInt(playerid,"Test",0);
and add condition to your script (GetPVarInt) + EDIT health on spawn
Код:
public OnPlayerUpdate(playerid) 
{ 
    new Float:Health; 
    GetPlayerHealth(playerid, Health);
    if(GetPVarInt(playerid,"Test") == 0)
    {
    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"); 
    }
    }
    return 1; 
}
Код:
public OnPlayerSpawn(playerid) 
{ 
        SetPlayerHealth(playerid, 99.0); 
        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: 2 Guest(s)