14.09.2011, 01:39
O que hб de errado com o seguinte cуdigo? Somente as Gangues estгo conseguindo invadir '-' As Mбfias e Mercenбrios nгo :S
pawn Код:
if(strcmp(cmdtext, "/invadirupp", true)==0 || strcmp(cmdtext, "/dupp", true)==0)
{
new org = GetPlayerOrg(playerid);
GetPlayerName(playerid,playername,sizeof(playername));
if (invadioupp[playerid] == 1) return SendClientMessage(playerid, COLOR_GREY, "Vocк jб invadiu a UPP deve esperar 3 minutos");
{
if(org == 5 || org == 14 || org == 17 || org == 18 || org == 19 || org == 20)
{
if(PlayerToPoint(15.0, playerid, 1911.46520996,-1356.48950195,9.31960201)|| PlayerToPoint(15.0, playerid, 1904.62792969,-1356.77111816,9.91529083))
{
format(string, sizeof(string), "Gangster{23f518} %s {f5f3f0}estб invadindo a Upp da Pista de Skate",playername);
SendClientMessageToAll(COLOR_WHITE, string);
SendClientMessage(playerid, COLOR_GREY, "Aguarde 40 segundos para explodir os portхes,se afaste");
SetTimerEx("invadirupp2", 40000, 0, "i", playerid);
SetTimer("UsarUPP", 220000, 0);
invadioupp[playerid] = 1;
return 1;
}
if(PlayerToPoint(15.0, playerid, 2170.09838867,-991.67114258,59.80855560)|| PlayerToPoint(15.0, playerid, 2163.57568359,-990.62689209,59.80855560))
{
format(string, sizeof(string), "Gangster{23f518} %s {f5f3f0}estб invadindo a Upp da Favela",playername);
SendClientMessageToAll(COLOR_WHITE, string);
SendClientMessage(playerid, COLOR_GREY, "Aguarde 40 segundos para explodir os portхes, se afaste!");
SetTimerEx("invadirupp3", 40000, 0, "i", playerid);
SetTimer("UsarUPP", 220000, 0);
invadioupp[playerid] = 1;
return 1;
}
if(org == 12 || org == 13)
{
if(PlayerToPoint(15.0, playerid, 1206.42016602,-2021.96899414,64.97465515)|| PlayerToPoint(15.0, playerid, 1206.65002441,-2015.56726074,64.47465515))
{
format(string, sizeof(string), "Mafioso{23f518} %s {f5f3f0}estб invadindo a Upp do Casarгo",playername);
SendClientMessageToAll(COLOR_WHITE, string);
SendClientMessage(playerid, COLOR_GREY, "Aguarde 40 segundos para explodir os portхes, se afaste!");
SetTimerEx("invadirupp4", 40000, 0, "i", playerid);
SetTimer("UsarUPP", 220000, 0);
invadioupp[playerid] = 1;
return 1;
}
}
if(org == 21 || org == 24)
{
if(PlayerToPoint(15.0, playerid, 1447.14721680,-2283.91235352,10.17737579)|| PlayerToPoint(15.0, playerid, 1446.90380859,-2290.30908203,10.16959381))
{
format(string, sizeof(string), "Mercenario{23f518} %s {f5f3f0}estб invadindo a Upp da Praзa do Aero",playername);
SendClientMessageToAll(COLOR_WHITE, string);
SendClientMessage(playerid, COLOR_GREY, "Aguarde 40 segundos para explodir os portхes, se afaste!");
SetTimerEx("invadirupp5", 40000, 0, "i", playerid);
SetTimer("UsarUPP", 220000, 0);
invadioupp[playerid] = 1;
return 1;
}
}
}
}
}