kevin11 Posted May 1, 2010 Share Posted May 1, 2010 (edited) EDITED i need a script that does thw following /cash (shows youre cash) /cash player (shows other players cash) i also want whn i type /cash, the you have ...$ will be announced public in the chatbox this is what i got addCommandHandler ( "cash", function ( player, command ) local money = getPlayerMoney ( player ) --Grab the player's money outputChatBox ( "You have $"..money, player, 0, 255, 0 ) end ) Edited May 3, 2010 by Guest Link to comment
raulrobi Posted May 1, 2010 Share Posted May 1, 2010 Hey,i got one but i didnt want to make it public.So i give you the cash and you give me the dd/dm wins? Ok?.But i have a little problem.it doesent saves the money. Link to comment
kevin11 Posted May 1, 2010 Author Share Posted May 1, 2010 Hey,i got one but i didnt want to make it public.So i give you the cash and you give me the dd/dm wins?Ok?.But i have a little problem.it doesent saves the money. if it doesnt work why dont post here so people can look at it (the racewin script for dd/dm comes tommorow , only if it works) Link to comment
raulrobi Posted May 1, 2010 Share Posted May 1, 2010 i dont post here than COOKIE2 stheals my script and than says it is my script.i dont sthealed it ( jose ) Link to comment
kevin11 Posted May 1, 2010 Author Share Posted May 1, 2010 (edited) ahah send to me in PM Edited May 1, 2010 by Guest Link to comment
kevin11 Posted May 1, 2010 Author Share Posted May 1, 2010 stay on topic ok? (i post it IF it works if it doesnt work i wont post cuz its crap then) Link to comment
Jason_Gregory Posted May 1, 2010 Share Posted May 1, 2010 What do you need ? A way to save Players Money into a Account or just a simple Cash Script ? like you join the server and on the right in middle there is little layer CASH: 0000 You can use Direct X Functions + getPlayerSerial. But you need to save the Serial + Moneyamount somewhere, try to use SQL Databases or the Account Stylesheet Link to comment
kevin11 Posted May 1, 2010 Author Share Posted May 1, 2010 well i want a script that save yuor cash on youre account Link to comment
Jason_Gregory Posted May 1, 2010 Share Posted May 1, 2010 https://wiki.multitheftauto.com/wiki/SetAccountData Link to comment
kevin11 Posted May 1, 2010 Author Share Posted May 1, 2010 lol i better quit scripting cuz i dont get the whole thing Link to comment
kevin11 Posted May 1, 2010 Author Share Posted May 1, 2010 ANYONE with a script or something not from wiki (i already searched there) Link to comment
kevin11 Posted May 2, 2010 Author Share Posted May 2, 2010 jason what do u mean with simple cash script Link to comment
raulrobi Posted May 2, 2010 Share Posted May 2, 2010 (edited) I dont let more public... Edited May 2, 2010 by Guest Link to comment
kevin11 Posted May 2, 2010 Author Share Posted May 2, 2010 thats not cash save.... it shows how much cash u have Link to comment
raulrobi Posted May 2, 2010 Share Posted May 2, 2010 i added here to make to save it ... Link to comment
kevin11 Posted May 2, 2010 Author Share Posted May 2, 2010 oh.. but i told you i already gotthis Link to comment
kevin11 Posted May 2, 2010 Author Share Posted May 2, 2010 i mean the one in zombie mod i saw it today Link to comment
kevin11 Posted May 2, 2010 Author Share Posted May 2, 2010 to everyone here YAYAYAYA i got my ascript AYAYAYAYAYAYAYAYAYYA raulrobi Link to comment
dzek (varez) Posted May 3, 2010 Share Posted May 3, 2010 dudes, you (kevin11) and raulrobi are talking with each other here for some time.. i dont know even WHAT YOU WANT and this: to everyone here YAYAYAYA i got my ascript AYAYAYAYAYAYAYAYAYYA looks like your problems are solved Link to comment
robhol Posted May 3, 2010 Share Posted May 3, 2010 And.. please stop posting 2, 6 or 250 million times in a row. There is an edit button, you can use that for adding information to your posts. Bumping should be used carefully, not every other second. These forums aren't active enough to ensure an answer within a couple of hours, especially when you don't even manage to ask your questions properly! PLEASE, try to be patient. As a general rule, you should bump at MOST once in 24 hours and use the edit button wherever you can.. Link to comment
kevin11 Posted May 3, 2010 Author Share Posted May 3, 2010 no look i edited my question yesterday that is what i ned Link to comment
cronomx Posted May 4, 2010 Share Posted May 4, 2010 Maybe this is what you are looking for: addCommandHandler ( "cash", function ( player, command, dude ) if dude then local temp = getPlayerFromName(dude) if temp then outputChatBox("The player "..dude.." has $"..tostring(getPlayerMoney(temp)),player,0,255,0) else outputChatBox("Player "..dude.." not found",player,0,255,0) end else outputChatBox("The player "..getPlayerName(player).." has $"..tostring(getPlayerMoney(player)), getRootElement(),0,255,0) end end ) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now