11.01.2012, 16:43
Ola eu estou com um bug do portгo abrir errado eu atualizei a streamer para treamer_plugin_v2_5_2_r2 e agora ta dando esse bug ele abre errado e fecha errado alguйm pode me ajudar
//----------------------------------{Portoes DP}--------------------------------------------
if(strcmp(cmd, "/pp", true) == 0)
{
if ((IsACop(playerid)) && PlayerToPoint(15.0, playerid, 247.005905 , 72.448440 , 1003.640625) || PlayerInfo[playerid][pEmprego] == 2)
{ //GateInteriorCela
F_MoveObject( PDDOORa, 247.005905 , 72.448440 , 1006.912902,3);
GameTextForPlayer(playerid, "~w~Porta das Celas ~n~~b~Aberto", 4000, 3);
SetTimer("GaragemDpClosed", 4000, false);
}
return 1;
}
//----------------------------------{Portoes DP2}----------------------------------------
//---------------------------------[pr g]------------------------------------------
if(strcmp(cmd, "/pdetran", true) == 0)
{
if ((PlayerInfo[playerid][pMembro] == 26 || PlayerInfo[playerid][pLider] == 26) && PlayerToPoint(20.0, playerid,2068.70800781,-1881.05725098,15.32026672))
{
MoveObject( Portaogpr, 2068.70800781,-1881.05725098,15.32026672,3);//No Lugar dos ----- voce coloca as cordenadas que o portao vai se mover
GameTextForPlayer(playerid, "~w~Galpao de veiculos apreendido~n~~b~Aberto", 5000, 3);
SetTimer("Portaogprandando", 5000, false);
}
return 1;
}
if(strcmp(cmd, "/Cativeiro", true) == 0)
{
new org = GetPlayerOrg(playerid);
GetPlayerName(playerid,playername,sizeof(playername));
if ((org == 5 || org == 14 || org == 17 || org == 18 || org == 19 || org == 20 || org == 13 || org == 12 || org == 15 || org == 6) && PlayerToPoint(20.0, playerid,2349.23168945,-659.26922607,125.21961975))
{
MoveObject( Portaocat, 2349.23168945,-659.26922607,125.21961975,3);//No Lugar dos ----- voce coloca as cordenadas que o portao vai se mover
GameTextForPlayer(playerid, "~w~Cativeiro~n~~b~Aberto", 5000, 3);
SetTimer("Portaogcatandando",5000, false);
}
return 1;
}
if(strcmp(cmd, "/pupp", true) == 0)
{
new org = GetPlayerOrg(playerid);
if((org == 1 || org == 2 || org == 3 || org == 11 || org == 16) && PlayerToPoint(20.0, playerid,1972.71008301,-1440.10424805,18.74467468))
{
MoveObject( Portaoupp, 1973.15783691,-1440.17004395,13.24467468,3);//No Lugar dos ----- voce coloca as cordenadas que o portao vai se mover
GameTextForPlayer(playerid, "~w~Portao da upp~n~~b~Aberto", 5000, 3);
SetTimer("Portaouppandando", 5000, false);
}
else
{
MSGPLAYER(playerid, COLOR_GREY, " Vocк nгo estб perto do portгo ou nгo й um Oficial ");
}
return 1;
}
//---------------------------------[portao hit]------------------------------------------
if(strcmp(cmd, "/phit", true) == 0)
{
if ((PlayerInfo[playerid][pMembro] == 8 || PlayerInfo[playerid][pLider] == 8) && PlayerToPoint(20.0, playerid,1534.6350,-1451.6123,13.3885))
{
MoveObject( Portaohit, 1545.25219727,-1451.29785156,15.15895081,3);//No Lugar dos ----- voce coloca as cordenadas que o portao vai se mover
GameTextForPlayer(playerid, "~w~Portao Hitman~n~~b~Aberto", 5000, 3);
SetTimer("Portaohitandando", 5000, false);
}
return 1;
}
//-------------------------------[termino]-----------------------------------------
if(strcmp(cmd, "/pr", true) == 0)
{
if ((IsACop(playerid)) && PlayerToPoint(15.0, playerid, 250.774871 , 60.822799 , 1003.640625))
{ //GateGaragem
F_MoveObject( PDDOORb, 250.774871 , 60.822799 , 1006.862670,3);
GameTextForPlayer(playerid, "~w~Porta da Recepcao ~n~~b~Aberto", 5000, 3);
SetTimer("GaragemDpClosed2", 5000, false);
}
return 1;
}
//----------------------------------{Portoes DP3}----------------------------------------
if(strcmp(cmd, "/pv", true) == 0)
{
if ((IsACop(playerid)) && PlayerToPoint(15.0, playerid, 248.142105 , 78.125961 , 1003.640625))
{ //GateGaragem
F_MoveObject( PDDOORc, 248.142105 , 78.125961 , 1007.248718,3);
GameTextForPlayer(playerid, "~w~Porta do Vestiario ~n~~b~Aberto", 5000, 3);
SetTimer("pd1", 5000, false);
}
return 1;
}
//----------------------------------{Portoes LS}----------------------------------------
if(strcmp(cmd, "/pe", true) == 0)
{
if ((IsACop(playerid)) && PlayerToPoint(15.0, playerid, 1545.1932373047, -1623.6568603516, 15.156204223633))
{ //GateGaragem
F_MoveObject( PDGATE, 1544.469,-1628.097, 7.353,3);
GameTextForPlayer(playerid, "~w~Garagem Externa ~n~~b~Aberta", 4200, 3);
SetTimer("pd2", 4200, false);
}
return 1;
}
//----------------------------------{Portoes LS2}----------------------------------------
if(strcmp(cmd, "/pg", true) == 0)
{
if ((IsACop(playerid)) && PlayerToPoint(15.0, playerid, 1588.555786, -1637.811157, 15.911808))
{ //GateGaragem
F_MoveObject( PDGARAGE, 1588.195,-1637.969, 20.086790,3);
GameTextForPlayer(playerid, "~w~Garagem Interna ~n~~b~Aberta", 5000, 3);
SetTimer("pd3", 5000, false);
}
return 1;
}
//----------------------------------{Portoes DP5}----------------------------------------
if(strcmp(cmd, "/pcg", true) == 0)
{
if ((IsACop(playerid)) && PlayerToPoint(15.0, playerid, 2334.757568, 2443.675537, 8.250650))
{ //GateGaragem
F_MoveObject( gatepf2, 2334.757568, 2443.675537, 12.200590,3);
GameTextForPlayer(playerid, "~b~Aberto", 5000, 3);
SetTimer("PFClosed2", 5000, false);
}
return 1;
}
//----------------------------------{Portoes DP6}----------------------------------------
if(strcmp(cmd, "/pce", true) == 0)
{
if ((IsACop(playerid)) && PlayerToPoint(15.0, playerid, 2293.928467, 2499.322021, 5.825822))
{ //GateGaragem
F_MoveObject( gatepf3, 2293.928467, 2506.294678, 5.825822,3);
GameTextForPlayer(playerid, "~b~Aberto", 5000, 3);
SetTimer("PFClosed3", 5000, false);
}
return 1;
}
//----------------------------------{Portoes B.O.P.E}----------------------------------------
if(strcmp(cmd, "/pb", true) == 0)
{
if ((IsACop(playerid)) && PlayerToPoint(15.0, playerid, 1025.799316, -368.267792, 75.509537))
{ //GateGaragem
F_MoveObject( portaobope, 1025.799316, -368.267792, 81.784447,3);
GameTextForPlayer(playerid, "~w~Portao PF ~n~~b~Aberto", 5000, 3);
SetTimer("PortaoBope", 5000, false);
}
return 1;
}
//----------------------------------{Portoes B.O.P.E}----------------------------------------
if(strcmp(cmd, "/pb2", true) == 0)
{
if ((IsACop(playerid)) && PlayerToPoint(15.0, playerid, 283.095062, -1542.899170, 25.510294))
{ //GateGaragem
F_MoveObject( gt3gate, 283.095062, -1542.899170, 33.385311,3);
GameTextForPlayer(playerid, "~w~Portao~n~~b~Aberto", 5000, 3);
SetTimer("gt3gate2", 5000, false);
}
return 1;
}
//----------------------------------{Portoes B.O.P.E}----------------------------------------
if(strcmp(cmd, "/pb3", true) == 0)
{
if ((IsACop(playerid)) && PlayerToPoint(15.0, playerid, 321.832672, -1488.615112, 25.527353))
{ //GateGaragem
F_MoveObject( gt3gate3, 321.832672, -1488.615112, 33.777353,3);
GameTextForPlayer(playerid, "~w~Portao ~n~~b~Aberto", 5000, 3);
SetTimer("gt3gate4", 5000, false);
}
return 1;
}
//----------------------------------{Exercito}----------------------------------------
if(strcmp(cmd, "/abrirgn", true) == 0)
{
if ((IsACop(playerid)) && PlayerToPoint(15.0, playerid, -1531.3978271484, 482.25979614258, 8.9530792236328))
{ //GateGaragem
F_MoveObject( PDEx, -1531.3978271484, 482.25979614258, 13.9530792236328,3);
GameTextForPlayer(playerid, "~w~Portao Exercito ~n~~b~Aberto", 5000, 3);
SetTimer("PDEx2", 5000, false);
}
else
return 1;
}
if(strcmp(cmd, "/pyakuza", true) == 0)
{
if (PlayerInfo[playerid][pMembro] == 13 || PlayerInfo[playerid][pLider] == 13)
{
if(PlayerToPoint(15.0, playerid, 664.8344,-1309.7133,13.4609))
{
F_MoveObject( pyakuza1, 677.862,-1309.311,15.234,3);
GameTextForPlayer(playerid, "~w~Portao Yakuza ~n~~b~Aberto", 5000, 3);
SetTimer("fecharyakuza1", 5000, false);
}
else if(PlayerToPoint(15.0, playerid, 785.5371,-1157.6627,23.5792))
{
F_MoveObject( pyakuza3, 785.128,-1162.442,25.430,3);
GameTextForPlayer(playerid, "~w~Portao Yakuza ~n~~b~Aberto", 5000, 3);
SetTimer("fecharyakuza3", 5000, false);
}
}
return 1;
}
if(strcmp(cmd, "/acn", true) == 0)
{
if (PlayerInfo[playerid][pMembro] == 12 || PlayerInfo[playerid][pLider] == 12)
{
if(PlayerToPoint(15.0, playerid, 1496.7689,-699.4988,94.7500))
{
F_MoveObject( acn, 1510.1875, -699.90942382813, 96.523391723633,3);
GameTextForPlayer(playerid, "~w~Portao Cosa Nostra ~n~~b~Aberto", 5000, 3);
SetTimer("fecharacn", 5000, false);
}
}
return 1;
}
//----------------------------------{Portao GOVERNO}----------------------------------------
if(strcmp(cmd, "/ppre", true) == 0)
{
if ((IsAGOV(playerid)) && PlayerToPoint(15.0, playerid, 369.15893554688, 162.35037231445, 1028.6030273438))
{ //Portao Governo
F_MoveObject( PortaoPre, 369.15893554688, 162.35037231445, 1030.9030273438,3);
GameTextForPlayer(playerid, "~w~Porta Prefeitura Municipal ~n~~b~Aberta", 5000, 3);
SetTimer("PortaoPre2", 5000, false);
}
else
return 1;
}
//PORTAO RALLY
if(strcmp(cmd, "/portaorally", true) == 0)
{
if (PlayerInfo[playerid][pAdmin] >= 1 && PlayerToPoint(15.0, playerid, -2368.4670410156, -2192.6381835938, 36.037666320801))
{ //PortaoAdmin
F_MoveObject( PortaoRally, -2368.4670410156, -2192.6381835938, 42.037666320801,3);
GameTextForPlayer(playerid, "~w~Pista de Rally ~n~~b~Aberta", 25000, 3);
SetTimer("PortaoRally2", 25000, false);
}
else
return 1;
}
//PORTAO X1 MONTE CHILIAD
if(strcmp(cmd, "/portaox1", true) == 0)
{
if (PlayerInfo[playerid][pAdmin] >= 1 && PlayerToPoint(15.0, playerid, -2321.5114746094, -1619.4454345703, 484.98388671875))
{ //PortaoAdmin
F_MoveObject( PortaoX1, -2321.5114746094, -1619.4454345703, 488.99388671875,3);
GameTextForPlayer(playerid, "~w~Portao X1 ~n~~b~Aberto!", 3000, 3);
SetTimer("PortaoX12", 3000, false);
}
return 1;
}
//----------------------------------{PortaoReporter}----------------------------------------
if(strcmp(cmd, "/portaoreporter", true) == 0 || strcmp(cmd, "/preporter", true) == 0)
{
if ((IsAJornal(playerid)) && PlayerToPoint(15.0, playerid, 777.80017089844, -1330.2664794922, 14.200000762939))
{ //PortaoAdmin
F_MoveObject( PortaoReporter, 777.80017089844, -1330.2664794922, 20.200000762939,3);
GameTextForPlayer(playerid, "~w~Portao Reporter ~n~~b~Aberto", 5000, 3);
SetTimer("PortaoReporter2", 5000, false);
}
return 1;
}
if(strcmp(cmd, "/portaoreporter2", true) == 0 || strcmp(cmd, "/preporter2", true) == 0)
{
if ((IsAJornal(playerid)) && PlayerToPoint(15.0, playerid, 777.97308349609, -1384.7303466797, 14.299999237061))
{ //PortaoAdmin
F_MoveObject( PortaoReporterr, 777.97308349609, -1384.7303466797, 20.299999237061,3);
GameTextForPlayer(playerid, "~w~Portao Reporter ~n~~b~Aberto", 5000, 3);
SetTimer("PortaoReporterr2", 5000, false);
}
return 1;
}
//----------------------------------{Portao Policia Civil}----------------------------------------
if(strcmp(cmd, "/ppc", true) == 0)
{
if ((IsACop(playerid)) && PlayerToPoint(15.0, playerid, -76.4191,-352.3814,1.4297))
{ //Portao PC Carro
F_MoveObject( PortaoPC, -75.570,-357.211,-6.960,3);
F_MoveObject( PortaoPC3, -75.598,-348.424,-6.908,3);
GameTextForPlayer(playerid, "~w~Portao PC ~n~~b~Aberto", 5000, 3);
SetTimer("PortaoPC2", 5000, false);
}
return 1;
}
//----------------------------------{Portao Taxi}----------------------------------------
if(strcmp(cmd, "/ptaxi", true) == 0)
{
if ((PlayerInfo[playerid][pMembro] == 10 || PlayerInfo[playerid][pLider] == 10) && PlayerToPoint(15.0, playerid, 959.8434,-1415.2617,13.3612))
{ //Portao Governo
F_MoveObject( PortaoTaxi, 970.840,-1415.794,15.151,3);//-1842.8439
GameTextForPlayer(playerid, "~w~Portao Taxi ~n~~b~Aberto", 5000, 3);
SetTimer("PortaoTaxi2", 5000, false);
}
return 1;
}
#include <a_samp>
new bool:open;
new ElevadorAdm;
public OnFilterScriptInit()
{
ElevadorAdm = CreateDynamicObject(2669,-2081.86425781,-736.01367188,32.41206360,0.00000000,0.00000000,90.00000000); //embaixo
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp("/ElevadorAdm", cmdtext, true))
{
if(open == false)
{
SendClientMessage(playerid, 0x38FF06FF,"|INFO| Elevador Movido !");//subindo
MoveDynamicObject(ElevadorAdm, -2081.8642578125, -736.013671875, 65.682090759277, 5);
open = true;
}
else if(open == true)
{
SendClientMessage(playerid, 0xFF0000AA,"|INFO| Elevador Movido!");//descendo
MoveDynamicObject(ElevadorAdm, -2081.8642578125, -736.013671875, 32.412063598633, 5);
open = false;
}
return 1;
}
return 0;
}