Anti money 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)
+--- Thread: Anti money hack (
/showthread.php?tid=324896)
Anti money hack -
]Rafaellos[ - 11.03.2012
Hello every one, i want an anti money hack that will reset money when player money is over $500 000 000 but i dont want to reset on admins.
Sorry for my bad english.
**I use lux admin!
Thank you!
Re: Anti money hack -
vakhtang - 11.03.2012
Maybe something like this?
pawn Код:
if (!IsPlayerAdmin(playerid)){
if(GetPlayerMoney(playerid) >= 500 000 000){
Kick(playerid);
}
}
Re: Anti money hack -
Reklez - 11.03.2012
Quote:
Originally Posted by vakhtang
Maybe something like this?
pawn Код:
if (!IsPlayerAdmin(playerid)){ if(GetPlayerMoney(playerid) >= 500 000 000){ Kick(playerid); } }
|
the code you give will kick an inocent people that have 500,000,000 even they didn't hack that money
there is a anticheat server sided tutorial around the forums search it.
Re: Anti money hack -
]Rafaellos[ - 11.03.2012
I search but i dont find what i want... help me please.
Re: Anti money hack -
Shabi RoxX - 11.03.2012
see this
forum.sa-mp.com/showthread.php?t=71136
Re: Anti money hack -
]Rafaellos[ - 11.03.2012
I see this before but works and on admins :/
Re: Anti money hack -
Shabi RoxX - 11.03.2012
use this public.
pawn Код:
public MoneyTimer()
{
new username[MAX_PLAYER_NAME];
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(!IsPlayerAdmin(playerid))//this will check if player is not an admin use your scritped var for admin
{
if(GetPlayerCash(i) != GetPlayerMoney(i))
{
ResetMoneyBar(i);//Resets the money in the ori
UpdateMoneyBar(i,GetPlayerCash(i));//Sets the money
new hack = GetPlayerMoney(i) - GetPlayerCash(i)
GetPlayerName(i,username,sizeof(username));
printf("%s has picked up/attempted to spawn $%d
}
}
}
}
}
Re: Anti money hack -
]Rafaellos[ - 11.03.2012
Quote:
D:\Games Installs\GTA San Andreas\TEST SERVER\TEST SERVER\gamemodes\GDC.pwn(543) : error 017: undefined symbol "playerid"
D:\Games Installs\GTA San Andreas\TEST SERVER\TEST SERVER\gamemodes\GDC.pwn(550) : error 001: expected token: ";", but found "-identifier-"
D:\Games Installs\GTA San Andreas\TEST SERVER\TEST SERVER\gamemodes\GDC.pwn(550) : warning 204: symbol is assigned a value that is never used: "hack"
|
line 543: if(!IsPlayerAdmin(playerid))
line 550: GetPlayerName(i,username,sizeof(username));
Edit: I dont want only the rcon admin, i want all admins!
Re: Anti money hack -
]Rafaellos[ - 11.03.2012
Anyone?