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