15.01.2012, 17:03
I have a big problem between a gamemode and filterscript!
I have a Vehicleownership in filterscripts and when you buy a car than the money stays in the player pocket!
In the gamemode i use:
And the same fuction "GivePlayerCash" i use in the filter script! [of course i stock the funtcion in my fs]
Now why the money stay by the player and why dont take the money from the player when he buy a vehicle??
And what is the difference between GivePlayerMoney and GivePlayerCash is the "GivePlayerCash" function for the safety of a cheat or what?
PLEASE HELP ME!
SRY FOR MY BAD ENGLISH!!!!
I have a Vehicleownership in filterscripts and when you buy a car than the money stays in the player pocket!
In the gamemode i use:
PHP код:
stock GivePlayerCash(playerid, money)
{
Cash[playerid] += money;
ResetMoneyBar(playerid);
UpdateMoneyBar(playerid,Cash[playerid]);
return Cash[playerid];
}
Now why the money stay by the player and why dont take the money from the player when he buy a vehicle??
And what is the difference between GivePlayerMoney and GivePlayerCash is the "GivePlayerCash" function for the safety of a cheat or what?
PLEASE HELP ME!
SRY FOR MY BAD ENGLISH!!!!