[Include] GetObjectModel
#1


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
Reply
#2

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.
Reply
#3

Quote:
Originally Posted by Kreatyve
View Post
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.
Reply
#4

Great job
Reply
#5

i would say this is more like a function anyways nice idea and work
Reply
#6

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?
Reply
#7

Good job.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)