Help! Money Hack
#1

What the script to Auto Kicked and Close Connection for player use Unlimited Money (Money Hack) ?
Reply
#2

There's plenty of tutorials & filterscripts for this, search instead of asking people to do your work.
Reply
#3

Here you go:-
At top of your script:-
PHP код:
new pOldMoney[MAX_PLAYERS];
new 
pNewMoney[MAX_PLAYERS]; 
Somewhere in your script:-
PHP код:
forward GivePlayerMoneyEx(playerid,ammount);
public 
GivePlayerMoneyEx(playerid,ammount)
{
     
      
pOldMoney[playerid] = GetPlayerMoney(playerid)
      
pNewMoney[playerid] = ammount;
   
      
GivePlayerMoney(playerid,ammount);
      
      return 
1;

Under GameModeInIt:-
PHP код:
SetTimer("CheckMoney",2000,true); 
Somewhere in the script:-
PHP код:
forward CheckMoney();
public 
CheckMoney()
{
      for(new 
0MAX_PLAYERSI++)
      {
               if(
IsPlayerConnected(i))
               {
                        if(
GetPlayerMoney(i) > pNewMoney[i])
                        {
                                  
ResetPlayerMoney(i);
                                  
GivePlayerMoney(i,pOldMoney[i]);
                                  
Kick(i);       
                        }
               }
      }
      return 
1;

Under OnPlayerConnect:-
PHP код:
OnPlayerConnect(playerid)
{
     
pNewMoney[playerid] = GetPlayerMoney(playerid);
     return 
1;

Reply
#4

Quote:
Originally Posted by DeeadPool
Посмотреть сообщение
Here you go:-
At top of your script:-
PHP код:
new pOldMoney[MAX_PLAYERS];
new 
pNewMoney[MAX_PLAYERS]; 
Somewhere in your script:-
PHP код:
forward GivePlayerMoneyEx(playerid,ammount);
public 
GivePlayerMoneyEx(playerid,ammount)
{
     
      
pOldMoney[playerid] = GetPlayerMoney(playerid)
      
pNewMoney[playerid] = ammount;
   
      
GivePlayerMoney(playerid,ammount);
      
      return 
1;

Under GameModeInIt:-
PHP код:
SetTimer("CheckMoney",2000,true); 
Somewhere in the script:-
PHP код:
forward CheckMoney();
public 
CheckMoney()
{
      for(new 
0MAX_PLAYERSI++)
      {
               if(
IsPlayerConnected(i))
               {
                        if(
GetPlayerMoney(i) > pNewMoney[i])
                        {
                                  
ResetPlayerMoney(i);
                                  
GivePlayerMoney(i,pOldMoney[i]);
                                  
Kick(i);       
                        }
               }
      }
      return 
1;

Under OnPlayerConnect:-
PHP код:
OnPlayerConnect(playerid)
{
     
pNewMoney[playerid] = GetPlayerMoney(playerid);
     return 
1;

https://sampforum.blast.hk/showthread.php?tid=292898
You really had to copy this?


Anyway use server sided money, best example i found
http://forum.sa-mp.com/showthread.ph...er+Sided+Money
Reply
#5

Quote:
Originally Posted by Shinja
Посмотреть сообщение
https://sampforum.blast.hk/showthread.php?tid=292898
You really had to copy this?


Anyway use server sided money, best example i found
http://forum.sa-mp.com/showthread.ph...er+Sided+Money
Oh, Thanks i had used this same tutorial for my server. I'll add the credits.

(Sorry for plagiarism)
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)