Object model id
#1

Is there any way to get the model of an object?
Reply
#2

Maybe this will help
https://sampforum.blast.hk/showthread.php?tid=282801
you have to select object in the map and it will show object info
Reply
#3

I mean for example when a player types "/myobjectmodel" the model of the object will display on his screen.
Reply
#4

Quote:
Originally Posted by ******
Посмотреть сообщение
"The" object - WHAT object? The one they're looking at? That's doable but also VERY hard (you would need a copy of the entire map on the server). If something else then you need to be more specific.
Ok, i will be more specific.

I am trying to make an object editor.And i have made this command: "/addobject <Id>".-->Makes a player object.
Then i made this command: "/cpoto" --> it will convert all of player objects(Made with /addobject) to dynamic objects.
This is what i used to do this:
pawn Код:
for(new i; i<MAX_OBJECTS; i++)
{
if(IsValidPlayerObject(playerid,i))
{
new Float:x,Float:y,Float:z;
GetDynamicObjectPos(i,x,y,z);
CreateDynamicObject(model,x,y,z,0,0,0);
//How can i define the object model here???
}
}
Please help me with this..
Reply
#5

Quote:
Originally Posted by ******
Посмотреть сообщение
You will need to store it in an array somewhere.
rmmmm..
I would be grateful if you could tell me how to do this :/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)