08.01.2011, 13:35
pawn Код:
#define MAX_POS 5
new DSPos[MAX_POS][3] =
{
//{X, Y, Z}
{3029.8376,-2045.4829,3.4229},
{2325.4622,-1223.5625,22.2046},
{2149.4558,-1166.3368,23.3749},
{2737.8115,-1876.1163,9.4239},
{564.1442,-1267.4377,16.8385}
};
public IsAtDealership(playerid)
{
if(IsPlayerConnected(playerid))
{
for(new d; d<MAX_POS; d++)
{
if(IsPlayerInRangeOfPoint(playerid,25.0,DSPos[d][0],DSPos[d][1],DSPos[d][2]))
{
return 1;
}