Send Message to Only Family Member??
#1

I was wondering if anyone could help me out with making the points only be send to family members. For example when their paychecks come, it shows all the points that are available to capture, but everyone can see it. I want to make it to where only family members can. Any help??

Heres the code:
Код:
	
// Paycheck
	if(tmin == 0 && tsec <= 4 && PayChecks == 0)
	{
	    SetWorldTime(thour);
		Paycheck();
		// Points
		for(new idx = 0; idx<MAX_POINTS; idx++)
	    {
	    	PointBC[idx] = 0;
	    }
		for(new idx = 0; idx < MAX_POINTS; idx++)
		{
			if(PointInfo[idx][pTime]) PointInfo[idx][pTime] --;
			if(!PointInfo[idx][pTime] && !PointBC[idx])
			{
			    PointInfo[idx][pOwner] = 0;
			    PointInfo[idx][pProfit] = 0;
			    format(string, sizeof(string), "The %s is available to be captured.", PointInfo[idx][pName]);
			    SendClientMessageToAll(COLOR_YELLOW, string);
			    DestroyDynamicPickup(PointInfo[idx][pPickup]);
			    DestroyDynamic3DTextLabel(PointInfo[idx][pText]);
			    PointInfo[idx][pPickup] = CreateDynamicPickup(1239, 1, PointInfo[idx][pX], PointInfo[idx][pY], PointInfo[idx][pZ]);
		    	PointInfo[idx][pText] = CreateDynamic3DTextLabel("Point\n/capture", COLOR_WHITE, PointInfo[idx][pX], PointInfo[idx][pY], PointInfo[idx][pZ]+0.3, 15);

			}
	    }
	}
	return 1;
}
Reply


Messages In This Thread
Send Message to Only Family Member?? - by ArmandoRamiraz - 22.07.2012, 10:27
Re: Send Message to Only Family Member?? - by Kindred - 22.07.2012, 10:30
Re: Send Message to Only Family Member?? - by ArmandoRamiraz - 22.07.2012, 10:36
Re: Send Message to Only Family Member?? - by ArmandoRamiraz - 22.07.2012, 21:46
Re: Send Message to Only Family Member?? - by ReneG - 22.07.2012, 21:51

Forum Jump:


Users browsing this thread: 3 Guest(s)