how to let ppl give money away.. -
niels44 - 01.01.2012
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
Re: how to let ppl give money away.. -
Davz*|*Criss - 01.01.2012
I did not understood!
Re: how to let ppl give money away.. -
niels44 - 01.01.2012
hmm well when players use thje cmd /hey that they lose $20000 of their money... this better explaination i hope...
Re: how to let ppl give money away.. -
iGetty - 01.01.2012
Do you have anything that is defining the players money?
What gamemode are you using?
Re: how to let ppl give money away.. -
niels44 - 01.01.2012
im using my own gamemode NYD_Drifitng i want to make this for version 4 and no i havent got anything that defines it
Re: how to let ppl give money away.. -
iGetty - 01.01.2012
Hmm, then GivePlayerMoney(playerid, -20000); should be working.
Re: how to let ppl give money away.. -
Oh - 01.01.2012
Do you have a variable as your money?
PlayerInfo[playerid][pCash] -= 20000;
Be something like that. Just find your $ variable.
Re: how to let ppl give money away.. -
niels44 - 01.01.2012
wut u mena? i dont understand u
Re: how to let ppl give money away.. -
Oh - 01.01.2012
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.
Re: how to let ppl give money away.. -
niels44 - 01.01.2012
eehm im using the gamemode NYD_Drifting and im editting the gamemode but i dont understand wut u say for the rest