yMassai Posted July 7, 2012 Posted July 7, 2012 local playermoney = 600 addEvent ( "GetSkin", true ) addEventHandler ( "GetSkin", getRootElement(), function (modelo) g_playerMoney = getPlayerMoney(source) skinget = setElementModel(source, tonumber(modelo)) if (g_playerMoney < 600) then return false end takePlayerMoney(source,tonumber(playermoney)) end ) this part of server-side is presenting problems. money the player is removed but the skin is given, someone could help me?
Castillo Posted July 7, 2012 Posted July 7, 2012 What you said makes totally no sense. local playermoney = 600 addEvent ( "GetSkin", true ) addEventHandler ( "GetSkin", getRootElement(), function ( modelo ) local g_playerMoney = getPlayerMoney ( source ) if ( g_playerMoney >= playermoney ) then setElementModel ( source, tonumber ( modelo ) ) takePlayerMoney ( source, tonumber ( playermoney ) ) end end )
yMassai Posted July 7, 2012 Author Posted July 7, 2012 thanks, this is working. I'm learning better, it was just a lack of attention and organization. sorry for bad english.
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