23.10.2012, 17:39
pois й to procurando o code com bug, enquanto isso analise esses code pra ver se nгo tem erro, dei uma analisada rapida e parece limpo:
ESSE CODE Й DO SISTEMA DE ENTRAR EM ORG CARGO 4 PARA SУCIOS:
ESSE Й O CODE DO COMANDO PARA ABRIR OS PORTХES:
ESSE CODE Й DO SISTEMA DE ENTRAR EM ORG CARGO 4 PARA SУCIOS:
pawn Код:
}
if(strcmp(cmd, "/pm", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pSocio] >= 1)
{
PlayerInfo[playerid][pMembro] = 1;
SetPlayerColor(playerid, COR_PM);
PlayerInfo[playerid][pCargo] = 4;
SetPlayerSkin(playerid,280);
PlayerInfo[playerid][pSkin] = 280;
ConviteInfoOrg(PlayerName(playerid), 1, 1);
SetPlayerSpawn(playerid);
}
}
return true;
}
if(strcmp(cmd, "/bope", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pSocio] >= 1)
{
PlayerInfo[playerid][pMembro] = 2;
SetPlayerColor(playerid, COR_BOPE);
PlayerInfo[playerid][pCargo] = 4;
SetPlayerSkin(playerid,285);
PlayerInfo[playerid][pSkin] = 285;
ConviteInfoOrg(PlayerName(playerid), 2, 1);
SetPlayerSpawn(playerid);
}
}
return true;
}
if(strcmp(cmd, "/gn", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pSocio] >= 1)
{
PlayerInfo[playerid][pMembro] = 3;
SetPlayerColor(playerid, COR_EXE);
PlayerInfo[playerid][pCargo] = 4;
SetPlayerSkin(playerid,287);
PlayerInfo[playerid][pSkin] = 287;
ConviteInfoOrg(PlayerName(playerid), 3, 1);
SetPlayerSpawn(playerid);
}
}
return true;
}
if(strcmp(cmd, "/aztecas", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pSocio] >= 1)
{
PlayerInfo[playerid][pMembro] = 5;
SetPlayerColor(playerid, COR_AZTECAS);
PlayerInfo[playerid][pCargo] = 4;
SetPlayerSkin(playerid,115);
PlayerInfo[playerid][pSkin] = 115;
ConviteInfoOrg(PlayerName(playerid), 5, 1);
SetPlayerSpawn(playerid);
}
}
return true;
}
if(strcmp(cmd, "/hamas", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pSocio] >= 1)
{
PlayerInfo[playerid][pMembro] = 6;
SetPlayerColor(playerid, COR_HAMAS);
PlayerInfo[playerid][pCargo] = 4;
SetPlayerSkin(playerid,122);
PlayerInfo[playerid][pSkin] = 122;
ConviteInfoOrg(PlayerName(playerid), 6, 1);
SetPlayerSpawn(playerid);
}
}
return true;
}
if(strcmp(cmd, "/prefeitura", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pSocio] >= 1)
{
PlayerInfo[playerid][pMembro] = 7;
SetPlayerColor(playerid, COR_PRE);
PlayerInfo[playerid][pCargo] = 4;
SetPlayerSkin(playerid,164);
PlayerInfo[playerid][pSkin] = 164;
ConviteInfoOrg(PlayerName(playerid), 7, 1);
SetPlayerSpawn(playerid);
}
}
return true;
}
if(strcmp(cmd, "/hitman", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pSocio] >= 1)
{
PlayerInfo[playerid][pMembro] = 8;
SetPlayerColor(playerid, COR_HITMAN);
PlayerInfo[playerid][pCargo] = 4;
SetPlayerSkin(playerid,165);
PlayerInfo[playerid][pSkin] = 165;
ConviteInfoOrg(PlayerName(playerid), 8, 1);
SetPlayerSpawn(playerid);
}
}
return true;
}
if(strcmp(cmd, "/reporter", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pSocio] >= 1)
{
PlayerInfo[playerid][pMembro] = 9;
SetPlayerColor(playerid, COR_REP);
PlayerInfo[playerid][pCargo] = 4;
SetPlayerSkin(playerid,148);
PlayerInfo[playerid][pSkin] = 148;
ConviteInfoOrg(PlayerName(playerid), 9, 1);
SetPlayerSpawn(playerid);
}
}
return true;
}
if(strcmp(cmd, "/taxista", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pSocio] >= 1)
{
PlayerInfo[playerid][pMembro] = 10;
SetPlayerColor(playerid, COR_TAXI);
PlayerInfo[playerid][pCargo] = 4;
SetPlayerSkin(playerid,255);
PlayerInfo[playerid][pSkin] = 255;
ConviteInfoOrg(PlayerName(playerid), 10, 1);
SetPlayerSpawn(playerid);
}
}
return true;
}
if(strcmp(cmd, "/cosa", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pSocio] >= 1)
{
PlayerInfo[playerid][pMembro] = 12;
SetPlayerColor(playerid, COR_COSA);
PlayerInfo[playerid][pCargo] = 4;
SetPlayerSkin(playerid,111);
PlayerInfo[playerid][pSkin] = 111;
ConviteInfoOrg(PlayerName(playerid), 12, 1);
SetPlayerSpawn(playerid);
}
}
return true;
}
if(strcmp(cmd, "/yakuza", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pSocio] >= 1)
{
PlayerInfo[playerid][pMembro] = 13;
SetPlayerColor(playerid, COR_YAK);
PlayerInfo[playerid][pCargo] = 4;
SetPlayerSkin(playerid,203);
PlayerInfo[playerid][pSkin] = 203;
ConviteInfoOrg(PlayerName(playerid), 13, 1);
SetPlayerSpawn(playerid);
}
}
return true;
}
if(strcmp(cmd, "/pf", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pSocio] >= 1)
{
PlayerInfo[playerid][pMembro] = 11;
SetPlayerColor(playerid, COR_PF);
PlayerInfo[playerid][pCargo] = 4;
SetPlayerSkin(playerid,286);
PlayerInfo[playerid][pSkin] = 286;
ConviteInfoOrg(PlayerName(playerid), 11, 1);
SetPlayerSpawn(playerid);
}
}
return true;
}
if(strcmp(cmd, "/groove", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pSocio] >= 1)
{
PlayerInfo[playerid][pMembro] = 14;
SetPlayerColor(playerid, COR_GRO);
PlayerInfo[playerid][pCargo] = 4;
SetPlayerSkin(playerid,105);
PlayerInfo[playerid][pSkin] = 105;
ConviteInfoOrg(PlayerName(playerid), 14, 1);
SetPlayerSpawn(playerid);
}
}
return true;
}
if(strcmp(cmd, "/alqaeda", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pSocio] >= 1)
{
PlayerInfo[playerid][pMembro] = 15;
SetPlayerColor(playerid, COR_AL);
PlayerInfo[playerid][pCargo] = 4;
SetPlayerSkin(playerid,30);
PlayerInfo[playerid][pSkin] = 30;
ConviteInfoOrg(PlayerName(playerid), 15, 1);
SetPlayerSpawn(playerid);
}
}
return true;
}
if(strcmp(cmd, "/pc", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pSocio] >= 1)
{
PlayerInfo[playerid][pMembro] = 16;
SetPlayerColor(playerid, COR_PC);
PlayerInfo[playerid][pCargo] = 4;
SetPlayerSkin(playerid,186);
PlayerInfo[playerid][pSkin] = 186;
ConviteInfoOrg(PlayerName(playerid), 16, 1);
SetPlayerSpawn(playerid);
}
}
return true;
}
if(strcmp(cmd, "/ballas", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pSocio] >= 1)
{
PlayerInfo[playerid][pMembro] = 17;
SetPlayerColor(playerid, COR_BALLAS);
PlayerInfo[playerid][pCargo] = 4;
SetPlayerSkin(playerid,103);
PlayerInfo[playerid][pSkin] = 103;
ConviteInfoOrg(PlayerName(playerid), 17, 1);
SetPlayerSpawn(playerid);
}
}
return true;
}
if(strcmp(cmd, "/vagos", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pSocio] >= 1)
{
PlayerInfo[playerid][pMembro] = 18;
SetPlayerColor(playerid, COR_VAGOS);
PlayerInfo[playerid][pCargo] = 4;
SetPlayerSkin(playerid,109);
PlayerInfo[playerid][pSkin] = 109;
ConviteInfoOrg(PlayerName(playerid), 18, 1);
SetPlayerSpawn(playerid);
}
}
return true;
}
if(strcmp(cmd, "/cv", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pSocio] >= 1)
{
PlayerInfo[playerid][pMembro] = 19;
SetPlayerColor(playerid, 0xF6000000);
PlayerInfo[playerid][pCargo] = 4;
SetPlayerSkin(playerid,19);
PlayerInfo[playerid][pSkin] = 19;
ConviteInfoOrg(PlayerName(playerid), 1, 1);
SetPlayerSpawn(playerid);
}
}
return true;
}
if(strcmp(cmd, "/sons", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pSocio] >= 1)
{
PlayerInfo[playerid][pMembro] = 20;
SetPlayerColor(playerid, COR_SONS);
PlayerInfo[playerid][pCargo] = 4;
SetPlayerSkin(playerid,247);
PlayerInfo[playerid][pSkin] = 247;
ConviteInfoOrg(PlayerName(playerid), 20, 1);
SetPlayerSpawn(playerid);
}
}
return true;
}
if(strcmp(cmd, "/drift", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pSocio] >= 1)
{
PlayerInfo[playerid][pMembro] = 21;
SetPlayerColor(playerid, COR_DRIFTERS);
PlayerInfo[playerid][pCargo] = 4;
SetPlayerSkin(playerid,101);
PlayerInfo[playerid][pSkin] = 101;
ConviteInfoOrg(PlayerName(playerid), 21, 1);
SetPlayerSpawn(playerid);
}
}
return true;
}
if(strcmp(cmd, "/triad", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pSocio] >= 1)
{
PlayerInfo[playerid][pMembro] = 22;
SetPlayerColor(playerid, COR_TRIADS);
PlayerInfo[playerid][pCargo] = 4;
SetPlayerSkin(playerid,118);
PlayerInfo[playerid][pSkin] = 277;
ConviteInfoOrg(PlayerName(playerid), 22, 1);
SetPlayerSpawn(playerid);
}
}
return true;
}
if(strcmp(cmd, "/taliban", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pSocio] >= 1)
{
PlayerInfo[playerid][pMembro] = 23;
SetPlayerColor(playerid, COR_FARC);
PlayerInfo[playerid][pCargo] = 4;
SetPlayerSkin(playerid,112);
PlayerInfo[playerid][pSkin] = 277;
ConviteInfoOrg(PlayerName(playerid), 4, 1);
SetPlayerSpawn(playerid);
}
}
return true;
}
if(strcmp(cmd, "/samu", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pSocio] >= 1)
{
PlayerInfo[playerid][pMembro] = 4;
SetPlayerColor(playerid, COR_SAMU);
PlayerInfo[playerid][pCargo] = 4;
SetPlayerSkin(playerid,274);
PlayerInfo[playerid][pSkin] = 274;
ConviteInfoOrg(PlayerName(playerid), 4, 1);
SetPlayerSpawn(playerid);
}
}
return true;
}
ESSE Й O CODE DO COMANDO PARA ABRIR OS PORTХES:
pawn Код:
//----------------------------------{Portoes LS}----------------------------------------
if(strcmp(cmd, "/pe", true) == 0)
{
if ((IsACop(playerid)) && PlayerToPoint(15.0, playerid, 1546.8681640625, -1627.3585205078, 15.156204223633))
{ //GateGaragem
MoveObject( PDPMLS, 1546.86816, -1627.35852, 7.15620,3.0,0.0,0.0,90.0);
GameTextForPlayer(playerid, "~w~Garagem Externa ~n~~b~Aberta", 4200, 3);
SetTimer("pd2", 4200, false);
}
return true;
}
//----------------------------------{Portoes LS2}----------------------------------------
if(strcmp(cmd, "/pg", true) == 0)
{
if ((IsACop(playerid)) && PlayerToPoint(15.0, playerid, 1588.555786, -1637.811157, 15.911808))
{ //GateGaragem
MoveObject( PDGARAGE, 1588.195,-1637.969, 20.086790,3,0.0,0.0,0.0);
GameTextForPlayer(playerid, "~w~Garagem Interna ~n~~b~Aberta", 5000, 3);
SetTimer("pd3", 5000, false);
}
return true;
}
//----------------------------------{Portoes DP5}----------------------------------------
if(strcmp(cmd, "/pcg", true) == 0)
{
if ((IsACop(playerid)) && PlayerToPoint(15.0, playerid, 2334.757568, 2443.675537, 8.250650))
{ //GateGaragem
MoveObject( gatepf2, 2334.757568, 2443.675537, 12.200590,3,0.0, 0.0, 236.2500);
GameTextForPlayer(playerid, "~b~Aberto", 5000, 3);
SetTimer("PFClosed2", 5000, false);
}
return true;
}
//----------------------------------{Portoes DP6}----------------------------------------
if(strcmp(cmd, "/pce", true) == 0)
{
if ((IsACop(playerid)) && PlayerToPoint(15.0, playerid, 2293.928467, 2499.322021, 5.825822))
{ //GateGaragem
MoveObject( gatepf3, 2293.928467, 2506.294678, 5.825822,3,0.0, 0.0, 90.0);
GameTextForPlayer(playerid, "~b~Aberto", 5000, 3);
SetTimer("PFClosed3", 5000, false);
}
return true;
}
//----------------------------------{Portoes POLICIA FEDERAL}----------------------------------------
if(strcmp(cmd, "/pcp", true) == 0)
{
if ((IsACop(playerid)) && PlayerToPoint(20.0, playerid, 923.5170, -1209.0148, 18.7499))
{
MoveObject( portaoPC1, 923.56256103516, -1209.1229248047, 18.749954223633,3,0.0,0.0,270.0);
MoveObject( portaoPC2, 923.56256103516, -1209.1229248047, 18.749954223633,3,0.0,0.0,270.0);
GameTextForPlayer(playerid, "~w~Portao PC ~n~~b~Aberto", 5000, 3);
SetTimer("PortaoPoliciaC1", 5000, false);
}
return true;
}
if(strcmp(cmd, "/ptpc",true) == 0)
{
if ((IsACop(playerid)) && PlayerToPoint(15.0, playerid, 922.45611572266, -1208.7191162109, 17.982734680176) || PlayerInfo[playerid][pEmprego] == 2)
{
MoveObject( PortaooPC, 922.40142822266, -1209.5806884766, 22.020156860352,3);
GameTextForPlayer(playerid, "~w~Portao~n~~b~Aberto", 5000, 3);
SetTimer("PortaooPC2", 5000, false);
}
return true;
}
//----------------------------------{Portoes B.O.P.E}----------------------------------------
if(strcmp(cmd, "/pb", true) == 0)
{
if ((IsACop(playerid)) && PlayerToPoint(15.0, playerid, 283.095062, -1542.899170, 25.510294) || PlayerToPoint(15.0, playerid, 321.832672, -1488.615112, 25.527353) && PlayerToPoint(15.0, playerid, 321.832672, -1488.615112, 25.527353))
{ //GateGaragem
MoveObject( gt3gate, 283.095062, -1542.899170, 33.385311,3,0.0, 0.0, 326.2500);
MoveObject( gt3gate3, 321.832672, -1488.615112, 33.777353,3,0.0, 0.0, 323.6717);
GameTextForPlayer(playerid, "~w~Portao Bope ~n~~b~Aberto", 5000, 3);
SetTimer("gt3gate2", 5000, false);
}
return true;
}
//----------------------------------{Exercito}----------------------------------------
if(strcmp(cmd, "/abrirgn", true) == 0)
{
if ((IsACop(playerid)) && PlayerToPoint(15.0, playerid, -1531.3978271484, 482.25979614258, 8.9530792236328))
{ //GateGaragem
MoveObject(PDEx, -1531.3978271484, 482.25979614258, 13.9530792236328,3,0.0,0.0,360);
GameTextForPlayer(playerid, "~w~Portao Exercito ~n~~b~Aberto", 5000, 3);
SetTimer("PDEx2", 5000, false);
}
return true;
}
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))
{
MoveObject(pyakuza1, 677.862,-1309.311,15.234,3,0.0,0.0,0.0);
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))
{
MoveObject( pyakuza3, 785.128,-1162.442,25.430,3,0.0,0.0,88.522);
GameTextForPlayer(playerid, "~w~Portao Yakuza ~n~~b~Aberto", 5000, 3);
SetTimer("fecharyakuza3", 5000, false);
}
}
return true;
}
if(strcmp(cmd, "/acn", true) == 0)
{
if (PlayerInfo[playerid][pMembro] == 12 || PlayerInfo[playerid][pLider] == 12)
{
if(PlayerToPoint(15.0, playerid, 321.39999389648, -1188.1999511719, 77.099998474121))
{
MoveObject(acn, 321.39999389648, -1188.1999511719, 66.099998474121,3,0.0,359, 37.996215);
GameTextForPlayer(playerid, "~w~Portao Cosa Nostra ~n~~b~Aberto", 5000, 3);
SetTimer("fecharacn", 5000, false);
}
}
return true;
}
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))
{
MoveObject( PortaoTaxi, 970.840,-1415.794,15.151,3,0.0,0.0,0.0);
GameTextForPlayer(playerid, "~w~Portao Taxi ~n~~b~Aberto", 5000, 3);
SetTimer("PortaoTaxi2", 5000, false);
}
return true;
}
//----------------------------------{Portao GOVERNO}----------------------------------------
if(strcmp(cmd, "/pgov", true) == 0)
{
if ((IsAGOV(playerid)) && PlayerToPoint(15.0, playerid, 1539.2235107422, -1838.2176513672, 15.320266723633))
{ //Portao Governo
MoveObject( PortaoGov, 1539.2235107422, -1848.2176513672, 15.320266723633,3,0.0, 0.0, 91.30950);
GameTextForPlayer(playerid, "~w~Portao Governo ~n~~b~Aberto", 5000, 3);
SetTimer("PortaoGov2", 5000, false);
}
return true;
}
if(strcmp(cmd, "/ppre", true) == 0)
{
if ((IsAGOV(playerid)) && PlayerToPoint(15.0, playerid, 369.15893554688, 162.35037231445, 1028.6030273438))
{ //Portao Governo
MoveObject( PortaoPre, 369.15893554688, 162.35037231445, 1030.9030273438,3, 0.0, 0.0, 270.67565);
GameTextForPlayer(playerid, "~w~Porta Prefeitura ~n~~b~Aberta", 5000, 3);
SetTimer("PortaoPre2", 5000, false);
}
return true;
}
//========================= PORTAO HITMANS ============================================================================================
if(strcmp(cmd, "/phit", true) == 0)
{
if (PlayerInfo[playerid][pMembro] == 8 || PlayerInfo[playerid][pLider] == 8 && PlayerToPoint(15.0, playerid, 956.80456542969, -1503.0864257813, 15.321235656738))
{
MoveObject( PortaoHit1,956.80456542969, -1503.0864257813, 8.321235656738,3,0.0,0.0,0.0);
GameTextForPlayer(playerid, "~w~Portao Hitmans ~n~~b~Aberto", 5000, 3);
SetTimer("PortaoHit3", 5000, false);
}
return true;
}
if(strcmp(cmd, "/ptriad", true) == 0)
{
if (PlayerInfo[playerid][pMembro] == 22 || PlayerInfo[playerid][pLider] == 22 && PlayerToPoint(15.0, playerid, 1620.704956, -1861.262084, 15.3246479))
{
MoveObject( PortaoTriad1,1620.7049560547, -1861.2620849609, 9.324647903442,3, 0.0, 0.0, 180.0);
GameTextForPlayer(playerid, "~w~Portao Triads ~n~~b~Aberto", 5000, 3);
SetTimer("PortaoTriad2", 5000, false);
}
return true;
}
//=================================================================================================================================
//PORTAO RALLY
if(strcmp(cmd, "/portaorally", true) == 0)
{
if (PlayerInfo[playerid][pAdmin] >= 1 && PlayerToPoint(15.0, playerid, -2368.4670410156, -2192.6381835938, 36.037666320801))
{ //PortaoAdmin
MoveObject( PortaoRally, -2368.4670410156, -2192.6381835938, 42.037666320801,3, 0, 0, 292.51049);
GameTextForPlayer(playerid, "~w~Pista de Rally ~n~~b~Aberta", 25000, 3);
SetTimer("PortaoRally2", 25000, false);
}
return true;
}
//----------------------------------{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
MoveObject( PortaoReporter, 777.80017089844, -1330.2664794922, 20.200000762939,3,0.0,0.0,0.0);
GameTextForPlayer(playerid, "~w~Portao ~y~Rede Globo ~n~~b~Aberto", 5000, 3);
SetTimer("PortaoReporter2", 5000, false);
}
return true;
}
//----------------------------------{Portao Policia Federal}----------------------------------------
if(strcmp(cmd, "/ppf", true) == 0)
{
if ((IsACop(playerid)) && PlayerToPoint(15.0, playerid, -76.4191,-352.3814,1.4297))
{ //Portao PC Carro
MoveObject( PortaoPC, -75.570,-357.211,-6.960,3,0.0,0.0,-89.381);
MoveObject( PortaoPC3, -75.598,-348.424,-6.908,3,0.0,0.859,-269.863);
GameTextForPlayer(playerid, "~w~Portao PF ~n~~b~Aberto", 5000, 3);
SetTimer("PortaoPC2", 5000, false);
}
return true;
}
pawn Код:
if((newkeys == KEY_HORN) && (IsPlayerInAnyVehicle(playerid)))
{
if(gTeam[playerid] == 2 || IsACop(playerid) || IsAGOV(playerid))
{
OnPlayerCommandText(playerid,"/pe");
OnPlayerCommandText(playerid,"/pe2");
OnPlayerCommandText(playerid,"/pg");
OnPlayerCommandText(playerid,"/abrirgn");
OnPlayerCommandText(playerid,"/pc");
OnPlayerCommandText(playerid,"/pb");
OnPlayerCommandText(playerid,"/pce");
OnPlayerCommandText(playerid,"/pcg");
OnPlayerCommandText(playerid,"/ppc");
}
if(IsAGOV(playerid))
{
OnPlayerCommandText(playerid,"/pgov");
}
if(IsAJornal(playerid))
{
OnPlayerCommandText(playerid,"/portaoreporter");
}
if(IsATaxi(playerid))
{
OnPlayerCommandText(playerid,"/ptaxi");
}
if(PlayerInfo[playerid][pMembro] == 13 || PlayerInfo[playerid][pLider] == 13)
{
OnPlayerCommandText(playerid,"/pyakuza");
}
if(PlayerInfo[playerid][pMembro] == 12 || PlayerInfo[playerid][pLider] == 12)
{
OnPlayerCommandText(playerid,"/acn");
}
if(PlayerInfo[playerid][pMembro] == 11 || PlayerInfo[playerid][pLider] == 11)
{
OnPlayerCommandText(playerid,"/ppf");
}
if(PlayerInfo[playerid][pMembro] == 8 || PlayerInfo[playerid][pLider] == 8)
{
OnPlayerCommandText(playerid,"/phit");
}
if(PlayerInfo[playerid][pMembro] == 22 || PlayerInfo[playerid][pLider] == 22)
{
OnPlayerCommandText(playerid,"/ptriad");
}
if((newkeys == KEY_HORN) && (IsPlayerInAnyVehicle(playerid)))
{
OnPlayerCommandText(playerid,"/Cativeiro");//Cativeiro
}
}
return true;