Jump to content

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...