Smart. Posted April 22, 2012 Posted April 22, 2012 You would need to add an event clientsided, where the GUIEditor thingy is. Then you need to trigger the client event. client: addEvent ( "myEvent", true ) function myEvent () -- your code end addEventHandler ( "myEvent", root, myEvent ) server: function e ( ) local money = getPlayerMoney ( source ) if ( money >= 15000 ) then takePlayerMoney ( source, 15000 ) local Skins = xmlCreateFile("skins.xml","Propietarios") local propietarios = xmlCreateChild(Skins, "owners") triggerClientEvent ( "myEvent", source ) xmlSaveFile( Skins ) else outputChatBox ( " tu Dinero es ".. money .." y necesitas $15000 para comprarte un skin." ) end end addEvent ( "qtm", true ) addEventHandler ( "qtm", root, e ) if I have understood it all correct.
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