SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Thread Tools Display Modes
Old 04/04/2014, 08:57 PM   #1
Little Clucker
Join Date: Mar 2014
Posts: 34
Reputation: 0
Default Shopkey

In a sercer I play in
They have a cmd to use wen u donate to owner and then he gives u the thing u donated for, the cmd is called /shopkey
When the owner gives u the item code,u go server and type /shopkey (code) and then the item goes to u
How can this be done?
KrYpToN98 is offline   Reply With Quote
Old 04/04/2014, 09:03 PM   #2
Big Clucker
Join Date: Jul 2013
Posts: 108
Reputation: 2
Default Re: Shopkey

A way could be with MySQL. The owner, for example, makes a key in a table and the item to give(whether it being a vehicle or a weapon) and when you type in the "name" of the key, it'll grab the data from the database and process it, giving you the item.
For example, the table could be:
ID, Name(being the key), vehicle(Yes or no or being the ID of a vehicle), Weapon(yes or no or being the ID of weapon)

This is personally the way I'd do it.
Donít argue with idiots because they will drag you down to their level and then beat you with experience.
- Greg King.
Binx is offline   Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

All times are GMT. The time now is 03:27 PM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.