12.07.2011, 15:11
(
Последний раз редактировалось Kwarde; 28.11.2011 в 16:19.
)
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:
And the output is:
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
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);
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 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