IgotNothingI Posted October 1, 2010 Share Posted October 1, 2010 hello all i'm new in mtasa i play 3 years sa-mp now i want script in mta-sa but i don't know how to script a vehicle seller i give all players a vehicle on account but they can sell it for $$$$ for weapons or something can anny make it for me? greets, marten Link to comment
Castillo Posted October 1, 2010 Share Posted October 1, 2010 We don't make request, you got to learn by yourself, also this is in wrong section. btw this is your salvation: https://wiki.multitheftauto.com/wiki/Scripting_Introduction Good luck. Link to comment
dzek (varez) Posted October 1, 2010 Share Posted October 1, 2010 Shortened: I'm scripting for 3 years, now script something for me.. Solid gave you the good link. Also check wiki main page - there is Scripting box containing all you need. If you need to know something about general lua language: http://www.lua.org/manual/5.0/ Moving to Scripting section. Link to comment
IgotNothingI Posted October 1, 2010 Author Share Posted October 1, 2010 i think u don't understand what i mean varez:P i script on sa-mp but i know now a little bit of lua but sell a car how the fuck:P Link to comment
dzek (varez) Posted October 1, 2010 Share Posted October 1, 2010 this is a request right? if not - what is it if you only said what you want and dont have any code? i dont even fully understand what this script should do - sell car - you mean car shop, or "sell" car you drive in car shop, or.. Link to comment
IgotNothingI Posted October 1, 2010 Author Share Posted October 1, 2010 um i want when he drive in the shop marker he can sell car:) i think whit getPlayerAccount Link to comment
Castillo Posted October 1, 2010 Share Posted October 1, 2010 um i want when he drive in the shop marker he can sell car:) i think whit getPlayerAccount wtf.. what do you mean with getPlayerAccount??, first you got to store it somewhere can be setAccountData then when enter maybe do getAccountData? etc Link to comment
dzek (varez) Posted October 1, 2010 Share Posted October 1, 2010 are you sure you was scripting for 3 years or it was just a dream? after coding in ANY language you shouldn't ask so weird, uncomplete questions - create a gui with some confirm button/whatever and hide it / GUI functions - create a marker / createMarker - attach an onMarkerHit event to it / addEventHandler - on handler function show you gui / guiSetVisible but you will need showCursor too - attach an onClientGUIClick to some confirm button / addEventHandler - create custom event on serverside / addEvent and addEventHandler - trigger server event with your car as argument / triggerServerEvent - hide gui / guiSetVisible but you will need showCursor too - remove car and give player money on serverside / destroyElement and givePlayerMoney Link to comment
IgotNothingI Posted October 1, 2010 Author Share Posted October 1, 2010 a ok thanks i whill try it Link to comment
IgotNothingI Posted October 1, 2010 Author Share Posted October 1, 2010 hmm i do when he hit marker show a gui whit 2 button sell and cancel if i do sell for the first car then he sell but he don't set the vehicle button emty Link to comment
dzek (varez) Posted October 1, 2010 Share Posted October 1, 2010 viewtopic.php?f=91&t=27027 Link to comment
IgotNothingI Posted October 1, 2010 Author Share Posted October 1, 2010 i don't send the code but i can tell u what i do step 1 create gui whit buttons step 2 when he hit shopmarker opengui (onMakerHit) step 3 onGuiClick sellcar blabla step 4 yes/no if yes then step 5 if he click then give money and setAccountdata vehicle emty step 5 works 90% he only dont set vehicle emty Link to comment
dzek (varez) Posted October 1, 2010 Share Posted October 1, 2010 wut? if you won't send the code - we can't help you. we are not clairvoyants or something. most of us can re-write the code based on your idea within 5 minutes. no need to be worry because of somebody stealing your code or something. Link to comment
SnoopCat Posted October 2, 2010 Share Posted October 2, 2010 ye u must do what varez says cuz he is an experimented player and they can help us thats why they are here just to help other peoples whit their scripts any 1 here cares about your script to stealth them the idea its just HELP. Link to comment
MiniGoveya Posted October 2, 2010 Share Posted October 2, 2010 i don't send the code but i can tell u what i do Omfg .__. -.- Man .. if you dont send the code/script peoples like varez,SolidSnake,50p or anyone can't help YOU!. Why? Because, they don't have the script what you made, and, they can't see what you did wrong... The peoples aren't here to steal your script... the peoples are here for help You.. with your questions, script's, etc! But... if you won't give that... Is your problem I recommend to post that here to fix it.. but... that's your... Do whatever you want... 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