SA-MP Forums Archive
[RP] Turf/Point system - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [RP] Turf/Point system (/showthread.php?tid=504877)



[RP] Turf/Point system - ChristianIvann09 - 06.04.2014

I have this turf system. But its too much buggy. When you type /points alll the point name is 1 i dont know why.

Код:
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;
}


I have this points.cfg in scriptfiles



Код:
1423.473266|-1319.274291|13.554697|1|4|None|Angel Mae|1
|0
0.000000|0.000000|13.554697|1|0|None|Angel Mae|1
|0
0.000000|0.000000|13.554697|1|0|None|Angel Mae|1
|0
0.000000|0.000000|13.554697|1|0|None|Angel Mae|1
|0
0.000000|0.000000|13.554697|1|0|None|Angel Mae|1
|0
0.000000|0.000000|13.554697|1|0|None|Angel Mae|1
|0
0.000000|0.000000|13.554697|1|0|None|Angel Mae|1
|0
0.000000|0.000000|13.554697|1|0|None|Angel Mae|1
|0
0.000000|0.000000|13.554697|1|0|None|Angel Mae|1
|0
I Hope you guys can help me about this


Re: [RP] Turf/Point system - Flake. - 06.04.2014

Because it's reading straight from the config file where they're all owned by the same person and all named 1, you have to rename them in the config file I'd guess.

Код:
0.000000|0.000000|13.554697|1|0|None|Flake|TheGangName