ElGor2s Posted May 24, 2020 Share Posted May 24, 2020 function giveCash( source, command, giveplayername, amount ) local money = getPlayerMoney( source ) local givenplayer = getPlayerFromNick ( giveplayername ) local playername = getClientName ( source ) local moneytogive = tonumber(amount) if( money < moneytogive ) then outputChatBox ( "* Cantidad invalida", source, 243, 151, 12 ) return end if( moneytogive < 1 ) then outputChatBox ( "* Cantidad invalida", source, 243, 151, 12 ) return end if( givenplayer ) then givePlayerMoney ( givenplayer, amount ) takePlayerMoney ( source, tonumber(amount) ) outputChatBox ( "* Nombre A Quien Depositas" ..amount.." a "..getClientName ( givenplayer ).. ".", source, 243, 151, 12 ) outputChatBox ( "* " ..playername.. " enviar dinero $" ..amount.. ".", givenplayer, 243, 151, 12 ) else outputChatBox ( "* El Jugador No Existe", source, 243, 151, 12 ) end end addCommandHandler ( "Depositar", giveCash ) I need to know if it is correctly configured and if it has a fault in the translation I made, it is for a Latin server Link to comment
Moderators Patrick Posted May 24, 2020 Moderators Share Posted May 24, 2020 Looks good. 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