11.09.2013, 08:13
Okay, sorry for my messed up title, It's hard for me to explain this.
So I have it so the script does this
Now the issue is I want it so it can just use these coords to create a pickup. This is how I have it.
How can I make it, so it automatically does it like so
Sorry it is hard for me to explain this.... I did try searching up something.. I believe an array could be used for this, but I don't do arrays that much.
So I have it so the script does this
pawn Код:
stock IsPlayerNearStall(playerid)
{
if(IsPlayerInRangeOfPoint(playerid, 2, -315.4249,1051.4526,19.7422,245.1080,0,0,0,0,0,0) return 1; // stallcheckpoint
else if(IsPlayerInRangeOfPoint(playerid, 2, -326.9075,1057.4795,19.7422,125.2685,0,0,0,0,0,0) return 1; // stallcheckpoint
return 0;
}
pawn Код:
/ Stalk Markets
CreateDynamicPickup(1239, 1, -315.4249,1051.4526,19.7422); // stallcheckpoint
Create3DTextLabel("{FF0000}Stall\n{FFFFFF}/sbuy, /ssell", COLOR_RED, -315.4249,1051.4526,19.7422, 30, 0, 1);
CreateDynamicPickup(1239, 1, -326.9075,1057.4795,19.7422); // stallcheckpoint
Create3DTextLabel("{FF0000}Stall\n{FFFFFF}/sbuy, /ssell", COLOR_RED, -326.9075,1057.4795,19.7422, 30, 0, 1);
pawn Код:
CreateDynamicPickup(1239, 1, IsPlayerNearStall); // stallcheckpoint
Create3DTextLabel("{FF0000}Stall\n{FFFFFF}/sbuy, /ssell", COLOR_RED, IsPlayerNearStall, 30, 0, 1);
CreateDynamicPickup(1239, 1, IsPlayerNearStall); // stallcheckpoint
Create3DTextLabel("{FF0000}Stall\n{FFFFFF}/sbuy, /ssell", COLOR_RED, IsPlayerNearStall, 30, 0, 1);