Adding objects - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Adding objects (
/showthread.php?tid=102861)
Adding objects -
Angelo94 - 17.10.2009
How do i add objects in my server? like buildings, trees...
Re: Adding objects -
sant - 17.10.2009
You need an object editor
Re: Adding objects -
Correlli - 17.10.2009
With these two functions:
https://sampwiki.blast.hk/wiki/CreateObject - this will create object for everyone.
https://sampwiki.blast.hk/wiki/CreatePlayerObject - this will create object only for the playerid you specify.
Check this list for available object-IDs in SA-MP:
https://sampwiki.blast.hk/wiki/Objects
Re: Adding objects -
Angelo94 - 17.10.2009
should i write it (example objectid = CreateObject(8130,-179.0698,29.8365,3.1172, 0, 0, 96 ) ) under OnGameModeInIt?
Re: Adding objects -
Guedes747 - 17.10.2009
Quote:
Originally Posted by Angelo94
should i write it (example objectid = CreateObject(8130,-179.0698,29.8365,3.1172, 0, 0, 96 ) ) under OnGameModeInIt?
|
1- Use a object editor ingame or MTA one....
2- Convert your .map file
3- Copy and past the objects to your script.
Re: Adding objects -
Angelo94 - 17.10.2009
but Don Correlli doesn't say nothing about map editors, so i suppose i don't necessarily need it
Re: Adding objects -
Sergei - 17.10.2009
Quote:
Originally Posted by Angelo94
but Don Correlli doesn't say nothing about map editors, so i suppose i don't necessarily need it
|
If you can get all the coordinates of places where you want your objects from your mind then you really don't need object editor.
Re: Adding objects -
Correlli - 17.10.2009
Quote:
Originally Posted by Angelo94
but Don Correlli doesn't say nothing about map editors, so i suppose i don't necessarily need it
|
I just gave you the object-functions and object-ID-list. It's advisable for you to use a Map Editor.
Re: Adding objects -
Angelo94 - 18.10.2009
ok, but if i don't want to use a map editor, where should i write? can you give me an example of all the things i have to write to display an object?