[POMOC]Object id

Započeo Limdzaâ„¢, Oktobar 07, 2013, 19:29:25 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Ako je u MTA 0.3e objekta ID 9593 kako bi bio u samp id? Valjda me shvatate :D

================================================
Radovi:
[FILTERSCRIPT] Jetpack
[FILTERSCRIPT] Glasanje
[MAP] NG Hospital
[MAP] NG Ostrvo

================================================
NouZI Gaming Loading: 30% BaySide
================================================
POTREBAN MAPPER ZA MAPANJE ENTERIJERA
================================================


Kada convert i ubacim u gm ono mi neku zgradu da , posto je to ID od jednog 0.3e objekta zida tj

================================================
Radovi:
[FILTERSCRIPT] Jetpack
[FILTERSCRIPT] Glasanje
[MAP] NG Hospital
[MAP] NG Ostrvo

================================================
NouZI Gaming Loading: 30% BaySide
================================================
POTREBAN MAPPER ZA MAPANJE ENTERIJERA
================================================

 ??? ? :D

================================================
Radovi:
[FILTERSCRIPT] Jetpack
[FILTERSCRIPT] Glasanje
[MAP] NG Hospital
[MAP] NG Ostrvo

================================================
NouZI Gaming Loading: 30% BaySide
================================================
POTREBAN MAPPER ZA MAPANJE ENTERIJERA
================================================

Prosto je vise od 10 dana nisam dobio odg ? help   :'( :D

================================================
Radovi:
[FILTERSCRIPT] Jetpack
[FILTERSCRIPT] Glasanje
[MAP] NG Hospital
[MAP] NG Ostrvo

================================================
NouZI Gaming Loading: 30% BaySide
================================================
POTREBAN MAPPER ZA MAPANJE ENTERIJERA
================================================


Neki drugi nacin?

================================================
Radovi:
[FILTERSCRIPT] Jetpack
[FILTERSCRIPT] Glasanje
[MAP] NG Hospital
[MAP] NG Ostrvo

================================================
NouZI Gaming Loading: 30% BaySide
================================================
POTREBAN MAPPER ZA MAPANJE ENTERIJERA
================================================

Koji ti converter koristis ja convertam samp 0.3e objekte sa "Converte FFS" ne znam u cemu je tu problem meni sve hocu sta god da dodam.Iz MTA i Map Editora (u map editoru ima vise 0.3e objekata)...
    ~ Member since: 09.13.2013. - 15:30 ~

Nisam te bas shvatio ti convertas 0.3e objekte na convertFFS sajtu?

================================================
Radovi:
[FILTERSCRIPT] Jetpack
[FILTERSCRIPT] Glasanje
[MAP] NG Hospital
[MAP] NG Ostrvo

================================================
NouZI Gaming Loading: 30% BaySide
================================================
POTREBAN MAPPER ZA MAPANJE ENTERIJERA
================================================

Ubaci fs EMC.
Evo ti kodovi...
#define FILTERSCRIPT

#include <a_samp>
#include <sscanf2>

public OnFilterScriptInit()
{
print("\n-------------------------------------------------");
print(" Export 0.3e map converter by Danijel96.pwn");
print("-------------------------------------------------\n");
if(!fexist("source.map")) return print("GRESKA: file source.map nije pronadjen.");
new File:source = fopen("source.map",io_read);
new File:output = fopen("output.txt",io_write);
new string[384],tmp[384];
new objid,Float:px,Float:py,Float:pz,Float:rx,Float:ry,Float:rz;
new paintjob,i = 0,k = 0,j = 1;
new modelstr[32],pjstr[32],npstr[2][32],intstr[32],pxstr[32],pystr[32],pzstr[32],rxstr[32],rystr[32],rzstr[32];
while(fread(source,string,sizeof(string)))
{
if(!sscanf(string,"'<object's[384]",tmp))
{
if(!sscanf(string,"'doublesided=\"false\"'s[32]{s[32]s[32]}s[32]s[32]s[32]s[32]s[32]s[32] ",modelstr,pxstr,pystr,pzstr,rxstr,rystr,rzstr) && !sscanf(modelstr,"p<\">{s[32]}d",objid) && !sscanf(pxstr,"p<\">{s[32]}f",px) && !sscanf(pystr,"p<\">{s[32]}f",py) && !sscanf(pzstr,"p<\">{s[32]}f",pz) && !sscanf(rxstr,"p<\">{s[32]}f",rx) && !sscanf(rystr,"p<\">{s[32]}f",ry) && !sscanf(rzstr,"p<\">{s[32]}f",rz))
{
switch(objid)
{
    case 18466: objid +=881;
case 1855..1859: objid +=17493;
case 18467..18469: objid +=886;
case 9569..9619: objid +=9787;
case 9700: objid +=9707;
case 9621..9630: objid +=9787;
case 1847..1849: objid +=17571;
case 1843..1846: objid +=17578;
case 1850: objid +=17575;
case 18630: objid +=796;
case 18629: objid +=798;
case 18628: objid +=800;
case 18627: objid +=802;
case 18626: objid +=804;
case 18625: objid +=806;
case 18624: objid +=808;
case 18623: objid +=810;
case 18622: objid +=812;
case 18621: objid +=814;
case 18620: objid +=816;
case 18619: objid +=818;
case 18618: objid +=820;
case 18617: objid +=822;
case 18616: objid +=824;
case 18615: objid +=826;
case 18614: objid +=828;
case 18613: objid +=830;
case 18612: objid +=832;
case 18611: objid +=834;
case 18610: objid +=836;
case 18465: objid +=982;
case 18464: objid +=984;
case 18463: objid +=986;
case 18462: objid +=988;
case 18461: objid +=990;
case 18460: objid +=992;
case 18459: objid +=994;
case 18458: objid +=996;
case 18457: objid +=998;
case 18456: objid +=1000;
case 18455: objid +=1002;
case 18454: objid +=1004;
case 18453: objid +=1006;
case 18447: objid +=1013;
case 3916: objid +=15545;
case 3915: objid +=15547;
case 3914: objid +=15549;
case 3911: objid +=15553;
case 3910: objid +=15555;
case 1853: objid +=17613;
case 2228: objid +=17240;
case 1854: objid +=17613;
case 1828: objid +=17642;
case 1842: objid +=17628;
case 3905: objid +=15576;
}
format(string,sizeof(string),"CreateObject(%d, %f, %f, %f, %f, %f, %f, 300);\r\n",objid,px,py,pz,rx,ry,rz);
fwrite(output,string);
k++;
}
else printf("GRESKA: Nepodrzan format objekta u liniji %d.",j);
}
else if(!sscanf(string,"'<vehicle's[384]",tmp))
{
if(!sscanf(string,"{s[32]s[32]s[32]s[32]}s[32]s[32]s[32]s[32]s[32]{s[32]}s[32]s[32]s[32]{s[32]s[32]}s[32] ",pjstr,modelstr,npstr[0],npstr[1],intstr,pxstr,pystr,pzstr,rzstr) && !sscanf(pjstr,"p<\">{s[32]}d",paintjob) && !sscanf(modelstr,"p<\">{s[32]}d",objid))
{
if(strcmp(npstr[1],"interior",true,8))
{
sscanf(npstr[0],"p<\">{s[32]}s[32]",npstr[0]);
sscanf(npstr[1],"p<\">s[32] ",npstr[1]);
strcat(npstr[0],npstr[1]);
}
else sscanf(npstr[0],"p<\">{s[32]}s[32] ",npstr[0]);
sscanf(pxstr,"p<\">{s[32]}f",px);
sscanf(pystr,"p<\">{s[32]}f",py);
sscanf(pzstr,"p<\">{s[32]}f",pz);
sscanf(rzstr,"p<\">{s[32]}f",rz);
format(string,sizeof(string),"vehicle%d = AddStaticVehicle(%d, %f, %f, %f, %f, %d, %d);\r\n",i,objid,px,py,pz,rz,random(128),random(128));
fwrite(output,string);
format(string,sizeof(string),"ChangeVehiclePaintjob(vehicle%d, %d);\r\n",i,paintjob);
fwrite(output,string);
format(string,sizeof(string),"SetVehicleNumberPlate(vehicle%d, \"%s\");\r\n",i,npstr[0]);
fwrite(output,string);
i++;
}
else printf("GRESKA: Nepodrzan format objekta u liniji %d.",j);
}
j++;
}
if(i)
{
fwrite(output,"\r\n//Dodajte na vrhu skripte:\r\n");
for(j = 0;j < i;j++)
{
format(string,sizeof(string),"new vehicle %d;\r\n",j);
fwrite(output,string);
}
}
fclose(source);
fclose(output);
printf("Konvertovano %d Objekta.",k);
printf("Konvertovano %d Vozila.",i);
return 1;
}

Posle convert 0.3e objekte i ubaci ih bice na serveru.
    ~ Member since: 09.13.2013. - 15:30 ~

Citat: [HG]Limix poslato Oktobar 07, 2013, 19:29:25 POSLE PODNE
Ako je u MTA 0.3e objekta ID 9593 kako bi bio u samp id? Valjda me shvatate :D
ID tog objekta u SAMPu je 19380...
I de mi samo reci odakle si skinuo 0.3e objekte...Posto ti u vecin 0.3e paketa dodje i lista MTA to SAMP ids. ako to nemas reci da ti posaljem...
Respect:мσмαк. ^ [5]. , -[ThÑ"]¢αƨƨσ|^^ ,
Maki187 , [BP] HeLoX ba! ^^ , Korda , Accardo , phaenomeN , B1b1