18.09.2016, 12:06
PHP код:
stock IsNearATM(playerid)
{
if(IsPlayerInRangeOfPoint(playerid, 1.0, -1867.30005, 943.35999, 34.80000) || IsPlayerInRangeOfPoint(playerid, 1.0, -1622.09998, 716.82001, 14.24000) || IsPlayerInRangeOfPoint(playerid, 1.0, -2450.19995, 755.59998, 34.80000) ||
IsPlayerInRangeOfPoint(playerid, 1.0, -2727.46777, 388.97891, 4.00720) || IsPlayerInRangeOfPoint(playerid, 1.0, -2638.05371, 635.36920, 14.07310) || IsPlayerInRangeOfPoint(playerid, 1.0, -1939.57678, 265.36539, 40.66030) ||
IsPlayerInRangeOfPoint(playerid, 1.0, -1764.69995, 1084.00000, 45.10000) || IsPlayerInRangeOfPoint(playerid, 1.0, -1493.13049, 930.49518, 6.81230))
{ //Checking if player close to first/only ATm we created.
return 1;
}
return 0;
}