anti hack - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: anti hack (
/showthread.php?tid=65931)
anti hack -
Schock - 17.02.2009
pawn Код:
public WeaponCheck()
{
new string[128];
for(new i; i<MAX_PLAYERS; i++)
{
if (AccountInfo[i][AdminLevel] >= 1 || IsPlayerAdmin(i))
{
}
else
{
// my code is here
}
}
return 1;
}
i want that the code only works in virtual world 0
Re: anti hack -
Kanji_Suzuki - 17.02.2009
look at some FS it will help you
Re: anti hack -
whooper - 17.02.2009
wow i hate it when people dont try i give this a "F"
Re: anti hack -
Kanji_Suzuki - 17.02.2009
Quote:
Originally Posted by whooper
wow i hate it when people dont try i give this a "F"
|
i give you a "U" if not trying your self
Re: anti hack -
Daren_Jacobson - 18.02.2009
like this? using GetPlayerVirtualworld?
pawn Код:
public WeaponCheck()
{
new string[128];
for(new i; i<MAX_PLAYERS; i++)
{
if (AccountInfo[i][AdminLevel] >= 1 || IsPlayerAdmin(i))
{
}
else
{
if (GetPlayerVirtualWorld(i) == 0)
{
//stuffage here?
}
// my code is here
}
}
return 1;
}
Re: anti hack -
Backwardsman97 - 18.02.2009
It is pointless to do this.
pawn Код:
if (AccountInfo[i][AdminLevel] >= 1 || IsPlayerAdmin(i))
{
}
else
{
// my code is here
}
Why not do this?
pawn Код:
if (AccountInfo[i][AdminLevel] < 1 || !IsPlayerAdmin(i))
{
//code here
}