Best Anti-Money Hack Method (Server Sided Money) Discussion
#10

PHP Code:
PlayerMoney(playeridamount = -1) {
  static 
money[MAX_PLAYERS];
  if(
amount != -1) {
    
money[playerid] = amount;
    
GivePlayerMoney(playeridamount GetPlayerMoney(playerid));
  }
  return 
money[playerid];
}
// set
PlayerMoney(playerid5000);
// get
new amountOfMoneyPlayerHas PlayerMoney(playerid); 
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)