6d23 Posted September 16, 2009 Posted September 16, 2009 i need to get a RPG game, I DONT NEED SCRIPTS i want to learn, and tutorials here are a little incomplete only page i like is wiki. i need someone to explain this to me or a resourse for that... 1) car ownership like in most RPG games people got their own cars and people can localize them i got the /lock script so dont worry, and 50p mode shop is not working well =(. 2) jobs jobs like taxi drivers and police and army. etc. PLEASE if you dont want to post resources post help, best way to help someone is making him understand all things. thanks!
6d23 Posted September 16, 2009 Author Posted September 16, 2009 oh and also how to get coordinates, how can i know cordinates of a place?
PLEP Posted September 16, 2009 Posted September 16, 2009 oh and also how to get coordinates, how can i know cordinates of a place? https://wiki.multitheftauto.com/index.ph ... ntPosition To find out my own coordinates in game I usually do run p = getPlayerFromNick("PLEP") run getElementPosition(p)
50p Posted September 16, 2009 Posted September 16, 2009 What I use to get coords is this https://community.multitheftauto.com/index.php?p= ... ils&id=124 6d23, to make RPG resources, you need to start from very basic scripts... like the script to get your coords and save them in a file. Wiki and the basics tutorial is what you need. - https://forum.multitheftauto.com/viewtop ... 91&t=25032 - https://wiki.multitheftauto.com/index.ph ... =Main_Page
6d23 Posted September 16, 2009 Author Posted September 16, 2009 RLY RLY RLY RLY RLY Thnxs it really helped, can someone help me with vehicle ownership and in bank system cause 50p bank is not working only it says bank balance and when i put /deposit $$$ it says you must be in the banker marker but i dont see any blip!! help lease and thanks for coordinates help
6d23 Posted September 16, 2009 Author Posted September 16, 2009 wow 50p ur a legend, but your bank script dont works in part, but i dont see any banker marker! help me please...
50p Posted September 16, 2009 Posted September 16, 2009 The bank is in Las Venturas in the Building Plan or something like that. It's to the East of 4 Dragons Casino (go straight past the Ammunation, head to the Transfender garage and the icon will appear).
6d23 Posted September 16, 2009 Author Posted September 16, 2009 thanks man, but how can i do to make all players in all places see that marker? (if you can with explanation/tutorial) and how to make Own vehicles? Dont give me resources, (only if you want) i want to learn guys. thanks P.D: I Tried making a script and i failed (see the other post saying [HELP] Welcome Message) i readed robhol guide like 3 times (exact number) and in wiki all things i do is bad. maybe im not for this... please if someone knows about please help with the question
50p Posted September 17, 2009 Posted September 17, 2009 You want to know everything already and start making RPG resources. If you have never learnt any programming/scripting language it will be challenging for you to learn. First few weeks will make you go nuts but if you really want to learn you will survive. If you want to create vehicle, you use createVehicle function or tag in map file. I'll give you advice... Use wiki like if it was a fridge, that you look into when you want to eat. Wiki is the site that you must keep opened at all time. You'd find createVehicle function easily with only 2 clicks.
6d23 Posted September 17, 2009 Author Posted September 17, 2009 ty ty ty ty, sorry for the spamming but im really ancious... P.D: i know .bat, .html, .au3 but this is hard, i will really really try this... thanks
6d23 Posted September 17, 2009 Author Posted September 17, 2009 ok guys, i checked it and this was the result --Gui Starts Here --------------------- function guihelp (commandName) GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Window[1] = guiCreateWindow(167,126,554,421,"Grasiel Clan Server -",false) See_Factions = guiCreateButton(0.1047,0.1116,0.3664,0.247,"See Factions",true,GUIEditor_Window[1]) How_To_Join = guiCreateButton(0.0993,0.4181,0.3664,0.2565,"How To Join",true,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(0.5072,0.1188,0.4224,0.2447,"Being A Criminal",true,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(0.0614,0.8361,0.8412,0.1164,"We Recomend To See Being A Criminal and Factions",true,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[1],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[1],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[1],"left",false) --- --- --- --- --- addCommandHandler ("info", guihelp) end but when i type /info it dont appears, in debugscript 3 it dont says nothing, now what is the problem, or im using something incorrect?
Remp Posted September 17, 2009 Posted September 17, 2009 you are adding the command handler inside the function, so the command handler is never created (because the function is never called) just move the command handler outside of the guihelp function
6d23 Posted September 17, 2009 Author Posted September 17, 2009 now when i use debug it (in debugscript 3) Bad Argument @ "addCommandHandler" Line: 1 whats the problem?
Remp Posted September 17, 2009 Posted September 17, 2009 make sure you add the command handler after you define the function (ie., below)
6d23 Posted September 17, 2009 Author Posted September 17, 2009 this is the new code: addCommandHandler ("info", guihelp) --Gui Starts Here --------------------- function guihelp (commandName) GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Window[1] = guiCreateWindow(167,126,554,421,"Grasiel Clan Server -",false) See_Factions = guiCreateButton(0.1047,0.1116,0.3664,0.247,"See Factions",true,GUIEditor_Window[1]) How_To_Join = guiCreateButton(0.0993,0.4181,0.3664,0.2565,"How To Join",true,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(0.5072,0.1188,0.4224,0.2447,"Being A Criminal",true,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(0.0614,0.8361,0.8412,0.1164,"We Recomend To See Being A Criminal and Factions",true,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[1],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[1],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[1],"left",false) --- --- --- --- --- end maybe im doing something bad right?
50p Posted September 18, 2009 Posted September 18, 2009 6d23... make sure you add the command handler after you define the function (ie., below) Also, https://forum.multitheftauto.com/viewtop ... 00#p289183
6d23 Posted September 18, 2009 Author Posted September 18, 2009 So is this one correct? addCommandHandler ("info", guihelp) --Gui Starts Here --------------------- function guihelp (commandName) GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Window[1] = guiCreateWindow(167,126,554,421,"Grasiel Clan Server -",false) See_Factions = guiCreateButton(0.1047,0.1116,0.3664,0.247,"See Factions",true,GUIEditor_Window[1]) How_To_Join = guiCreateButton(0.0993,0.4181,0.3664,0.2565,"How To Join",true,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(0.5072,0.1188,0.4224,0.2447,"Being A Criminal",true,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(0.0614,0.8361,0.8412,0.1164,"We Recomend To See Being A Criminal and Factions",true,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[1],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[1],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[1],"left",false) --- --- --- --- --- end If its incorrect can someone post how will it be correct?
Taalasmaa Posted September 18, 2009 Posted September 18, 2009 New code: GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} function guihelp () if guiGetVisible(GUIEditor_Window[1]) then guiSetVisible(GUIEditor_Window[1],false) showCursor(false) else GUIEditor_Window[1] = guiCreateWindow(167,126,554,421,"Grasiel Clan Server -",false) See_Factions = guiCreateButton(0.1047,0.1116,0.3664,0.247,"See Factions",true,GUIEditor_Window[1]) How_To_Join = guiCreateButton(0.0993,0.4181,0.3664,0.2565,"How To Join",true,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(0.5072,0.1188,0.4224,0.2447,"Being A Criminal",true,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(0.0614,0.8361,0.8412,0.1164,"We Recomend To See Being A Criminal and Factions",true,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[1],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[1],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[1],"left",false) guiSetVisible(GUIEditor_Window[1],true) showCursor(true) end end addCommandHandler("info",guihelp) THERE IS 100% WORKING! AND, please learn scripting! I just help you at this time, if you willnot to start learning some scripts, you will NOT get my help anymore. EDIT: Don't ask now how to open new window when button is clicked!
6d23 Posted September 20, 2009 Author Posted September 20, 2009 Thanks, i have made some programs now, thanks to all who helped me to know this awesome language... P.D: THANKS !!
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