Anti God-mode problem
#5

Quote:
Originally Posted by pds2012
Посмотреть сообщение
simple tip: i tried on my server making a health anti what i did is

pawn Код:
public OnPlayerConnect
{
SetPlayerHealth(playerid, 99.99);//just incase to avoid bug
return 1;
}
public OnPlayerSpawn
{
SetPlayerHealth(playerid, 99.99);// there is no any changes at your health bar
return 1;
}
if you still got all things that has SetPlayerHealth(playerid, 100); change it to SetPlayerHealth(playerid, 99.99);

and when you detect it as a hacker
GetPlayerHealth(playerid, 100);
hope you understand it

also you need to remove the things that gives you health on default samp here
Credits to Cessil
pawn Код:
public OnPlayerConnect
{
    RemoveBuildingForPlayer(playerid, 1302, 0.0, 0.0, 0.0, 6000.0);
    RemoveBuildingForPlayer(playerid, 1209, 0.0, 0.0, 0.0, 6000.0);
    RemoveBuildingForPlayer(playerid, 955, 0.0, 0.0, 0.0, 6000.0);
    RemoveBuildingForPlayer(playerid, 956, 0.0, 0.0, 0.0, 6000.0);
    RemoveBuildingForPlayer(playerid, 1775, 0.0, 0.0, 0.0, 6000.0);
    RemoveBuildingForPlayer(playerid, 1776, 0.0, 0.0, 0.0, 6000.0);
    RemoveBuildingForPlayer(playerid, 1977, 0.0, 0.0, 0.0, 6000.0);
    return 1;
}
I already did that, but s0.beit is lock on current hp, so if player use god on s0.beit, will have 99.

Thats why i am trying to compare health, so i can detect s0.beit users.
Reply


Messages In This Thread
Anti God-mode problem - by ]Rafaellos[ - 26.01.2013, 08:48
AW: Anti God-mode problem - by Skimmer - 26.01.2013, 09:06
Re: Anti God-mode problem - by ]Rafaellos[ - 26.01.2013, 09:21
Re: Anti God-mode problem - by Patrick - 26.01.2013, 09:25
Re: Anti God-mode problem - by ]Rafaellos[ - 26.01.2013, 09:33
Re: Anti God-mode problem - by Patrick - 26.01.2013, 09:36
Re: Anti God-mode problem - by ]Rafaellos[ - 26.01.2013, 09:44
Re: Anti God-mode problem - by ]Rafaellos[ - 27.01.2013, 08:45
Re: Anti God-mode problem - by Threshold - 27.01.2013, 09:13
Re: Anti God-mode problem - by ]Rafaellos[ - 27.01.2013, 09:18

Forum Jump:


Users browsing this thread: 6 Guest(s)