10.06.2013, 18:47
Alguem Pode Me Mandar um Sistema de Upp ?
Agradeзo desde ja *--*
Agradeзo desde ja *--*
//sistema de invadir UPP
new invadioupp[MAX_PLAYERS];
//upp's sistem
forward UsarUPP(playerid);
forward invadirupp2(playerid);
forward invadirupp3(playerid);
forward invadirupp4(playerid);
forward invadirupp5(playerid);
forward invadirupp6(playerid);
forward reformarupp2e3();
forward reformarupp4e5();
forward reformarupp6e7();
forward reformarupp8e9();
forward SetupPlayerForClassSelection(playerid);
//portoes Upp's
new upp2;
new upp3;
new upp4;
new upp5;
new upp6;
new upp7;
new upp8;
new upp9;
forward fecharupp2();
forward fecharupp3();
forward fecharupp4();
forward fecharupp5();
forward fecharupp6();
forward fecharupp7();
forward fecharupp8();
forward fecharupp9();
public OnPlayerPickUpPickup(playerid, pickupid)
public SetupPlayerForClassSelection(playerid)
SendClientMessage(i, 0x33FF00FF, "Sistema de Upp's nas gangzones,Cops /portaoupp, gangues /invadirupp.");
SendClientMessage(i, 0x33FF00FF, "Sistema de Upp's nas gangzones,Cops /portaoupp, gangues /invadirupp.");
SendClientMessage(i, 0x33FF00FF, "Sistema de Upp's nas gangzones,Cops /portaoupp, gangues /invadirupp.");
//upp's
Create3DTextLabel("Cops /portaoupp\nGangues /invadirupp",0x33FF00FF,2166.5811,-992.1354,67.8417,15.0,0);
Create3DTextLabel("Cops /portaoupp\nGangues /invadirupp",0x33FF00FF,2166.5811,-992.1354,67.8417,15.0,0);
Create3DTextLabel("Cops /portaoupp\nGangues /invadirupp",0x33FF00FF,1907.4922,-1359.1998,17.9242,15.0,0);
Create3DTextLabel("Cops /portaoupp\nGangues /invadirupp",0x33FF00FF,1907.4922,-1359.1998,17.9242,15.0,0);
Create3DTextLabel("Cops /portaoupp\nGangues /invadirupp",0x33FF00FF,1209.1792,-2018.6202,72.9215,15.0,0);
Create3DTextLabel("Cops /portaoupp\nGangues /invadirupp",0x33FF00FF,1209.1792,-2018.6202,72.9215,15.0,0);
Create3DTextLabel("Cops /portaoupp\nGangues /invadirupp",0x33FF00FF,1444.3151,-2286.9932,17.9605,15.0,0);
Create3DTextLabel("Cops /portaoupp\nGangues /invadirupp",0x33FF00FF,1444.3151,-2286.9932,17.9605,15.0,0);
//objetos UPP's Gangzones
//portoes UPP's
upp2 = F_CreateObject(7657,1911.46520996,-1356.48950195,9.31960201,358.00488281,89.86041260,89.99755859); //object(plasticsgate1) (2)
upp3 = F_CreateObject(7657,1904.62792969,-1356.77111816,9.91529083,0.00000000,90.00000000,267.99841309); //object(plasticsgate1) (3)
upp4 = F_CreateObject(7657,2170.09838867,-991.67114258,59.80855560,358.00048828,89.85717773,83.99450684); //object(plasticsgate1) (4)
upp5 = F_CreateObject(7657,2163.57568359,-990.62689209,59.80855560,0.00000000,90.00000000,261.99444580); //object(plasticsgate1) (5)
upp6 = F_CreateObject(7657,1206.42016602,-2021.96899414,64.97465515,0.00000000,90.00000000,357.98999023); //object(plasticsgate1) (6)
upp7 = F_CreateObject(7657,1206.65002441,-2015.56726074,64.47465515,0.00000000,90.00000000,179.98828125); //object(plasticsgate1) (7)
upp8 = F_CreateObject(7657,1447.14721680,-2283.91235352,10.17737579,0.00000000,90.00000000,179.98352051); //object(plasticsgate1) (8)
upp9 = F_CreateObject(7657,1446.90380859,-2290.30908203,10.16959381,0.00000000,90.00000000,357.98950195); //object(plasticsgate1) (9)
if(strcmp(cmdtext, "/invadirupp", true)==0 || strcmp(cmdtext, "/dupp", true)==0)
if(strcmp(cmdtext, "/invadirupp", true)==0 || strcmp(cmdtext, "/dupp", true)==0)
if (invadioupp[playerid] == 1) return SendClientMessage(playerid, COLOR_GREY, "Vocк jб invadiu a UPP deve esperar 3 minutos");
if (invadioupp[playerid] == 1) return SendClientMessage(playerid, COLOR_GREY, "Vocк jб invadiu a UPP deve esperar 3 minutos");
format(string, sizeof(string), "Gangster{23f518} %s {f5f3f0}estб invadindo a Upp da Pista de Skate",playername);
SetTimerEx("invadirupp2", 40000, 0, "i", playerid);
SetTimer("UsarUPP", 220000, 0);
invadioupp[playerid] = 1;
format(string, sizeof(string), "Gangster{23f518} %s {f5f3f0}estб invadindo a Upp da Favela",playername);
SetTimerEx("invadirupp3", 40000, 0, "i", playerid);
SetTimer("UsarUPP", 220000, 0);
invadioupp[playerid] = 1;
format(string, sizeof(string), "Mafioso{23f518} %s {f5f3f0}estб invadindo a Upp do Casarгo",playername);
SetTimerEx("invadirupp4", 40000, 0, "i", playerid);
SetTimer("UsarUPP", 220000, 0);
invadioupp[playerid] = 1;
format(string, sizeof(string), "Mercenario{23f518} %s {f5f3f0}estб invadindo a Upp da Praзa do Aero",playername);
SetTimerEx("invadirupp5", 40000, 0, "i", playerid);
SetTimer("UsarUPP", 220000, 0);
invadioupp[playerid] = 1;
if(strcmp(cmd, "/portaoupp", true) == 0)
F_MoveObject( upp2, 1911.46520996,-1356.48950195,1.31960201,3);
GameTextForPlayer(playerid, "~w~Portao Upp ~n~~b~Aberto", 5000, 3);
SetTimer("fecharupp2", 5000, false);
F_MoveObject( upp3, 1904.62792969,-1356.77111816,1.91529083,3);
GameTextForPlayer(playerid, "~w~Portao Upp ~n~~b~Aberto", 5000, 3);
SetTimer("fecharupp3", 5000, false);
F_MoveObject( upp4, 2170.09838867,-991.67114258,49.80855560,3);
GameTextForPlayer(playerid, "~w~Portao Upp ~n~~b~Aberto", 5000, 3);
SetTimer("fecharupp4", 5000, false);
F_MoveObject( upp5, 2163.57568359,-990.62689209,49.80855560,3);
GameTextForPlayer(playerid, "~w~Portao Upp ~n~~b~Aberto", 5000, 3);
SetTimer("fecharupp5", 5000, false);
F_MoveObject( upp6, 1206.42016602,-2021.96899414,54.97465515,3);
GameTextForPlayer(playerid, "~w~Portao Upp ~n~~b~Aberto", 5000, 3);
SetTimer("fecharupp6", 5000, false);
F_MoveObject( upp7, 1206.65002441,-2015.56726074,54.47465515,3);
GameTextForPlayer(playerid, "~w~Portao Upp ~n~~b~Aberto", 5000, 3);
SetTimer("fecharupp7", 5000, false);
F_MoveObject( upp8, 1447.14721680,-2283.91235352,1.17737579,3);
GameTextForPlayer(playerid, "~w~Portao Upp ~n~~b~Aberto", 5000, 3);
SetTimer("fecharupp8", 5000, false);
F_MoveObject( upp9, 1446.90380859,-2290.30908203,1.16959381,3);
GameTextForPlayer(playerid, "~w~Portao Upp ~n~~b~Aberto", 5000, 3);
SetTimer("fecharupp9", 5000, false);
public invadirupp5(playerid)
format(string, sizeof(string), "Mercenario{23f518} %s {f5f3f0}nгo conseguiu invadir a Upp da Praзa do Aero",playername);
invadioupp[playerid] = 1;
format(string, sizeof(string), "Mercenario{23f518} %s {f5f3f0}conseguiu invadir a Upp da Praзa do Aero",playername);
F_DestroyObject(upp8);
F_DestroyObject(upp9);
invadioupp[playerid] = 1;
SetTimer("reformarupp8e9", 220000, 0);
public invadirupp4(playerid)
format(string, sizeof(string), "Mafioso{23f518} %s {f5f3f0}nгo conseguiu invadir a Upp do Casarгo",playername);
invadioupp[playerid] = 1;
format(string, sizeof(string), "Mafioso{23f518} %s {f5f3f0}conseguiu invadir a Upp do Casarгo",playername);
F_DestroyObject(upp6);
F_DestroyObject(upp7);
invadioupp[playerid] = 1;
SetTimer("reformarupp6e7", 220000, 0);
public invadirupp3(playerid)
format(string, sizeof(string), "Gangster{23f518} %s {f5f3f0}nгo conseguiu invadir a Upp da Favela",playername);
invadioupp[playerid] = 1;
format(string, sizeof(string), "Gangster{23f518} %s {f5f3f0}conseguiu invadir a Upp da Favela",playername);
F_DestroyObject(upp4);
F_DestroyObject(upp5);
invadioupp[playerid] = 1;
SetTimer("reformarupp4e5", 220000, 0);
public invadirupp2(playerid)
format(string, sizeof(string), "Gangster{23f518} %s {f5f3f0}nгo conseguiu invadir a Upp da Pista de Skate",playername);
invadioupp[playerid] = 1;
format(string, sizeof(string), "Gangster{23f518} %s {f5f3f0}conseguiu invadir a Upp da Pista de Skate",playername);
F_DestroyObject(upp2);
F_DestroyObject(upp3);
invadioupp[playerid] = 1;
SetTimer("reformarupp2e3", 220000, 0);
public UsarUPP(playerid)
invadioupp[playerid] = 0;
public reformarupp2e3()
upp2 = F_CreateObject(7657,1911.46520996,-1356.48950195,9.31960201,358.00488281,89.86041260,89.99755859); //object(plasticsgate1) (2)
upp3 = F_CreateObject(7657,1904.62792969,-1356.77111816,9.91529083,0.00000000,90.00000000,267.99841309); //object(plasticsgate1) (3)
SendClientMessageToAll(0x33FF00FF, "UPP da Pista de Skate Reformada");
public reformarupp4e5()
upp4 = F_CreateObject(7657,2170.09838867,-991.67114258,59.80855560,358.00048828,89.85717773,83.99450684); //object(plasticsgate1) (4)
upp5 = F_CreateObject(7657,2163.57568359,-990.62689209,59.80855560,0.00000000,90.00000000,261.99444580); //object(plasticsgate1) (5)
SendClientMessageToAll(0x33FF00FF, "UPP da Favela Reformada");
public reformarupp6e7()
upp6 = F_CreateObject(7657,1206.42016602,-2021.96899414,64.97465515,0.00000000,90.00000000,357.98999023); //object(plasticsgate1) (6)
upp7 = F_CreateObject(7657,1206.65002441,-2015.56726074,64.47465515,0.00000000,90.00000000,179.98828125); //object(plasticsgate1) (7)
SendClientMessageToAll(0x33FF00FF, "UPP do Casarгo Reformada");
public reformarupp8e9()
upp8 = F_CreateObject(7657,1447.14721680,-2283.91235352,10.17737579,0.00000000,90.00000000,179.98352051); //object(plasticsgate1) (8)
upp9 = F_CreateObject(7657,1446.90380859,-2290.30908203,10.16959381,0.00000000,90.00000000,357.98950195); //object(plasticsgate1) (9)
SendClientMessageToAll(0x33FF00FF, "UPP da Praзa do Aero Reformada");
public fecharupp2()
F_MoveObject( upp2, 1911.46520996,-1356.48950195,9.31960201,3);
public fecharupp3()
F_MoveObject( upp3, 1904.62792969,-1356.77111816,9.91529083,3);
public fecharupp4()
F_MoveObject( upp4, 2170.09838867,-991.67114258,59.80855560,3);
public fecharupp5()
F_MoveObject( upp5, 2163.57568359,-990.62689209,59.80855560,3);
public fecharupp6()
F_MoveObject( upp6, 1206.42016602,-2021.96899414,64.97465515,3);
public fecharupp7()
F_MoveObject( upp7, 1206.65002441,-2015.56726074,64.47465515,3);
public fecharupp8()
F_MoveObject( upp8, 1447.14721680,-2283.91235352,10.17737579,3);
public fecharupp9()
F_MoveObject( upp9, 1446.90380859,-2290.30908203,10.16959381,3);