05.05.2013, 09:20
Hello,
first sorry for my bad english
Iґm from Germany and a big San Andreas Multiplayer fan.
I have made a Site for Textures and a Include so
the Functions:
You can find the IDґs here: http://textur.apl-rl.de/
The site is in German, but there only some mini Functions for that you
need Germany Language, the Include can be used without German speek.
Include:
So that it was by questions ask here, again sorry for my bad english
i had write it without translate/mediation programms.
first sorry for my bad english
Iґm from Germany and a big San Andreas Multiplayer fan.
I have made a Site for Textures and a Include so
the Functions:
PHP код:
SetTextur(ObjektID,Index,ID);
The site is in German, but there only some mini Functions for that you
need Germany Language, the Include can be used without German speek.
Include:
PHP код:
#include <a_samp>
#include <sscanf2>
#include <a_http>
new oIndex;
stock SetTextur(Objekt,Index,ID) {
new string[64];
format(string,64,"textur.apl-rl.de/include.php?id=%d",ID);
HTTP(Objekt, HTTP_GET, string, "", "LoadTextur");
oIndex = Index;
return 1;
}
forward LoadTextur(index, response_code, data[]);
public LoadTextur(index, response_code, data[]) {
if(response_code == 200) {
new Objekt, Color;
new TXD[20], Textur[20];
sscanf(data,"p<,>is[20]s[20]i",Objekt,TXD,Textur,Color);
SetObjectMaterial(index,oIndex,Objekt,TXD,Textur,Color);
printf("%d %d %d %s %s %d",index,oIndex,Objekt,TXD,Textur,Color);
}
else {
print("** Arendium Textur Addon: Error please send a Private Message to Arendium for help!);
}
return 1;
}
i had write it without translate/mediation programms.