SA:MP Object Definer -
Kwarde - 12.07.2011
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
Re: SA:MP Object Definer -
tbedy - 12.07.2011
niceeeeeeeeeee!!!!!!!!!!
Re: SA:MP Object Definer -
IstuntmanI - 12.07.2011
Really nice, good job.
Re: SA:MP Object Definer -
Kwarde - 12.07.2011
Thank you.
Any suggestions?
Re: SA:MP Object Definer -
Patrik356b - 12.07.2011
Simple & nice tool
How about adding other elements?
Like:
3dtexts
Pickups
Vehicles
etc...
Re: SA:MP Object Definer -
Michael@Belgium - 12.07.2011
omg you're too late xD I need this !!
Re: SA:MP Object Definer -
ChickenInDark - 28.11.2011
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);
Re: SA:MP Object Definer -
Kwarde - 28.11.2011
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
Re: SA:MP Object Definer -
|_ⒾⓇⓄN_ⒹⓄG_| - 28.11.2011
exactly what i was looking for!!!!
THANKS!!!
+rep
Re: SA:MP Object Definer -
GangsTa_ - 28.11.2011
Nice!
Re: SA:MP Object Definer -
Kwarde - 28.11.2011
Thank you very much.
Re: SA:MP Object Definer -
justsomeguy - 28.11.2011
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
Re: SA:MP Object Definer -
Michael@Belgium - 28.11.2011
lol i replied already but suggestion: do it for cars too ?
Re: SA:MP Object Definer -
Kwarde - 28.11.2011
@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)
Re: SA:MP Object Definer -
justsomeguy - 28.11.2011
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.
Re: SA:MP Object Definer -
Kwarde - 28.11.2011
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
AW: SA:MP Object Definer -
C0dy09 - 28.11.2011
nicetool, i dont have to define 50 objects lonely