22.02.2018, 17:24
Vocк organizar desta forma:
PHP код:
new Float:PosCX[][] =
{
{2072.5137,2060.8616,10.8445},
{2072.4607,2059.4314,10.8445},
{2072.4287,2056.8879,10.8445},
{2072.8479,2055.6711,10.8445},
{2072.8223,2058.2295,10.8445}
};
PHP код:
if(newkeys == KEY_SECONDARY_ATTACK)
{
for(new i = 0; i < sizeof PosCX; ++ i)
{
if(IsPlayerInRangeOfPoint(playerid, 1.0, PosCX[i][0], PosCX[i][1], PosCX[i][2]))
{
// code
}
}
return true;
}