04.02.2014, 06:47
Helo SA-MP.com , I have a small problem with my FilterScript.
So, i have in my Gamemode a Anti Money Hack , when a player try to get money with Hack, Automatic , the server reset money. To give player money , in my Gamemode i use this function
PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash] + 1500;
SetPlayerMoney(playerid, PlayerInfo[playerid][pCash]);
Also, i put in my FilterScript function that are in my Gamemode , To ResetMoney etc. by Didn't Work, A Good Scripter said me to use CallRemoteFunction, and he mentioned : You can create a function type:
forward FSGivePlayerCash(playerid,cash);
public FSGivePlayerCash(playerid,cash) { SetPlayerMoney(playerid, PlayerInfo[playerid][pCash]); }
And Call Function
I tried what he said, but didn't work,
I put what it said in Filterscript, and in my Gamemode i put at function OnPlayerConnect
CallRemoteFunction("FSGivePlayerCash", "d");
Here is my FS : http://pastebin.com/YghNwRbe
What cand i do in This Case, a solution Please?
PS: Sorry for my Language
So, i have in my Gamemode a Anti Money Hack , when a player try to get money with Hack, Automatic , the server reset money. To give player money , in my Gamemode i use this function
PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash] + 1500;
SetPlayerMoney(playerid, PlayerInfo[playerid][pCash]);
Also, i put in my FilterScript function that are in my Gamemode , To ResetMoney etc. by Didn't Work, A Good Scripter said me to use CallRemoteFunction, and he mentioned : You can create a function type:
forward FSGivePlayerCash(playerid,cash);
public FSGivePlayerCash(playerid,cash) { SetPlayerMoney(playerid, PlayerInfo[playerid][pCash]); }
And Call Function
I tried what he said, but didn't work,
I put what it said in Filterscript, and in my Gamemode i put at function OnPlayerConnect
CallRemoteFunction("FSGivePlayerCash", "d");
Here is my FS : http://pastebin.com/YghNwRbe
What cand i do in This Case, a solution Please?
PS: Sorry for my Language