31.01.2016, 15:27
й so estudar a include a_http
---------
desculpe , eu confundi o pedido
---------
desculpe , eu confundi o pedido
Quote:
new Country[MAX_PLAYERS];//otimizado new Float:AreaCountry[2][4] = { {maxX, maxY, MiniX, MiniY},//ls {maxX, maxY, MiniX, MiniY},//sf {maxX, maxY, MiniX, MiniY}//lv }; stock IsPlayerInYourCountry(playerid, countryid){ new Float, Float:y, Float:z; GetPlayerPos(playerid, x, y, z); if(AreaCountry[countryid][0] > x && AreaCountry[countyid][1] > y && AreaCountry[countryid][2] < x && AreaCountry[countryid][3] < y){ //se ele tiver no local }else{ //se nгo!!! } return 1; } |