18.01.2013, 13:30
Prompt please how do I download the .map check points?
When the player hit his car players throwing out ahead
Here's a little nakidal but not working nothing
sorry for my english
When the player hit his car players throwing out ahead
PHP код:
<marker id="marker (corona) (1)" type="corona" color="#03D5FB00" size="10" interior="0" dimension="0" background="" border="" foreground="" framesFaded="0" framesToFade="0" height="15" posX="5572.9794921875" posY="-1944.359375" posZ="99.129997253418" rotX="0" rotY="0" rotZ="0" state="hidden" text="XYZ rotation" width="65" x="0" y="0"></marker>
PHP код:
stock LoadMtaPickup(const mapname[], type = 2, Float:stream_dis = 100.0, &start = 0, &end = 0)
{
#pragma unused stream_dis
new File:map = fopen(mapname, io_read);
if(map)
{
new
temp[20],
Data[512],
model,
dimension,
Float:posX,
Float:posY,
Float:posZ;
start = -1;
end = -1;
while(fread(map, Data))
{
if(strfind(Data, "<marker") != -1)
{
GetMapParams(Data, "posX", temp);
posX = floatstr(temp);
GetMapParams(Data, "posY", temp);
posY = floatstr(temp);
GetMapParams(Data, "posZ", temp);
posZ = floatstr(temp);
GetMapParams(Data, "dimension", temp);
dimension = strval(temp);
GetMapParams(Data, "type", temp);
if(!strcmp(temp, "corona")) model = 1242;
if(start == -1) start = CreateDynamicPickup(model, type, posX, posY, posZ, dimension, -1, -1, stream_dis);
else end = CreateDynamicPickup(model, type, posX, posY, posZ, dimension, -1, -1, stream_dis);
}
}
fclose(map);
}
return 1;
}