11.12.2011, 12:34
Quote:
Open the .map file and find a way to retrieve the coordinates you need. Sscanf should help you with that.
|
pawn Код:
stock SpawnPlayerInMap(playerid)
{
new mapName[32],path[64], line[256];
format(path, sizeof(path), "/maps/%s.map", mapname);
if(!fexist(path)){
format(string, sizeof(string), "Unable to locate map %s!", mapname);
print(string);
while(fread(map,line))
{
}
//<vehicle id="vehicle (Rancher) (1)" paintjob="0" model="489" plate="NRHLSGL" interior="0" dimension="0" name="" posX="-85.281013" posY="1339.174316" posZ="13.297609" rotX="" rotY="" rotZ="" />
}