CheiN Posted June 14, 2012 Posted June 14, 2012 CMD.buymap("mapName") (user) setNextMap ("mapName") outputChatBox ["(player) Buy ("mapName") price 3000 "] takePlayerMoney ("3000") end something is bad? Please is for my new resource My scripts: toptimes on scoreboard (server21) Screen on login(scren) Score on scoreboard (score)
Castillo Posted June 14, 2012 Posted June 14, 2012 Sorry if I sound rude, but that is just a mess, you'll have to learn the Lua syntax. https://wiki.multitheftauto.com/wiki/Scr ... troduction viewtopic.php?f=148&t=40809 San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
TwiX! Posted June 14, 2012 Posted June 14, 2012 function command (user) setNextMap ("mapName")--here your function... outputChatBox ("(player) Buy ('mapName') price 3000 ",getRootElement(),255,255,255,true) takePlayerMoney ( user, 3000 ) end addCommandHandler ( "mapName", command ) - Working on [php/HTML/Mysql/Lua/Java Scripts/Web Design/3D Modeling]
CheiN Posted June 15, 2012 Author Posted June 15, 2012 function command (user) setNextMap ("mapName")--here your function... outputChatBox ("(player) Buy ('mapName') price 3000 ",getRootElement(),255,255,255,true) takePlayerMoney ( user, 3000 ) end addCommandHandler ( "mapName", command ) in here your function what i put??? i want to set a map writing /buymap My scripts: toptimes on scoreboard (server21) Screen on login(scren) Score on scoreboard (score)
micheal1230 Posted June 15, 2012 Posted June 15, 2012 function command (user) setNextMap ("mapName")--here your function... outputChatBox ("(player) Buy ('mapName') price 3000 ",getRootElement(),255,255,255,true) takePlayerMoney ( user, 3000 ) end addCommandHandler ( "mapName", command ) in here your function what i put??? i want to set a map writing /buymap function command (user) setNextMap ("mapName")--here your function... outputChatBox ("(player) Buy ('mapName') price 3000 ",getRootElement(),255,255,255,true) takePlayerMoney ( user, 3000 ) end addCommandHandler ( "buymap", command )
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