Код:
new curHour, curMinute, curSecond;
new string[256], plname[64];
new weaponid, ammo;
//new hacking;
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && PlayerInfo[i][pAdmin] < 1)
{
gettime(curHour, curMinute, curSecond);
if (ScriptMoneyUpdated[i]+2 < curSecond)
{
new plactualmoney = GetPlayerMoney(i);
if (plactualmoney > ScriptMoney[i] && plactualmoney-999 > ScriptMoney[i])
{
// Probably using a money hack, let's freeze them, lock their account and kick them.
GetPlayerName(i, plname, sizeof(plname));
TogglePlayerControllable(i, 0);
new spawnedamount = plactualmoney-ScriptMoney[i];
format(string, sizeof(string), "%s is using moneycheat($%d)", plname, spawnedamount);
Kick(i);
SendClientMessageToAll(COLOR_LIGHTRED, string);
}
else
{
ScriptMoney[i] = plactualmoney;
ScriptMoneyUpdated[i] = 0;
}
}
I want that if i have 10000$, and i cheated 1000$, i want that then i have 9000$.