SkrillexX Posted May 19, 2013 Share Posted May 19, 2013 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) Link to comment
iPrestege Posted May 19, 2013 Share Posted May 19, 2013 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 ) Link to comment
SkrillexX Posted May 19, 2013 Author Share Posted May 19, 2013 Oh , i understood. thanks for help and Sorry i am beginner . 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