Jump to content

[HELP] Peak Command.


Recommended Posts

Posted

In this script i'd like to give 100000$ to each player who does /peak .

i do not know why this script doesn't work . Any help would be welcomed.

function command () 
givePlayerMoney ( thePlayer, 100000 )  
end 
addCommandHandler ("peak", player) 

Posted

thePlayer is not defined and the player at the command must be a handler function try this :

-- # Server Side : 
function command ( thePlayer ) 
        givePlayerMoney ( thePlayer, 100000 )  
end 
addCommandHandler ( "peak",command ) 

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...