SA-MP Forums Archive
How could I make a shop system? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How could I make a shop system? (/showthread.php?tid=249039)



How could I make a shop system? - davelord - 16.04.2011

For example,
Quote:

a "info" token comes at the spot you want it to be. You walk inside it. It would say:
[vehicle dealershop]
[OWNER: state]
[/v buy]

When typed /v buy, a list of the cars ingame will appear. For example: [carname] [carID] [price]
under the list will be: Usage: /v buy carID ID

when you want to buy something, it will check the money and delete the money of the player
then a file in scriptfiles will be: VEHICLE SYSTEM and in there USERS it will be:
name:
vehicle1:
vehicle2:
vehicle3:
vehicle4:
vehicle5:

when the player buyed the vehicle, he needs to type /v list
it will show:

[car one]
[car two]
[etc]

when he wants to spawn: /v get [id from /v list]
despawn: /v park ( he needs to be inside it)

I WANT TO CREATE SOMETHING LIKE THAT


Re: How could I make a shop system? - davelord - 21.04.2011

BUMP.


Re: How could I make a shop system? - alpha500delta - 21.04.2011

You want to create something with that you say... why do you post it here then, you ain't asking something -_-

Anyway, first you create a pickup, now when a player steps into it you make a gametext appear. The commands can be made with zcmd and sscanf, you can use SendClientMessage.

Might be a bit of a weird tutorial, but the wiki will always help. Don't have time to make an example now.


Re: How could I make a shop system? - davelord - 21.04.2011

You helped me already, thanks.