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
}
}
}
|
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 ![]() |