[Pedido] Pais e Estado
#3

й so estudar a include a_http
---------
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;
}

Reply


Messages In This Thread
Pais e Estado - by rol3Play - 31.01.2016, 13:39
Re: Pais e Estado - by RockstarL - 31.01.2016, 13:46
Re: Pais e Estado - by BykiLler - 31.01.2016, 15:27

Forum Jump:


Users browsing this thread: 1 Guest(s)