Hello Guys Today I present you My Anti Money Hack System ,
Please Comment and +Rep me guys ,
Please Comment and +Rep me guys ,
Code:
new money[MAX_PLAYERS];
public OnPlayerSpawn(playerid)
{
money[playerid] = GetPlayerMoney(playerid);
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
money[killerid] = GetPlayerMoney(killerid);
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
money[playerid] = GetPlayerMoney(playerid);
return 1;
}
public OnPlayerLeaveCheckpoint(playerid)
{
money[playerid] = GetPlayerMoney(playerid);
return 1;
}
public OnPlayerEnterRaceCheckpoint(playerid)
{
money[playerid] = GetPlayerMoney(playerid);
return 1;
}
public OnPlayerLeaveRaceCheckpoint(playerid)
{
money[playerid] = GetPlayerMoney(playerid);
return 1;
}
public OnPlayerUpdate(playerid)
{
if(GetPlayerMoney(playerid) == money[playerid] + 500)
{
ResetPlayerMoney(playerid);
GivePlayerMoney(playerid,money[playerid]);
return 1;
}
if(GetPlayerMoney(playerid) == money[playerid] + 1000)
{
ResetPlayerMoney(playerid);
GivePlayerMoney(playerid,money[playerid]);
return 1;
}
if(GetPlayerMoney(playerid) == money[playerid] + 5000)
{
ResetPlayerMoney(playerid);
GivePlayerMoney(playerid,money[playerid]);
return 1;
}
if(GetPlayerMoney(playerid) == money[playerid] + 10000)
{
ResetPlayerMoney(playerid);
GivePlayerMoney(playerid,money[playerid]);
return 1;
}
if(GetPlayerMoney(playerid) == money[playerid] + 20000)
{
ResetPlayerMoney(playerid);
GivePlayerMoney(playerid,money[playerid]);
return 1;
}
if(GetPlayerMoney(playerid) == money[playerid] + 99999999)
{
ResetPlayerMoney(playerid);
GivePlayerMoney(playerid,money[playerid]);
return 1;
}
if(GetPlayerMoney(playerid) == 99999999)
{
ResetPlayerMoney(playerid);
GivePlayerMoney(playerid,money[playerid]);
return 1;
}
return 1;
}