LasHa Posted June 7, 2014 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
Castillo Posted June 7, 2014 Posted June 7, 2014 if ( getElementData ( localPlayer,"Your_Data" ) == 10) then
LasHa Posted June 8, 2014 Author Posted June 8, 2014 ty solidsnake and when player click button how to get if he have more than 5000 dollar?
LasHa Posted June 8, 2014 Author Posted June 8, 2014 ouch doesn't works solidsnake14 can i add you in skype and show you whole scirpt and help me pleasE?
Snow-Man Posted June 8, 2014 Posted June 8, 2014 if client then use getPlayerAccount setAccountData getPlayerAccount and setAccountData server side
MIKI785 Posted June 8, 2014 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
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