How I can create my own GetPlayerMoney(playerid)?
#1

How I can create my own GetPlayerMoney(playerid)? I don't know how to do, help me please.

Maybe like this?

pawn Код:
public GetPlayerMoneyAnti(plyid)
{
    PlayerInfo[plyid][pCash];
    return 1;
}
Thanks
Reply
#2

make a include i think
Reply
#3

pawn Код:
public GetPlayerMoneyAnti(plyid)
{
    return PlayerInfo[plyid][pCash];
}
Reply
#4

pawn Код:
stock GetPlayerMoneyEx(playerid)
{
  return GetPlayerMoney(playerid);
}
Using your example:

pawn Код:
public GetPlayerMoneyAnti(playerid)
{
  return PlayerInfo[playerid][pCash];
}
Reply
#5

Quote:
Originally Posted by Ettans
pawn Код:
stock GetPlayerMoneyEx(playerid)
{
  new money = GetPlayerMoney(playerid);
  return money;
}
Thanks for all. I'm creating this because i am creating a money anticheat.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)