27.12.2013, 17:46
A lуgica na verdade й comparar se ele nгo estб em nenhum dos lugares, fique tranquilo, todos aqui jб cometemos este mesmo erro quando se trata de posiзхes.
pawn Код:
CMD:comprararmas(playerid)
{
if(PlayerInfo[playerid][pEquipa] == 1)
{
if(!IsPlayerInRangeOfPoint(playerid, 7798.0586,-2612.3733,12.6534, 3.0) && !IsPlayerInRangeOfPoint(playerid,-4180.0063,-6770.7710,11.9720, 3.0) && !IsPlayerInRangeOfPoint(playerid,8076.1299,-7591.2690,15.3666, 3.0) && !IsPlayerInRangeOfPoint(playerid,9511.4180,-8821.0498,28.4341, 3.0))
{
SendClientMessage(playerid, COLOR_RED, "Vocк nгo estб no local de compra !!");
return 1;
}
else
{
ShowModelSelectionMenu(playerid, listaarmasct, "Comprar arma :", 0x4A5A6BBB, 0x88888899 , 0xFFFF00AA);
return 1;
}
}
if(PlayerInfo[playerid][pEquipa] == 2)
{
if(!IsPlayerInRangeOfPoint(playerid, 7703.8672,-2595.6262,24.1061, 3.0) && !IsPlayerInRangeOfPoint(playerid,-4424.7817,-6765.0215,16.1435, 3.0) && !IsPlayerInRangeOfPoint(playerid,8170.6826,-7518.8247,15.3666, 3.0) && !IsPlayerInRangeOfPoint(playerid,9459.8906,-8753.8584,30.2687, 3.0))
{
SendClientMessage(playerid, COLOR_RED, "Vocк nгo estб no local de compra !!");
return 1;
}
else
{
ShowModelSelectionMenu(playerid, listaarmast, "Comprar arma :", 0xCE0005FF, 0x88888899 , 0xFFFF00AA);
}
}
return 1;
}