Freeze cash - 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: Freeze cash (
/showthread.php?tid=453260)
Freeze cash -
Levtu - 24.07.2013
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?
Re: Freeze cash -
Levtu - 25.07.2013
Refresh
Re: Freeze cash -
Ceez - 25.07.2013
***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!
Re: Freeze cash -
Levtu - 26.07.2013
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
is no effects.
Re: Freeze cash -
DeMoX - 26.07.2013
Do you have an anti hack? like GivePlayerMoneyEx? or something?
Re: Freeze cash -
Levtu - 26.07.2013
No, i don't think so..