[Include] [INC] PCash - Tired of money hackers?
#21

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));
Reply
#22

So formatting normal numbers works the same as formatting floats? I never knew that .
Reply
#23

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

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

What if I merged the scripts of the FS to the GM?
Reply
#26

nvm, that fixed it, thanks for your help!
Reply
#27

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

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
Reply
#29

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

Does any1 have a time that i could use for the kicks?
Reply
#31

This sucks , this is not good for server which have players.txt
Reply
#32

Hey sorry to like bump
Could somone help me log this, Ima retard come to loggin
Reply
#33

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
Reply
#34

Can someone give me link of FS?
Reply
#35

nice
Reply
#36

I cant install it can someone help me?
Reply
#37

Very Nice :P

Is possible link the Pcash to the actual money bar ?
Reply
#38

....
Reply
#39

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

this gave me a good idear thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)