27.12.2013, 17:15
Bem , estou com um problema aqui num code , talvez seja mais um problema de falta de atenзгo como os outros de ontem :S
O problema й que ele indica sempre a mensagem de que o jogador nгo estб no local de compra .
pawn Код:
CMD:comprararmas(playerid, params[])
{
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 !!");
}
else
{
ShowModelSelectionMenu(playerid, listaarmasct, "Comprar arma :", 0x4A5A6BBB, 0x88888899 , 0xFFFF00AA);
}
}
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 !!");
}
else
{
ShowModelSelectionMenu(playerid, listaarmast, "Comprar arma :", 0xCE0005FF, 0x88888899 , 0xFFFF00AA);
}
}
return 1;
}