26.04.2015, 02:58
It isn't very directly related, however I have added a function allowing you to check if an object is a custom SA:MP one or not. If the include can't find the approriate version then 0 is returned for the version func - same as the IsSAMPObject function.
The function is pretty simple:
You can use the following defines for the version func:
If there are any SA:MP objects / ranges I've missed, please let me know.
The function is pretty simple:
pawn Код:
IsSAMPObject(modelid);
GetSAMPObjectVersion(modelid);
pawn Код:
VERSION_3C
VERSION_3C_R5
VERSION_037_RC1
VERSION_037_RC2
VERSION_037_RC3
VERSION_037_RC4