LasHa Posted June 7, 2014 Share Posted June 7, 2014 in my script i need people who have got money 5000 or more how to get it? or why it doesn't work? what to fix on it? if (getElementData(localPlayer,"Your_Data" == 10 )) then Link to comment
Price. Posted June 7, 2014 Share Posted June 7, 2014 if client then use getPlayerAccount setAccountData Link to comment
Castillo Posted June 7, 2014 Share Posted June 7, 2014 if ( getElementData ( localPlayer,"Your_Data" ) == 10) then Link to comment
LasHa Posted June 8, 2014 Author Share Posted June 8, 2014 ty solidsnake and when player click button how to get if he have more than 5000 dollar? Link to comment
LasHa Posted June 8, 2014 Author Share Posted June 8, 2014 ouch doesn't works solidsnake14 can i add you in skype and show you whole scirpt and help me pleasE? Link to comment
Cadell Posted June 8, 2014 Share Posted June 8, 2014 explain what u want or what are errors Link to comment
Snow-Man Posted June 8, 2014 Share Posted June 8, 2014 if client then use getPlayerAccount setAccountData getPlayerAccount and setAccountData server side Link to comment
MIKI785 Posted June 8, 2014 Share Posted June 8, 2014 well i dont know what side you are using, if you want also that when he click the button gives 5000, use givePlayerMoney onClientGUIClick using givePlayerMoney clientsided isn't good idea really... and he wants to check if the local player has 5000 or more... Simply: if getPlayerMoney() > 4999 then --Whatever you need doing else outputChatBox("Not enough money") 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