Posts: 11,827
Threads: 33
Joined: Dec 2011
Reputation:
0
The gamemode probably uses server-side. That means that GivePlayerMoney in filterscripts will not work and you'll have to use CallRemoteFunction to call the custom function that registers the money to the server for each player.
Posts: 125
Threads: 31
Joined: Feb 2014
Reputation:
0
my code to give money its - GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]-2500); if im worng please send me guide for to do its and i send the code you need sorry for my bad english
Posts: 125
Threads: 31
Joined: Feb 2014
Reputation:
0
more codes for information
new string[256];
new killer = playerid;
new price = PlayerInfo[i][pHeadValue];
PlayerInfo[i][pCash] = PlayerInfo[i][pCash]-price/2;
GivePlayerMoney(i, -price/2);
PlayerInfo[killer][pCash] = PlayerInfo[killer][pCash]+price/2;
GivePlayerMoney(killer, price/2);
format(string, sizeof(string),"Hitman %s has fulfilled the contract on %s and collected $%d.",PlayerName(killer),PlayerName(i),price/2);
SendFamilyMessage(8, COLOR_YELLOW, string);
format(string, sizeof(string),"You have been critically injured by a hitman and lost $%d.",price/2);
SendClientMessage(i, COLOR_YELLOW, string);
PlayerPlaySound(killer, 1052, 0.0, 0.0, 0.0);
ClearContract(i);
GoChase[killer] = 999;
PlayerInfo[killer][pCHits]++;