Need help... [IMPORTANT]
#1

Hello,I need points.cfg please help me with that when I /points IG it says no NAME:124124521 for it!!
Reply
#2

Erm... what?
Reply
#3

Quote:
Originally Posted by funky1234
Посмотреть сообщение
Erm... what?
I need points.cfg can any one give it to me?
Reply
#4

Quote:
Originally Posted by Leo_Johnson
Посмотреть сообщение
I need points.cfg can any one give it to me?
And what points.cfg is.
Reply
#5

What is points.cfg?
Reply
#6

Its for /points so GANGS/FAMILIES can /capture I got the CMD but I need the .cfg so it can work
Reply
#7

Please, explain more if you don't mind.
Moreover, what the /points and /capture commands do.
And what exactly wanna save on the points.cfg
Reply
#8

Код:
if(strcmp(cmd, "/points", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
	        new number = 0;
	        SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
	        for(new i = 0; i < sizeof(PointInfo); i++)
	        {
	            number ++;
	            format(string, sizeof(string), "Name: %s | Owner: %s | Captured by: %s | Hours: %d",PointInfo[PointName],PointInfo[i][PointOwner],PointInfo[i][PointCapturer],PointInfo[i][PointTime]);
	            SendClientMessage(playerid, COLOR_GRAD6, string);
	        }
	        SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
			return 1;
	    }
	    return 1;
	}
	if(strcmp(cmd, "/capture", true) == 0 || strcmp(cmd, "/claim", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
	        if(PlayerInfo[playerid][pFMember] == 255)
	        {
	            SendClientMessage(playerid, COLOR_GREY, "   You are not a member of a Family !");
	            return 1;
	        }
	        if(PlayerInfo[playerid][pRank] < 5)
	        {
	            SendClientMessage(playerid, COLOR_GREY, "   You must be at least rank 5 to capture !");
	            return 1;
	        }
	        if(IsPlayerInAnyVehicle(playerid))
			{
			    SendClientMessage(playerid, COLOR_GREY, "   You can't capture while in a vehicle !");
				return 1;
			}
			if(CapturingTimer[playerid]) return SendClientMessage(playerid,COLOR_GREY,"  You must wait 10 seconds before attempting to capture again !");
	        if(IsPlayerInRangeOfPoint(playerid,1.0,2629.4319,-2107.8040,16.9531)) //fossil fuel
	        {
	            if(PointInfo[0][PointTaken] != 255) { SendClientMessage(playerid, COLOR_GREY, "   That isn't available to capture yet !"); return 1; }
	            GetPlayerName(playerid, sendername, sizeof(sendername));
	            GetPlayerPos(playerid, CapturePosition[playerid][pX], CapturePosition[playerid][pY], CapturePosition[playerid][pZ]);
	            format(string, sizeof(string), "%s is attempting to capture the Fossil Fuel !", sendername,PointInfo[0][PointName]);
				ProxDetector(50.0, playerid, string, COLOR_RED,COLOR_RED,COLOR_RED,COLOR_RED,COLOR_RED);
				PointCapturable = 0;
                CapturingTimer[playerid] = true;
				SetTimerEx("CapturingPoint",10*1000,0,"i",playerid);
	        }
	        else if(IsPlayerInRangeOfPoint(playerid,1.0,1423.6151,-1320.5437,13.5547)) //materials pickup 1
			{
			    if(PointInfo[1][PointTaken] != 255) { SendClientMessage(playerid, COLOR_GREY, "   That isn't available to capture yet !"); return 1; }
            	GetPlayerName(playerid, sendername, sizeof(sendername));
				GetPlayerPos(playerid, CapturePosition[playerid][pX], CapturePosition[playerid][pY], CapturePosition[playerid][pZ]);
	            format(string, sizeof(string), "%s is attempting to capture the Material Pickup 1 !", sendername,PointInfo[1][PointName]);
				ProxDetector(50.0, playerid, string, COLOR_RED,COLOR_RED,COLOR_RED,COLOR_RED,COLOR_RED);
				PointCapturable = 1;
                CapturingTimer[playerid] = true;
				SetTimerEx("CapturingPoint",10*1000,0,"i",playerid);
			}
			else if(IsPlayerInRangeOfPoint(playerid,1.0,2205.9199,1582.2222,999.9766)) //drug factory
			{
			    if(PointInfo[2][PointTaken] != 255) { SendClientMessage(playerid, COLOR_GREY, "   That isn't available to capture yet !"); return 1; }
            	GetPlayerName(playerid, sendername, sizeof(sendername));
				GetPlayerPos(playerid, CapturePosition[playerid][pX], CapturePosition[playerid][pY], CapturePosition[playerid][pZ]);
	            format(string, sizeof(string), "%s is attempting to capture the Drug Factory !", sendername,PointInfo[2][PointName]);
				ProxDetector(50.0, playerid, string, COLOR_RED,COLOR_RED,COLOR_RED,COLOR_RED,COLOR_RED);
				PointCapturable = 2;
                CapturingTimer[playerid] = true;
				SetTimerEx("CapturingPoint",10*1000,0,"i",playerid);
			}
			else if(IsPlayerInRangeOfPoint(playerid,1.0,2172.1880,-2263.9683,13.3363)) //materials factory 1
			{
			    if(PointInfo[3][PointTaken] != 255) { SendClientMessage(playerid, COLOR_GREY, "   That isn't available to capture yet !"); return 1; }
            	GetPlayerName(playerid, sendername, sizeof(sendername));
				GetPlayerPos(playerid, CapturePosition[playerid][pX], CapturePosition[playerid][pY], CapturePosition[playerid][pZ]);
	            format(string, sizeof(string), "%s is attempting to capture the Materials Factory !", sendername,PointInfo[3][PointName]);
				ProxDetector(50.0, playerid, string, COLOR_RED,COLOR_RED,COLOR_RED,COLOR_RED,COLOR_RED);
				PointCapturable = 3;
                CapturingTimer[playerid] = true;
				SetTimerEx("CapturingPoint",10*1000,0,"i",playerid);
			}
			else if(IsPlayerInRangeOfPoint(playerid,1.0,2729.9077,-2451.4514,17.5937)) //auto export
			{
			    if(PointInfo[4][PointTaken] != 255) { SendClientMessage(playerid, COLOR_GREY, "   That isn't available to capture yet !"); return 1; }
            	GetPlayerName(playerid, sendername, sizeof(sendername));
				GetPlayerPos(playerid, CapturePosition[playerid][pX], CapturePosition[playerid][pY], CapturePosition[playerid][pZ]);
	            format(string, sizeof(string), "%s is attempting to capture the Auto Export !", sendername,PointInfo[4][PointName]);
				ProxDetector(50.0, playerid, string, COLOR_RED,COLOR_RED,COLOR_RED,COLOR_RED,COLOR_RED);
				PointCapturable = 4;
                CapturingTimer[playerid] = true;
				SetTimerEx("CapturingPoint",10*1000,0,"i",playerid);
			}
			else if(IsPlayerInRangeOfPoint(playerid,1.0,323.0342,1118.5804,1083.8828)) //drug house
			{
			    if(PointInfo[5][PointTaken] != 255) { SendClientMessage(playerid, COLOR_GREY, "   That isn't available to capture yet !"); return 1; }
            	GetPlayerName(playerid, sendername, sizeof(sendername));
				GetPlayerPos(playerid, CapturePosition[playerid][pX], CapturePosition[playerid][pY], CapturePosition[playerid][pZ]);
	            format(string, sizeof(string), "%s is attempting to capture the Drug House !", sendername,PointInfo[5][PointName]);
				ProxDetector(50.0, playerid, string, COLOR_RED,COLOR_RED,COLOR_RED,COLOR_RED,COLOR_RED);
				PointCapturable = 5;
                CapturingTimer[playerid] = true;
				SetTimerEx("CapturingPoint",10*1000,0,"i",playerid);
			}
   			else if(IsPlayerInRangeOfPoint(playerid,1.0,2390.4053,-2008.2618,13.5537)) //materials pickup 2
			{
			    if(PointInfo[6][PointTaken] != 255) { SendClientMessage(playerid, COLOR_GREY, "   That isn't available to capture yet !"); return 1; }
            	GetPlayerName(playerid, sendername, sizeof(sendername));
				GetPlayerPos(playerid, CapturePosition[playerid][pX], CapturePosition[playerid][pY], CapturePosition[playerid][pZ]);
	            format(string, sizeof(string), "%s is attempting to capture the Material Pickup 2 !", sendername,PointInfo[6][PointName]);
				ProxDetector(50.0, playerid, string, COLOR_RED,COLOR_RED,COLOR_RED,COLOR_RED,COLOR_RED);
				PointCapturable = 6;
                CapturingTimer[playerid] = true;
				SetTimerEx("CapturingPoint",10*1000,0,"i",playerid);
			}
			else if(IsPlayerInRangeOfPoint(playerid,1.0,2346.2937,-1185.2551,1027.9766)) //crack lab
			{
			    if(PointInfo[7][PointTaken] != 255) { SendClientMessage(playerid, COLOR_GREY, "   That isn't available to capture yet !"); return 1; }
            	GetPlayerName(playerid, sendername, sizeof(sendername));
				GetPlayerPos(playerid, CapturePosition[playerid][pX], CapturePosition[playerid][pY], CapturePosition[playerid][pZ]);
	            format(string, sizeof(string), "%s is attempting to capture the Crack Lab !", sendername,PointInfo[7][PointName]);
				ProxDetector(50.0, playerid, string, COLOR_RED,COLOR_RED,COLOR_RED,COLOR_RED,COLOR_RED);
				PointCapturable = 7;
                CapturingTimer[playerid] = true;
				SetTimerEx("CapturingPoint",10*1000,0,"i",playerid);
			}
			else if(IsPlayerInRangeOfPoint(playerid,1.0,2288.0730,-1105.4535,37.9766)) //materials factory 2
			{
			    if(PointInfo[8][PointTaken] != 255) { SendClientMessage(playerid, COLOR_GREY, "   That isn't available to capture yet !"); return 1; }
            	GetPlayerName(playerid, sendername, sizeof(sendername));
				GetPlayerPos(playerid, CapturePosition[playerid][pX], CapturePosition[playerid][pY], CapturePosition[playerid][pZ]);
	            format(string, sizeof(string), "%s is attempting to capture the Materials Factory 2 !", sendername,PointInfo[8][PointName]);
				ProxDetector(50.0, playerid, string, COLOR_RED,COLOR_RED,COLOR_RED,COLOR_RED,COLOR_RED);
				PointCapturable = 8;
                CapturingTimer[playerid] = true;
				SetTimerEx("CapturingPoint",10*1000,0,"i",playerid);
			}
			else if(IsPlayerInRangeOfPoint(playerid,1.0,1324.2122,286.5997,20.0452)) //sprunk factory
			{
			    if(PointInfo[9][PointTaken] != 255) { SendClientMessage(playerid, COLOR_GREY, "   That isn't available to capture yet !"); return 1; }
            	GetPlayerName(playerid, sendername, sizeof(sendername));
				GetPlayerPos(playerid, CapturePosition[playerid][pX], CapturePosition[playerid][pY], CapturePosition[playerid][pZ]);
	            format(string, sizeof(string), "%s is attempting to capture the Sprunk Factory !", sendername,PointInfo[9][PointName]);
				ProxDetector(50.0, playerid, string, COLOR_RED,COLOR_RED,COLOR_RED,COLOR_RED,COLOR_RED);
				PointCapturable = 9;
                CapturingTimer[playerid] = true;
				SetTimerEx("CapturingPoint",10*1000,0,"i",playerid);
			}
			else
			{
			    SendClientMessage(playerid, COLOR_GREY,"   You are not at the capture point !");
			}
	    }
	    return 1;
	}
This is the commands it's for families so families can capture this points

But I dont got the points.cfg so
when I type /points InGame

it come like
Name:24124-241241-21412Owner:FamilynameCapturedby:WhocapitHours:Howm uchwillbewiththatfamily

So any one buy materials etc the family will get that money!!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)