public OnPlayerConnect(playerid)
{
AntiSetPlayerHealth(playerid, 50);
return 1;
}
stock AntiSetPlayerHealth(playerid, Float:health)
{
AntiCheatInfo[playerid][OldHealth] = health;
SetPlayerHealth(playerid, health);
new Float:givehealth;
GetPlayerHealth(playerid,givehealth);
printf("%f %f",health,givehealth);
return 1;
}
Server_Log ausgabe.
[20:21:17] 50.000000 0.000000
Fehler das Health ist 50hp jedoch
GetPlayerHealth gibt 0 aus.