01.05.2010, 14:12
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 :
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 } } }