Money bug
#1

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...
Reply
#2

Check the CancelPlayerCurrentMission(playerid) function. Making player lose $100 might be there.
Reply
#3

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?
Reply
#4

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....
Reply
#5

It is hardcoded in San Andreas. When you die in the single player you'll also lose 100.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)