[Ayuda] Antichead
#2

Creas una variable para cada jugador que tenga el dinero que DEBERНA tener. Cada cierto tiempo chequeas si tiene mбs o menos de la cantidad de la variable, si el dinero es diferente a la variable, busca la forma de equilibrar el dinero con la variable.

pawn Код:
new cash[MAX_PLAYERS];
pawn Код:
public OnPlayerUpdate(playerid)
{
  if(GetPlayerMoney(playerid) != cash[playerid]) GivePlayerMoney(playerid, -1 * (GetPlayerMoney(playerid) - cash));
  return 1;
}
pawn Код:
GivePlayerCash(playerid, amount)
{
  cash = cash + amount;
  GivePlayerMoney(playerid, cash);
  return 1;
}
Por cierto, es Anticheat, no Antichead.
Reply


Messages In This Thread
[Ayuda] Antichead - by Daniel_Barrera - 21.05.2010, 05:14
Re: [Ayuda] Antichead - by Miguel - 21.05.2010, 05:28
Re: [Ayuda] Antichead - by Daniel_Barrera - 21.05.2010, 22:11
Re: [Ayuda] Antichead - by Miguel - 22.05.2010, 00:13
Re: [Ayuda] Antichead - by Daniel_Barrera - 22.05.2010, 11:26
Re: [Ayuda] Antichead - by Jesus^ - 22.05.2010, 17:51
Re: [Ayuda] Antichead - by Zamaroht - 22.05.2010, 18:34
Re: [Ayuda] Antichead - by Jesus^ - 22.05.2010, 20:06
Re: [Ayuda] Antichead - by TiNcH010 - 22.05.2010, 22:14
Re: [Ayuda] Antichead - by CTCCoco - 22.05.2010, 22:16

Forum Jump:


Users browsing this thread: 1 Guest(s)