Object model id - 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: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Object model id (
/showthread.php?tid=389515)
Object model id -
Michael98 - 02.11.2012
Is there any way to get the model of an object?
Re: Object model id -
[D]ry[D]esert - 02.11.2012
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
Re: Object model id -
Michael98 - 02.11.2012
I mean for example when a player types "/myobjectmodel" the model of the object will display on his screen.
Re: Object model id -
Michael98 - 02.11.2012
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..
Re: Object model id -
Michael98 - 02.11.2012
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 :/