Posts: 1,102
Threads: 196
Joined: Jul 2011
Reputation:
0
hey guys,
i want to make it that when a players does somethin example: /hey that they get $20000 away from them so they have to pay it to the server u know... but how to make it i already tried to make this:
GivePlayerMoney(playerid, -20000); but that aint working...
pls help
niels
Posts: 1,102
Threads: 196
Joined: Jul 2011
Reputation:
0
hmm well when players use thje cmd /hey that they lose $20000 of their money... this better explaination i hope...
Posts: 1,753
Threads: 277
Joined: Sep 2010
Reputation:
0
Do you have anything that is defining the players money?
What gamemode are you using?
Posts: 1,102
Threads: 196
Joined: Jul 2011
Reputation:
0
im using my own gamemode NYD_Drifitng i want to make this for version 4 and no i havent got anything that defines it
Posts: 1,753
Threads: 277
Joined: Sep 2010
Reputation:
0
Hmm, then GivePlayerMoney(playerid, -20000); should be working.
Posts: 405
Threads: 40
Joined: Aug 2011
Reputation:
0
Do you have a variable as your money?
PlayerInfo[playerid][pCash] -= 20000;
Be something like that. Just find your $ variable.
Posts: 1,102
Threads: 196
Joined: Jul 2011
Reputation:
0
wut u mena? i dont understand u
Posts: 405
Threads: 40
Joined: Aug 2011
Reputation:
0
Do you have money set as a variable.
Like in a normal script to prevent anti-money hacks etc they use pCash as a variable for $.
What script are you editing? I'll take a look at it and help you find the variable, I'm pretty sure it'd have it as pMoney or pCash or something like that. Not alot of people use GivePlayerMoney or w/e anymore.
Posts: 1,102
Threads: 196
Joined: Jul 2011
Reputation:
0
eehm im using the gamemode NYD_Drifting and im editting the gamemode but i dont understand wut u say for the rest