Objects
#1

I know is possible save objects as txt or inc file.But how?
Im using Incognito streamer plugin.
Reply
#2

I think that is something like this:

pawn Код:
new SomeOject;
new Float:SOx;
new Float:SOy;
new Float:SOz;
new Float:SOrx;
new Float:SOry;
new Float:SOrz;

//Function Below is 0.3a CreateObject, just a example ;D
SomeOject = CreateObject(2587, 2001.195679, 1547.113892, 14.283400, 0.0, 0.0, 96.0);

GetObjectPos(SomeOject, SOx, SOy, SOz);
GetObjectRot(SomeOject, SOrx, SOry, SOrz);

new File:ObjectFile;
ObjectFile = fopen("object.txt", io_append);
new ObjectString[256];
format(ObjectString, sizeof(ObjectString), "%d|%f|%f|%f|%f|%f|%f|",SomeOject,SOx,SOy,SOz,SOrx,SOry,SOrz);
fwrite(ObjectFile, ObjectString);
fclose(ObjectFile);

I hope i have helped
Reply
#3

I dont think this will work with incognitos streamer tnx for help.

But anyone get other ideas?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)