07.01.2012, 15:33
(
Последний раз редактировалось T0pAz; 07.01.2012 в 16:34.
)
Introduction
Is Valid is an include which checks if it's a valid interior id, sound id, weather id, color id, pickup type, pickup id, weapon id, explosion, crime, vehicle id.
Features
Installation
How to use
Paste the code on top of your script or download it as an include file and include it.
Change Log
Download
Credits
Is Valid is an include which checks if it's a valid interior id, sound id, weather id, color id, pickup type, pickup id, weapon id, explosion, crime, vehicle id.
Features
- Uses Macros
- Portable
Installation
- Not needed
How to use
Paste the code on top of your script or download it as an include file and include it.
Change Log
Код:
v1.0 ++ Initial Release
Download
pawn Код:
#define IsValidInteriorID(%0) \
((%0) != 13 && (%0) < 19)
#define IsValidSoundID(%0) \ //Thanks to ******
(999 < (%0) < 45399)
#define IsValidWeatherID(%0) \
(%0 < 46)
#define IsValidColorID(%0) \
(%0 < 127)
#define IsValidPickupType(%0) \
(%0 < 24)
#define IsValidPickupModel(%0) \
((%0 > 1239) && (%0 < 1280))
#define IsValidWeaponID(%0) \
(%0 < 47)
#define IsValidExplosion(%0) \
(%0 < 14)
#define IsValidCrime(%0) \
((%0 > 2) && (%0 < 23))
#define IsValidVehicleModel(%0) \
((%0 > 399) && (%0 < 612))
Credits
- Y-Less: For this tutorial.