[FilterScript] Weapon shop - Based on textdraws [Unique]
#1

Introduction:
Hello guys, this is a simple weapon shop system based on textdraws but looks nicer than the dialogs, i just looked around i just see people keep doing it on "dialog" style nothing new, so i decided to create some thing new. it took me about 1-2 hours due to textdraws fixing.


Weapons arrangement:
I have just create them by 5 categories which are:
- SMG's ( Uzi, Tech9 )
- Pistols ( Desert eagle, Silence 9mm, 9mm )
- Shotguns ( Swan-off shotgun, Cobat shotgun )
- Rifles ( M4, AK-47 , Sniper Rifle, Country Rifle )
- Extra ( Such Grenades, Teargases, Molotov, knife )


Features:
- Auto config, you can easy edit the price, ammo etc.
- Weapon Information system ( Give you some information about the weapon you'll buy like damage,price,accuracy )
- Viewing weapon image.


NOTE:
The damage weapon information may not be 100% accurate i just wrote them from my mind you can edit them if you know the real damages of each weapons or post them here it would be better!


Config:
pawn Код:
//-------------------------- Configurations (Weapons prices) --------------------//
//1.SMG's.
#define UZI_PRICE           (3000)
#define UZI_AMMO            (150)
#define TEC9_PRICE          (3000)
#define TEC9_AMMO           (150)

//2.Pistols
#define Deagle_PRICE        (1000)
#define Deagle_AMMO         (200)
#define S9mm_PRICE          (1000)
#define S9mm_AMMO           (200)
#define P9mm_PRICE          (1000)
#define P9mm_AMMO           (200)

//3.Shotguns
#define Swanoff_PRICE       (5000)
#define Swanoff_AMMO        (150)
#define Combat_PRICE        (5000)
#define Combat_AMMO         (150)

//4.Rifles
#define M4_PRICE            (2000)
#define M4_AMMO             (300)
#define AK47_PRICE          (2000)
#define AK47_AMMO           (300)
#define Sniper_PRICE        (2000)
#define Sniper_AMMO         (2000)
#define Country_PRICE       (2000)
#define Country_AMMO        (2000)

//5.Extra
#define Grenade_PRICE       (6000)
#define Grenade_AMMO        (20)
#define Molotov_PRICE       (5000)
#define Molotov_AMMO        (20)
#define Knife_PRICE         (500)
#define Knife_AMMO          (1)
#define Teargas_PRICE       (500)
#define Teargas_AMMO        (20)

/////////////////////Textdraws variables//////////////////////
Screens:
The main design


SMGS LIST.


Buying some weapons.


Icludes & Credits:
You just need zeex command processor] "ZCMD" for this filterscript.
Credits goes to ipelomax for his textdraw editor & zeex for command processor!

Suggestions will be added if possible, hope you like it guys!

Donwloads:
Pastebin (not recommended due to bad indentation)
Solidfiles (.pwn only)
Reply
#2

Looks good but did you test various resolutions to make sure it looks good lets try that out

Okay I tried it out, there is a bit of inconsistency on lower resolutions because you didn't round out positions to the nearest pixel.

You need to create/destroy the textdraws when loading the script with players already connected.

Pressing escape should automatically close the textdraw.

There was some issues with the high light bars as well.
Reply
#3

Quote:
Originally Posted by Pottus
Посмотреть сообщение
Looks good but did you test various resolutions to make sure it looks good lets try that out

Okay I tried it out, there is a bit of inconsistency on lower resolutions because you didn't round out positions to the nearest pixel.

You need to create/destroy the textdraws when loading the script with players already connected.

Pressing escape should automatically close the textdraw.

There was some issues with the high light bars as well.
Firstly thank you so much for your time doing this for me, but i tried it on all screen resolution it was the same, just quality getting poor a bit, i might have problems with my GTA? also thanks for pointing the above corrections!

EDIT: That's what i see when i set the lowest resolution "640" - http://imgur.com/ctYT7UB
Reply
#4

Nice work
Reply
#5

i tried this and nothing pops up
Reply
#6

DOPE
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)