Money 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Money bug (
/showthread.php?tid=255316)
Money bug -
[KO]KillerThriller - 15.05.2011
I think it's a bug, i don't have it on any of my scripts, but when you die, you loose $100 i didn't want to report it on bugs sections, but i think it's a bug...
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
if(IsPlayerInMission[playerid] == 1)
{
CancelPlayersCurrentMission(playerid);
}
if(PInfo[playerid][onduty] == 1)
{
SendFMessageToAll(green,"Driver %s(ID:%i) is now off duty!",GetPName(playerid),playerid);
PInfo[playerid][onduty] = 0;
PInfo[playerid][fare2] = 0;
}
KillTimer(Fare[playerid]);
PInfo[playerid][calledtaxi] = 0;
SetPlayerVirtualWorld(playerid,0);
inplane[playerid] = 0;
Delete3DTextLabel(Shamal[playerid]);
if(GPSon[playerid] == 1)
{
SetPlayerGPS(playerid,0);
}
return 1;
}
None of my includes, none of my filterscripts...
And it's a bit annoying because i have a money anti cheat so yeah

EDIT:It's onplayerspawn not onplayerdeath, but still i don't have anything that says to give monye -100...
Re: Money bug -
[DM]Kane - 15.05.2011
Check the CancelPlayerCurrentMission(playerid) function. Making player lose $100 might be there.
Re: Money bug -
Spectre - 15.05.2011
Well, it certainly isn't in what you posted...
Why don't you use the "edit/find" option in pawno and search for "GivePlayerMoney" for the entire script/filterscript?
Re: Money bug -
[KO]KillerThriller - 15.05.2011
Quote:
Originally Posted by Spectre
Well, it certainly isn't in what you posted...
Why don't you use the "edit/find" option in pawno and search for "GivePlayerMoney" for the entire script/filterscript?
|
First of all if you readed correct, you would read that i don't have nothin that give money -100 iv searched everywhere...
Second when i was on another sevrer i had it was exactly the same....
Re: Money bug -
Vince - 15.05.2011
It is hardcoded in San Andreas. When you die in the single player you'll also lose 100.