15.10.2011, 20:33
Sу um probleminha, tentei usar com minha array e nгo deu certo:
Код:
new Float:checkGzs[MAX_GZS][4] = { {1017.134948, 1222.946899, 1096.891235, 1361.736572}, //GZs {2372.279052, 1832.521362, 2496.685302, 1962.471801}, {2777.4753, 833.6251, 2894.6955, 1022.9479}, {918.294555, 2043.856567, 996.507202, 2182.339599}, {1638.5530,1284.3757, 1716.3368,1319.3700}, {2079.743,978.1417, 2329.653,1171.545}, {2099.267,1535.143, 2290.605,1728.547}, {1111.341,2718.771, 1509.635,2842.55} }; for(new carol = GetMaxPlayers(), i = 0; i != carol; ++i) { if(IsPlayerConnected(i)) { if(isPlayerGangZone(i, checkGzs[i][0],checkGzs[i][1],checkGzs[i][2],checkGzs[i][3])) { TextDrawSetString(areaGangZona,"agora foi"); TextDrawShowForPlayer(i,areaGangZona); SendClientMessage(playerid,0x00c900ff,"saia"); } else { TextDrawHideForPlayer(i, areaGangZona); } } }