CheiN Posted June 14, 2012 Share 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 Link to comment
Castillo Posted June 14, 2012 Share 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 Link to comment
TwiX! Posted June 14, 2012 Share 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 ) Link to comment
CheiN Posted June 15, 2012 Author Share 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 Link to comment
micheal1230 Posted June 15, 2012 Share 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 ) 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