13.06.2011, 13:31
Quote:
eu uso esse aew
//TOPO new ptdpsf; //no OnGamemodeInit ptdpsf = CreateObject(974,239.62733459,119.13832855,1002.24 645996,0.00000000,0.00000000,270.00000000); //object(tall_fence) (1) //no OnPlayerCommandText if (strcmp(cmdtext, "/abrirpdp 1", true) ==0) { MoveObject(ptdpsf,239.62733459,119.13832855,999.47 119141, 2); //CORDENADAS DELE ABERTO SendClientMessage(playerid,0x00FFFF96,"Vocк Abriu Uma Porta Dentro do Departamento de Policia. "); return 1; } if (strcmp(cmdtext, "/fecharpdp 1", true) ==0) { MoveObject(ptdpsf,239.62733459,119.13832855,1002.2 4645996, 2); //CORDENADAS DELE FECHADO SendClientMessage(playerid,0x00FFFF96,"Vocк Fechou uma Porta Dentro do Departamento de Policia. "); return 1; } |
Код:
//----------------------------------{Portхes condomнnio}----------------------- if(strcmp("/ac", cmdtext, true) == 0) { F_MoveObject(PC,836.445,-2065.518,19.641, 2.0);//19.641 SendClientMessage(playerid,0x0000FFAA, "Abrindo Portгo."); return 1; } if(strcmp("/fc", cmdtext, true) == 0) { F_MoveObject(PC, 836.445,-2065.518,14.641, 2.0); SendClientMessage(playerid,0x0000FFAA, "Fechando Portгo."); return 1; } if(strcmp("/ac2", cmdtext, true) == 0) { F_MoveObject(PB, 808.732,-2220.295,1.815, 2.0); F_MoveObject(PB2, 808.732,-2200.250,1.815, 2.0); SendClientMessage(playerid,0x0000FFAA, "Abrindo Portгo."); return 1; } if(strcmp("/fc2", cmdtext, true) == 0) { F_MoveObject(PB, 808.732,-2252.371,1.815, 2.0); F_MoveObject(PB2, 808.732,-2232.343,1.815, 2.0); SendClientMessage(playerid,0x0000FFAA, "Fechando Portгo."); return 1; } //============================================================================== if(strcmp("/se", cmdtext, true) == 0) { F_MoveObject(ELEV, 931.759,-2232.181,11.345, 2.0); SendClientMessage(playerid,COLOR_WHITE, "Subindo o Elevador..."); return 1; } if(strcmp("/de", cmdtext, true) == 0) { SendClientMessage(playerid,COLOR_WHITE, "Descendo o Elevador..."); F_MoveObject(ELEV, 931.759,-2232.181,0.345, 2.0); return 1; } //----------------------------------{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); } else { SendClientMessage(playerid, COLOR_GREY, " Vocк nгo estб perto do portгo ou nгo й um Oficial "); } return 1; } //----------------------------------{Portoes DP2}---------------------------------------- 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); } else { SendClientMessage(playerid, COLOR_GREY, " Vocк nгo estб perto do portгo ou nгo й um Oficial "); } 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); } else { SendClientMessage(playerid, COLOR_GREY, " Vocк nгo estб perto do portгo ou nгo й um Oficial "); } 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); } /*else { SendClientMessage(playerid, COLOR_RED, "*** Vocк nao esta perto do portao ou nao e PM ***"); }*/ 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); } /*else { SendClientMessage(playerid, COLOR_RED, "*** Vocк nao esta perto do portao ou nao e PM ***"); }*/ 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); } /*else { SendClientMessage(playerid, COLOR_RED, "*** Vocк nao esta perto do portao ou nao e PC ***"); }*/ 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); } /*else { SendClientMessage(playerid, COLOR_RED, "*** Vocк nao esta perto do portao ou nao e PF ***"); }*/ 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); } /*else { SendClientMessage(playerid, COLOR_RED, "*** Vocк nao esta perto do portao ou nao e do B.O.P.E ***"); }*/ 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 PR ~n~~b~Aberto", 5000, 3); SetTimer("gt3gate2", 5000, false); } /*else { SendClientMessage(playerid, COLOR_RED, "*** Vocк nao esta perto do portao ou nao e do B.O.P.E ***"); }*/ 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 PR ~n~~b~Aberto", 5000, 3); SetTimer("gt3gate4", 5000, false); } /*else { SendClientMessage(playerid, COLOR_RED, "*** Vocк nao esta perto do portao ou nao e do B.O.P.E ***"); }*/ 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 { SendClientMessage(playerid, COLOR_RED, "*** Vocк nao esta perto do portao ou nao e do Exercito ***"); }*/ 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, "/pgov", true) == 0) { if ((IsAGOV(playerid)) && PlayerToPoint(15.0, playerid, 1539.2235107422, -1838.2176513672, 15.320266723633)) { //Portao Governo F_MoveObject( PortaoGov, 1539.2235107422, -1848.2176513672, 15.320266723633,3); GameTextForPlayer(playerid, "~w~Portao Governo ~n~~b~Aberto", 5000, 3); SetTimer("PortaoGov2", 5000, false); } /*else { SendClientMessage(playerid, COLOR_RED, "*** Vocк nao esta perto do portao ou nao e do Governo***"); }*/ return 1; } 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 ~n~~b~Aberta", 5000, 3); SetTimer("PortaoPre2", 5000, false); } /*else { SendClientMessage(playerid, COLOR_RED, "*** Vocк nao esta perto do portao ou nao e do Governo***"); }*/ 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 { SendClientMessage(playerid, COLOR_LIGHTBLUE, "*** Vocк nao esta perto do portao ou nao e Admin ***"); }*/ 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); } /*else { SendClientMessage(playerid, COLOR_LIGHTBLUE, "*** Vocк nao esta perto do portao ou nao e Admin ***"); }*/ 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); } /*else { SendClientMessage(playerid, COLOR_LIGHTBLUE, "*** Vocк nao esta perto do portao ou nao e Reporter ***"); }*/ 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); } /*else { SendClientMessage(playerid, COLOR_LIGHTBLUE, "*** Vocк nao esta perto do portao ou nao e Reporter ***"); }*/ 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); } /*else { SendClientMessage(playerid, COLOR_RED, "*** Vocк nao esta perto do portao ou nao e da Policia Civil***"); }*/ 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); } /*else { SendClientMessage(playerid, COLOR_GREY, " Vocк nгo estб perto do portгo ou vocк nгo й Taxista !"); }*/ return 1; }
Код:
//Gates forward PDEx2(); forward PortaoRally2(); forward PortaoX12(); forward PortaoPC2(); forward PortaoReporterr2(); forward PortaoReporter2(); forward PortaoBallas(); forward PortaoBope(); forward PortaoTaxi2(); forward pd1(); forward pd2(); forward gt3gate2(); forward gt3gate4(); forward pd3(); forward pd4(); forward pd5(); forward pd6(); forward pd7(); forward GaragemDpClosed(); forward GaragemDpClosed2(); forward pcclosed(); forward PFClosed2(); forward PFClosed3(); forward PCClosed(); forward PCClosed2(); forward PortaoGov2(); forward PortaoPre2();
Код:
//Portoes new pyakuza1, pyakuza3, acn; forward fecharyakuza1(); forward fecharyakuza3(); new PDEx; new PortaoRally; new PortaoX1; new PortaoPC; new PortaoPC3; new PortaoReporter; new PortaoReporterr; new PortaoTaxi; new PDDOORa; new PDDOORb; new PDDOORc; new PDGATE; new PDGARAGE; new PDELEVATOR; new gatepf3; new gatepf2; new gt3gate; new gt3gate3; new PortaoGov; new PortaoPre;
Код:
//====== [Portгo condomнnio ] === new ELEV; //ELVADOR QUE VAI PARA OS BARCOS new PC; //PORTAO PRINCIPAL new PB; // PORTAO QUE DOS BARCOS new PB2; //protao dos barcos //=====================================