[Include] GetObjectModel - 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] GetObjectModel (
/showthread.php?tid=445672)
GetObjectModel -
magnetec - 22.06.2013
Hi everyone.
I saw that there is GetObjectModel ta sa-mp and one for myself kodladım function. Share to avail yourself.
How to use it?
Code:
new obje = CreateObject(1097,0,0,0,0,0,0);
printf("Model = %d",GetObjectModel(obje));//Model = 1097
If PlayerObject;
Code:
new obje = CreatePlayerObject(playerid,18809,0,0,0,0,0,0);
printf("Model = %d",GetPlayerObjectModel(playerid,obje));//Model = 18809
May be some spelling mistakes my English is not good.
Thanks for reading!
Download
Pastebin
Re: GetObjectModel -
Kreatyve - 22.06.2013
Glad you have the idea of how to utilize the hook method, but this is way too simple.
You should come up with a whole library of functions.

Just a suggestion.
Good job.
Re: GetObjectModel -
magnetec - 22.06.2013
Quote:
Originally Posted by Kreatyve
Glad you have the idea of how to utilize the hook method, but this is way too simple.
You should come up with a whole library of functions.  Just a suggestion.
Good job.
|
Thanks.
Re: GetObjectModel -
kjek98 - 22.06.2013
Great job
Re: GetObjectModel -
Niko_boy - 23.06.2013
i would say this is more like a function

anyways nice idea and work
Re: GetObjectModel -
Lordzy - 23.06.2013
Good, can be useful in some cases. But I guess you must also include this file in every script which uses the object functions. Shouldn't it?
Re: GetObjectModel -
xser12 - 26.06.2013
Good job.