1423.473266|-1319.274291|13.554697|1|0|None|Nobody|TESTING
|0
0.000000|0.000000|13.554697|1|0|None|Nobody|TESTING1
|0
0.000000|0.000000|13.554697|1|0|None|Nobody|TESTING2|0
0.000000|0.000000|13.554697|1|0|None|Nobody|TESTING3
|0
0.000000|0.000000|13.554697|1|0|None|Nobody|TESTING4
|0
0.000000|0.000000|13.554697|1|0|None|Nobody|TESTING5
|0
0.000000|0.000000|13.554697|1|0|None|Nobody|TESTING6|0
0.000000|0.000000|13.554697|1|0|None|Nobody|TESTING6
|0
0.000000|0.000000|13.554697|1|0|None|Nobody|TESTING7
|0
CMD:points(playerid, params[])
{
new string[128];
for(new i; i < MAX_POINTS; i++)
{
if (Points[i][Type] >= 0)
{
format(string, sizeof(string), "Name: %s | Owner: %s | Captured By: %s | Hours: %d",
Points[i][Name],Points[i][Owner],Points[i][CapperName],Points[i][Vulnerable]);
SendClientMessageEx(playerid, COLOR_WHITE, string);
}
}
return 1;
}
In your script using code editor (Pawno) press CTRL and F and put LoadPoints
|
LoadPoints()
{
new arrCoords[9][64];
new strFromFile2[256];
new File: file = fopen("points.cfg", io_read);
if (file)
{
new idx;
while (idx < sizeof(Points))
{
fread(file, strFromFile2);
splits(strFromFile2, arrCoords, '|');
Points[idx][Pointx] = floatstr(arrCoords[0]);
Points[idx][Pointy] = floatstr(arrCoords[1]);
Points[idx][Pointz] = floatstr(arrCoords[2]);
Points[idx][Type] = strval(arrCoords[3]);
Points[idx][Vulnerable] = strval(arrCoords[4]);
strmid(Points[idx][Owner], arrCoords[5], 0, strlen(arrCoords[5]), 255);
strmid(Points[idx][CapperName], arrCoords[6], 0, strlen(arrCoords[6]), 255);
strmid(Points[idx][Name], arrCoords[7], 0, strlen(arrCoords[7]), 255);
Points[idx][MatPoint] = strval(arrCoords[8]);
//printf("%s Type:%d Owner:%s",Points[idx][Name],Points[idx][Type],Points[idx][Owner]);
Points[idx][CaptureTimerEx2] = -1;
Points[idx][ClaimerId] = INVALID_PLAYER_ID;
Points[idx][PointPickupID] = CreateDynamicPickup( 1239, 23, Points[idx][Pointx], Points[idx][Pointy], Points[idx][Pointz]);
idx++;
}
fclose(file);
}
return 1;
}
Do /save and you will get the coords, then go to points.cfg... and make your own..
0.000000|0.000000|13.554697|1|0|None|Nobody|TESTIN G7 |0 As I described to you.. X|Y|Z|Captured|hours|Name|Owner|Nameofit|0 IT IS IN SCRIPT |