SA-MP Forums Archive
Auto money Loss Bug - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Auto money Loss Bug (/showthread.php?tid=484108)



Auto money Loss Bug - MBilal - 29.12.2013

Hello GUyz I need a Bit help i dont know When player die or do use /kill he loss 100 $ i check script but i dont know what is this bug
Код:
public OnPlayerDeath(playerid, killerid, reason)
{
	SendDeathMessage(killerid, playerid, reason);
	 SetPlayerScore (killerid, GetPlayerScore (killerid) + 1);
	SendClientMessage(killerid,COLOR_LIGHTGREEN,"You Have Get 2$ For and 1 Score ");
	Player[killerid][pKills]++;
   	Player[playerid][pDeaths]++;
   	FogEnabled[playerid] = false;
	GivePlayerMoney(killerid,2);
    }
	return 1;
}
But why Player Loss Cash 100$ Help plz


Re: Auto money Loss Bug - Konstantinos - 29.12.2013

https://sampforum.blast.hk/showthread.php?tid=483679


Re: Auto money Loss Bug - Excelize - 29.12.2013

GivePlayerMoney(killerid,2);

The '2' is most likely a define..
Look for:

#define 2

set that to 0.
If that doesnt work, PM me


Re: Auto money Loss Bug - MBilal - 29.12.2013

Plz help me Guyz To Fix This BUg some budy give me Code Plz