[Tool/Web/Other] SA:MP Object Definer
#1

Hi,
I've made a tool which assigns a CreateObject ID (the ID which is returned) to an integer string. Hmm that's not clear enough. Example:
I have these objects:
pawn Код:
CreateObject(7191, 264.07342529297, 1881.6575927734, -6.2552056312561, 270.25024414063, 0, 0);
CreateObject(7191, 264.08120727539, 1885.5596923828, -6.2552056312561, 270.24719238281, 0, 0);
CreateObject(7191, 264.07913208008, 1886.9434814453, -6.2552056312561, 270.24719238281, 0, 0);
CreateObject(7191, 265.77478027344, 1888.6229248047, -6.2552056312561, 270.2470703125, 0, 269.5);
CreateObject(7191, 269.59817504883, 1888.6110839844, -6.2552056312561, 270.24169921875, 0, 269.49462890625);
And the output is:
pawn Код:
#include <a_samp>

new {obj}[5];

stock SetupObjects()
{
    {obj}[0] = CreateObject(7191, 264.07342529297, 1881.6575927734, -6.2552056312561, 270.25024414063, 0, 0);
    {obj}[1] = CreateObject(7191, 264.08120727539, 1885.5596923828, -6.2552056312561, 270.24719238281, 0, 0);
    {obj}[2] = CreateObject(7191, 264.07913208008, 1886.9434814453, -6.2552056312561, 270.24719238281, 0, 0);
    {obj}[3] = CreateObject(7191, 265.77478027344, 1888.6229248047, -6.2552056312561, 270.2470703125, 0, 269.5);
    {obj}[4] = CreateObject(7191, 269.59817504883, 1888.6110839844, -6.2552056312561, 270.24169921875, 0, 269.49462890625);
    return 1;
}
The '{obj}' is the name of the string, this is user defined (input type="text"). If that one's empty, it'll be 'obj'.

The webtool
The webtool can be found here: http://samp.rpdsamp.nl/ODF/
The download is also avaible (see below), but why would you upload it to your own site if you simply can use this one? :P

Download
Well the download link: http://get.rpdsamp.nl/gta/sa/mp/scri...script/ODF.zip

Regards,
Kevin
Reply
#2

niceeeeeeeeeee!!!!!!!!!!
Reply
#3

Really nice, good job.
Reply
#4

Thank you.
Any suggestions?
Reply
#5

Simple & nice tool

How about adding other elements?

Like:
3dtexts
Pickups
Vehicles
etc...
Reply
#6

omg you're too late xD I need this !!
Reply
#7

Nice!!!
But, Error
Notice: Undefined offset: 7 in *:\WampServer\www\SAMP Object Definer\index.php on line 66
66 - list($modelid, $X, $Y, $Z, $rX, $rY, $rZ, $DrawDistance) = explode(",", $CreateObject);
Reply
#8

Hello,

It's working for me without errors. You can either just use http://samp.rpdsamp.nl/ODF or try turning "display errors" off in the WAMP menu (of that icon in menu start), then PHP->PHP Settings->{turn the "display errors" off if it's turned on}.

- Kevin
Reply
#9

exactly what i was looking for!!!!
THANKS!!!
+rep
Reply
#10

Nice!
Reply
#11

Thank you very much.
Reply
#12

Hey didn't you make the web version a long while ago? When i was having problems with that ferry thingXD.
Very good job anyway:P
Reply
#13

lol i replied already but suggestion: do it for cars too ?
Reply
#14

@justsomeguy: Who what where? This is the web version and it's quite old indeed :P.
@michael@belgium: Nice idea, I'll do it ASAP (once I have time - M*therf*cking much homework... again :S)
Reply
#15

Quote:
Originally Posted by Kwarde
Посмотреть сообщение
@justsomeguy: Who what where? This is the web version and it's quite old indeed :P.
@michael@belgium: Nice idea, I'll do it ASAP (once I have time - M*therf*cking much homework... again :S)
Back when I was still scripting OCRP you know, with the moveobject's and the if(isobjectmoved remember? It is quite a while ago though.
Reply
#16

Quote:

with the moveobject's and the if(isobjectmoved remember? It is quite a while ago though.

I can't remember anything :P - However, I indeed made the web version a long time ago, but this simply is the web version... do you maybe mean that this topic is old? The answer is #YES :P. It was down because I had lost the files, but after moving to our new house (yep, we just moved away) I found my external disc back and found quite alot old files back <3
Reply
#17

nicetool, i dont have to define 50 objects lonely
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)