Guten Tag Community,
ich habe eine frage zum JunkBuster Anti Money Cheat.
Der Code von JunkBuster:
PUBLIC: JB::GivePlayerMoney (playerid, money)
{
if (IsPlayerConnected (playerid))
{
GivePlayerMoney (playerid, money);
JB::PlayerInfo [playerid][JB::pMoney] += money;
return 1;
}
return 0;
}
PUBLIC: JB::ResetPlayerMoney (playerid)
{
if (IsPlayerConnected (playerid))
{
ResetPlayerMoney (playerid);
JB::PlayerInfo [playerid][JB::pMoney] = 0;
return 1;
}
return 0;
}
PUBLIC: JB::GetPlayerMoney (playerid)
{
if (IsPlayerConnected (playerid))
{
if (JB::Variables [MONEY_HACK])
return min (GetPlayerMoney (playerid), JB::PlayerInfo [playerid][JB::pMoney]);
else
return GetPlayerMoney (playerid);
}
return 0;
}
PUBLIC: JB::SetPlayerMoney (playerid, money)
{
if (IsPlayerConnected (playerid))
{
ResetPlayerMoney (playerid);
GivePlayerMoney (playerid, money);
JB::PlayerInfo [playerid][JB::pMoney] = money;
return 1;
}
return 0;
}
PRIVATE: SyncMoney_SS (playerid)
{
if (IsPlayerConnected (playerid))
{
ResetPlayerMoney (playerid);
GivePlayerMoney (playerid, JB::PlayerInfo [playerid][JB::pMoney]);
return 1;
}
return 0;
}
PRIVATE: SyncMoney_CS (playerid)
{
if (IsPlayerConnected (playerid))
{
JB::PlayerInfo [playerid][JB::pMoney] = GetPlayerMoney (playerid);
return 1;
}
return 0;
}
Gibt man dem Spieler im Gamemode das Geld mit GivePlayerMoney(playerid, GELD)
Wird es immer bei mir resetet und es wird einem Admin immer eine Nachricht wegen Geldcheat gesendet.
Kann mir einer sagen wie ich dem Spieler dan Geld geben kann ?
MFG
Selfmade