SA-MP Forums Archive
Help pls, moneycheat - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help pls, moneycheat (/showthread.php?tid=118031)



Help pls, moneycheat - luuksa - 02.01.2010

Код:
	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$.

Help pls

Sorry about bad english


Re: Help pls, moneycheat - luuksa - 02.01.2010

anyone ? pls i need this fast