02.10.2011, 20:15
I cant use giveplayermoneyex on its own like that,my anticheat wont enable me to. I already have a public function and a forward for it. But like i say the code is setting the money to that and not simply taking it from the players current money.
I already have this under forwards:
forward vx_GivePlayerMoney(playerid, money);
This under publics:
public vx_GivePlayerMoney(playerid, money)
{
Player[playerid][Money] = money;
return 1;
}
And in the filterscript i change the standard giveplayermoney to:
CallRemoteFunction("vx_GivePlayerMoney", "dd", playerid, -80);
But instead of taking $80 it is actually setting the players money to $80.
I already have this under forwards:
forward vx_GivePlayerMoney(playerid, money);
This under publics:
public vx_GivePlayerMoney(playerid, money)
{
Player[playerid][Money] = money;
return 1;
}
And in the filterscript i change the standard giveplayermoney to:
CallRemoteFunction("vx_GivePlayerMoney", "dd", playerid, -80);
But instead of taking $80 it is actually setting the players money to $80.