29.12.2018, 18:22
PHP код:
[20:09:53] Faction ID: 0
All tho "ID" = to this
PHP код:
new id = GetNearestOrganization(playerid);
//
GetNearestOrganization(playerid)
{
for(new b = 1; b < MAX_FACT; b++)
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, OI[b][oPozExtX], OI[b][oPozExtY], OI[b][oPozExtZ])) return b;
}
return -1;
}
PHP код:
OI[orgid][oPozExtX] = X_C, OI[orgid][oPozExtY] = Y_C, OI[orgid][oPozExtZ] = Z_C;