[Include] Defined Weapons
#1

I made this because some people have to open the weapon id list and script.

In this file all weapons are defined like : #define Minigun 38

So you can just code with the weapon name..Its easy for people. PRO scripters please don't say that WHAT A NOOB SCRIPT or something like that ... Its helpfull for newbie scripters ...


Alert : All weapon name which has spacebar had been edited with _

http://pastebin.com/45Rd7dcC
Reply
#2

Nice idea, but have you tested it?

Because:
Code:
#define Sawnoff Shotgun 26
#define Combat Shotgun 27
This won't work, because the word 'Combat' will now be replaced with 'Shotgun 27', which will give errors. Maybe replace those gaps with a _ ? For example:
Code:
#define Sawnoff_Shotgun 26
#define Combat_Shotgun 27
Reply
#3

They are already defined in a_samp.inc.

pawn Code:
#define WEAPON_BRASSKNUCKLE             (1)
#define WEAPON_GOLFCLUB                 (2)
#define WEAPON_NITESTICK                (3)
#define WEAPON_KNIFE                    (4)
#define WEAPON_BAT                      (5)
#define WEAPON_SHOVEL                   (6)
#define WEAPON_POOLSTICK                (7)
#define WEAPON_KATANA                   (8)
#define WEAPON_CHAINSAW                 (9)
#define WEAPON_DILDO                    (10)
#define WEAPON_DILDO2                   (11)
#define WEAPON_VIBRATOR                 (12)
#define WEAPON_VIBRATOR2                (13)
#define WEAPON_FLOWER                   (14)
#define WEAPON_CANE                     (15)
#define WEAPON_GRENADE                  (16)
#define WEAPON_TEARGAS                  (17)
#define WEAPON_MOLTOV                   (18)
#define WEAPON_COLT45                   (22)
#define WEAPON_SILENCED                 (23)
#define WEAPON_DEAGLE                   (24)
#define WEAPON_SHOTGUN                  (25)
#define WEAPON_SAWEDOFF                 (26)
#define WEAPON_SHOTGSPA                 (27)
#define WEAPON_UZI                      (28)
#define WEAPON_MP5                      (29)
#define WEAPON_AK47                     (30)
#define WEAPON_M4                       (31)
#define WEAPON_TEC9                     (32)
#define WEAPON_RIFLE                    (33)
#define WEAPON_SNIPER                   (34)
#define WEAPON_ROCKETLAUNCHER           (35)
#define WEAPON_HEATSEEKER               (36)
#define WEAPON_FLAMETHROWER             (37)
#define WEAPON_MINIGUN                  (38)
#define WEAPON_SATCHEL                  (39)
#define WEAPON_BOMB                     (40)
#define WEAPON_SPRAYCAN                 (41)
#define WEAPON_FIREEXTINGUISHER         (42)
#define WEAPON_CAMERA                   (43)
#define WEAPON_PARACHUTE                (46)
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)