31.01.2016, 13:39
ola gostaria de pedir a funзгo que pega o pais e estado quando uma pessoa loga no servidor
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; } |