14.09.2011, 01:46
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[playerid] == 5 || org[playerid] == 14 || org[playerid] == 17 || org[playerid] == 18 || org[playerid] == 19 || org[playerid] == 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;
}
else if(org[playerid] == 12 || org[playerid] == 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;
}
}
else if(org[playerid] == 21 || org[playerid] == 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), "Mercenбrio{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;
}
}
}
return 1;
}