Freeze cash
#1

Hello everyone.
I don't know why, when i use command:
pawn Код:
GivePlayerMoney(playerid, -50);
50$ are taken from example 200$, but after few second is back and i still have 200$ instead of 150$

pawn Код:
SetPlayerRandomSpawn(playerid);
   
    if(!FirstSpawn[playerid]){
//      ShowPlayerDialog(playerid, 4, DIALOG_STYLE_LIST, "Wybierz STYL WALKI , mozna zmienic komenda /StylWalki", "Normalny \n Karate \n Bokser \n Gangster", "Wybieram", "Anuluj");
        TextDrawHideForPlayer(playerid,Powitanie[0]);
        TextDrawHideForPlayer(playerid,Powitanie[1]);
        TextDrawHideForPlayer(playerid,Powitanie[2]);
        TextDrawHideForPlayer(playerid,Powitanie[3]);
        TextDrawHideForPlayer(playerid,Powitanie[4]);
        TextDrawHideForPlayer(playerid,Powitanie[5]);
        TextDrawShowForPlayer(playerid,ReklamaTD);
        TextDrawShowForPlayer(playerid,Zapisy[0]);
        TextDrawShowForPlayer(playerid,Zapisy[1]);
        TextDrawShowForPlayer(playerid,Zapisy[2]);
       
        for(new x=0;x<10;x++){
            TextDrawShowForPlayer(playerid,ZapisyBack[x]);
        }
       
        for(new x=0;x<10;x++){
            TextDrawShowForPlayer(playerid,ZapisyBack[x]);
        }
       
        new str[25];
        format(str,sizeof(str),"%d",playerid);
        TextDrawSetString(PlayerPasek[playerid][0],str);
        format(str,sizeof(str),"%s",PlayerName(playerid));
        TextDrawSetString(PlayerPasek[playerid][1],str);
       
        ShowPlayerPasek(playerid);
    }
   
    Freeze[playerid] = false;
    GivePlayerMoney(playerid, 10000);
    Money[playerid] += 10000;
    FirstSpawn[playerid] = true;
   
    return 1;
}
I'm not sure that's that codeline, so I attach GameMode as PWN.

What is the reason?
Reply
#2

Refresh
Reply
#3

***DELETED****
Checked your script and just add
Money[playerid] += AMOUNT;
under the GivePlayerMoney
Use same amounts for both like
Код:
GivePlayerMoney(playerid, 250);
Money[playerid] += 250;
Good luck!
Reply
#4

Not this way..
I know that in GameMode everywhere is used same amounts for both, but
This command is in filterscript:
pawn Код:
GivePlayerMoney(playerid, -50);
And if I add
pawn Код:
Money[playerid] -= 50;
is no effects.
Reply
#5

Do you have an anti hack? like GivePlayerMoneyEx? or something?
Reply
#6

No, i don't think so..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)