SA-MP Forums Archive
[Include] Model to weapon-id convert function - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] Model to weapon-id convert function (/showthread.php?tid=418003)



Model to weapon-id convert function - Plovix - 23.02.2013

Hi.I decided to create new and simple function...It returns weapon-id of specific weapon model id(will return 0 if weapon doesn't exist).

Download:

Pastebin


Sorry for my bad english



Re: Model to weapon-id convert function - SupremeCommander - 23.02.2013

It's more like a code snippet than an include.


Re: Model to weapon-id convert function - MP2 - 23.02.2013

Quote:
Originally Posted by SupremeCommander
Посмотреть сообщение
It's more like a code snippet than an include.
An include: a file that can be included.

A snippet: a small piece of code.

An include can be a snippet. A snippet can be an include. This is something people may want to use in various scripts, so it makes total sense for it to be released as an include.

Good job.


Re: Model to weapon-id convert function - wups - 23.02.2013

I guess this would me more useful the other way around.