Anti money hack
#1

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!
Reply
#2

Maybe something like this?
pawn Код:
if (!IsPlayerAdmin(playerid)){
if(GetPlayerMoney(playerid) >= 500 000 000){
Kick(playerid);
}
}
Reply
#3

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.
Reply
#4

I search but i dont find what i want... help me please.
Reply
#5

see this

forum.sa-mp.com/showthread.php?t=71136
Reply
#6

I see this before but works and on admins :/
Reply
#7

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
}
}
}
}
}
Reply
#8

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!
Reply
#9

Anyone?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)