01.07.2015, 23:46
Create a new file in pawno, select everything and replace it with the code below:
Save it as filterscripts/fixes-inc-money-fixer.pwn, and compile it.
Now open your server.cfg file, find the filterscripts line and add fixes-inc-money-fixer too the end of it. Save and close the server.cfg file, start your server, go test.
If it works, hooray, if it doesn't work, try finetune the moneyFixDelay value at the top of the script
Код:
// --- Fixes.inc Money Fixer ----------------- By: suicidal.banana // Quick and dirty fix for money bug of fixes.inc, because why not #include <a_samp> new playerMoneyValues[MAX_PLAYERS], moneyFixDelay = 2500; // 1000 = 1 second forward FixPlayerMoney(playerid); public OnFilterScriptInit() { print("\n-=[ fixes.inc money fixer loaded! ]=-\n"); return 1; } public FixPlayerMoney(playerid) { if(playerMoneyValues[playerid] && (playerMoneyValues[playerid] != 0)) { GivePlayerMoney(playerid, playerMoneyValues[playerid]); } return 1; } public OnPlayerSpawn(playerid) { SetTimerEx("FixPlayerMoney", moneyFixDelay, false, "i", playerid); return 1; } public OnPlayerDeath(playerid, killerid, reason) { playerMoneyValues[playerid] = GetPlayerMoney(playerid); return 1; } public OnPlayerDisconnect(playerid, reason) { playerMoneyValues[playerid] = 0; return 1; } public OnFilterScriptExit() { print("\n-=[ fixes.inc money fixer unloaded! ]=-\n"); return 1; }
Now open your server.cfg file, find the filterscripts line and add fixes-inc-money-fixer too the end of it. Save and close the server.cfg file, start your server, go test.
If it works, hooray, if it doesn't work, try finetune the moneyFixDelay value at the top of the script