Jump to content

help or whatever


Recommended Posts

Posted

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

Posted

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..

Posted
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

Posted

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 o.O

- 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

Posted

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

Posted

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.

Posted

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.

Posted
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 :S

I recommend to post that here to fix it.. but... that's your... Do whatever you want...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...