Re: [INC] PCash - Tired of money hackers? -
yom - 18.06.2008
Quote:
Originally Posted by Zezombia
mirkoiz: It works the exact same way as money  .
backwardsman97: That's freaking sweet  . What about timer updates? Also for the center thing, do like:
pawn Код:
if(pcash > 10 && pcash < 100) { format(string, sizeof(string), "000000%d", pcash)); }
else if(pcash > 100 && pcash < 1000) { format(string, sizeof(string), "00000%d", pcash)); }
else if(pcash > 1000 && pcash < 10000) { format(string, sizeof(string), "0000%d", pcash)); }
etc.
That kinda thing?
[ЯЈ®†]$!7ЈС©!Х™: I've already tried hacking it. Changing server variables. You can't :P.
|
Or simply:
pawn Код:
format(string, sizeof(string), "$%08d", pcash));
Re: [INC] PCash - Tired of money hackers? -
Zezombia - 18.06.2008
So formatting normal numbers works the same as formatting floats? I never knew that

.
Re: [INC] PCash - Tired of money hackers? -
zombie13333 - 18.06.2008
What about... using it as a replacement For the Drivers license Test thing. EX: "Take test for 30PCash".
Heres my script:
Код:
if (GetPlayerZCash(playerid) < 30)
{
SendClientMessage(playerid,RED,"You don't have enough Zcash");
ShowMenuForPlayer(dmvoption[playerid],playerid);
return 1;
}
if (DrivingLicense[playerid] == 1)
{
SendClientMessage(playerid,RED,"You already have a class C license!");
return 1;
}
GivePlayerZCash(playerid,-30);
SetPlayerPos(playerid,-2027.8353, -98.8884, 35.1642);
SetPlayerFacingAngle(playerid,355);
SetCameraBehindPlayer(playerid);
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,DrivingSchoolCP[0][0],DrivingSchoolCP[0][1],DrivingSchoolCP[0][2],5.0);
SendClientMessage(playerid,GREEN,"Get ready!");
DMVCP[playerid]=0;
SetPlayerInterior(playerid,0);
DMVTest[playerid] = 1;
SetVehicleParamsForPlayer(dmvcar,playerid,1,0);
Now, when I give myself 1000 ZCash, I type /myzcash and it says ZCash: 1000. So thats ok.
But when I try to take test, it says "Not enough ZCash!" So I don't know whats wrong. Using The DMV driving license test Script.
Re: [INC] PCash - Tired of money hackers? -
Zezombia - 18.06.2008
Humm zombie, there's something a little gay with it I think. I'm not sure though.
It seems to me that you cant have two scripts using it. Like a FilterScript and a GameMode both using PCash, because they will set there own variables.
Anything given to PCash in the FilterScript will work in the FilterScript, and anything given in the GameMode will work in the GameMode, and no were else.
Can someone verify that or give a solution?
Re: [INC] PCash - Tired of money hackers? -
zombie13333 - 19.06.2008
What if I merged the scripts of the FS to the GM?
Re: [INC] PCash - Tired of money hackers? -
zombie13333 - 19.06.2008
nvm, that fixed it, thanks for your help!
Re: [INC] PCash - Tired of money hackers? -
zombie13333 - 20.06.2008
yeah, like he said: How can we make it save on a existing txt file? like xadmin? inside the file it writes: PCash=
And it reads off of it?
Re: [INC] PCash - Tired of money hackers? -
boemeles - 20.06.2008
Quote:
Originally Posted by Zezombia
[ЯЈ®†]$!7ЈС©!Х™: I've already tried hacking it. Changing server variables. You can't :P.
|
Its stored ont he server indeed, you cant hack it... very good idea
Re: [INC] PCash - Tired of money hackers? -
Zezombia - 20.06.2008
Quote:
Originally Posted by zombie13333
yeah, like he said: How can we make it save on a existing txt file? like xadmin? inside the file it writes: PCash=
And it reads off of it?
|
I suck at scriptfiles, sorry

.
Quote:
Originally Posted by [ЯЈ®†
$!7ЈС©!Х™ ]
Its stored ont he server indeed, you cant hack it... very good idea 
|
Not my idea, West Side RPGs idea.
Re: [INC] PCash - Tired of money hackers? -
mini-d - 29.06.2008
Does any1 have a time that i could use for the kicks?
Re: [INC] PCash - Tired of money hackers? -
UsaBoy91 - 06.07.2009
This sucks , this is not good for server which have players.txt
Re: [INC] PCash - Tired of money hackers? -
aspire5630 - 25.07.2009
Hey sorry to like bump

Could somone help me log this, Ima retard come to loggin
Re: [INC] PCash - Tired of money hackers? -
Takumi.WS - 27.07.2009
On server restarts, the pcash restarts too

I need some help to make it save even in server restarts
EDIT : NVM, now i fixed the prob
Re: [INC] PCash - Tired of money hackers? -
Drag0s - 13.09.2009
Can someone give me link of FS?
Re: [INC] PCash - Tired of money hackers? -
Deat_Itself - 13.09.2009
nice
Re: [INC] PCash - Tired of money hackers? -
Drag0s - 13.09.2009
I cant install it can someone help me?
Re: [INC] PCash - Tired of money hackers? -
Duelos SA - 13.09.2009
Very Nice :P
Is possible link the Pcash to the actual money bar ?
Re: [INC] PCash - Tired of money hackers? -
coole210 - 13.09.2009
....
Re: [INC] PCash - Tired of money hackers? -
RaFsTar - 14.09.2009
Quote:
Originally Posted by WoW_pt
Very Nice :P
Is possible link the Pcash to the actual money bar ?
|
Just make an updater, when the pcash increases the player money does it too.
Re: [INC] PCash - Tired of money hackers? -
shady91 - 14.09.2009
this gave me a good idear thanks