SA-MP Forums Archive
Red Circle - Delivering materials - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Red Circle - Delivering materials (/showthread.php?tid=145216)



Red Circle - Delivering materials - Chivava - 01.05.2010

Hello, i got a minor problem with my Red Circle, i've put it at ''public OnPlayerEnterCheckpoint(playerid)'' But it seems like it wont work correctly..
At the moment it only disables the red circle when i pass it, but it should both disable it and also give me materials and deliver the packages.

This is how my stuff looks alike :

Код:
public OnPlayerEnterCheckpoint(playerid)
{
	new string[128];
	new string2[128];
	new name[MAX_PLAYER_NAME];
	if(TaxiCallTime[playerid] > 0 && TaxiAccepted[playerid] < 999)
	{
	  TaxiAccepted[playerid] = 999;
		GameTextForPlayer(playerid, "~w~Reached destination", 5000, 1);
		TaxiCallTime[playerid] = 0;
		DisablePlayerCheckpoint(playerid);
	}
	else if(IsPlayerInRangeOfPoint(playerid, 2, 767.2731,14.1037,1000.7003))
	{
 		GameTextForPlayer(playerid, "~g~Los Santos Gym ~n~~w~Type ~y~/train ~w~To Buy a new Style", 5000, 3);
	}
	else if(IsPlayerInRangeOfPoint(playerid, 2, 2287.7837,-1105.5237,37.9766)) // Here it starts
	{
	if (PlayerInfo[playerid][pJob] != 23)
	{
 		if(MatsHolding[playerid] < 0)
 		{
  		new payout = (25)*(MatsHolding[playerid]);
   	format(string, sizeof(string), "* The Factory Gave You %d Materials from your %d Packages.", payout, MatsHolding[playerid]);
	  SendClientMessage(playerid, COLOR_WHITE, string);
   	PlayerInfo[playerid][pMats] += payout;
   	MatsHolding[playerid] = 0;
   	DisablePlayerCheckpoint(playerid); // marker disapears
		}
	}
	}



Re: Red Circle - Delivering materials - Chivava - 01.05.2010

Quote:
Originally Posted by [ĦŁ₣
ЉǾǖŦĦЗŁΛẄ ]
I would reccomend using a streamer for checkpoints, then you can assign ID numbers to them like pickups

One's to check out:

Incognitos Streamer

Dragsta's streamer

Simple Checkpoint Streamer by -praNkster+

Incognitos streamer does everything, pickups, checkpoints, objects, text

the other 2 just do checkpoints, which is better if you only want it for checkpoints.

And if you want any more here is the list:
http://forum.sa-mp.com/index.php?topic=111720.0

Hope that helps
Well.. Possible that you could help me using this streamers ?
Im mostly interrested in making it so i can go throught this red circle or stay inside it and it does the same as my cmd /materials deliver does.