//----------------------------------{Portao FBI}---------------------------------------- if(strcmp(cmd, "/pfbi", true) == 0) { if ((PlayerInfo[playerid][pMembro] == 26 || PlayerInfo[playerid][pLider] == 26) && PlayerToPoint(15.0, playerid, 1518.8899,-1453.1156,14.2057)) { //GateGaragem MoveObject( portaofbi, 1523.6569824219, -1450.8671875, 15.320266723633,3); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* %s Abriu Este Portao!", sendername); ProxDetector(4.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); GameTextForPlayer(playerid, "~y~Aberto", 5000, 3); SetTimer("portaofbi", 5000, false); } else { SendClientMessage(playerid, COLOR_DBLUE, "*** Voce nao esta perto do portao ou nao e do FBI ***"); } return 1; }
portaofbi = CreateObject(980, 1534.3934326172, -1451.2901611328, 15.163833618164, 0, 0, 0);
Originally Posted by Suporte_bnv
Ola Galera eu crei um portao pra tal gang abrilo mais estou com uma duvida pois ele so abre nao fecha alguem poderia me ajudar?
Code:
//----------------------------------{Portao FBI}---------------------------------------- if(strcmp(cmd, "/pfbi", true) == 0) { if ((PlayerInfo[playerid][pMembro] == 26 || PlayerInfo[playerid][pLider] == 26) && PlayerToPoint(15.0, playerid, 1518.8899,-1453.1156,14.2057)) { //GateGaragem MoveObject( portaofbi, 1523.6569824219, -1450.8671875, 15.320266723633,3); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* %s Abriu Este Portao!", sendername); ProxDetector(4.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); GameTextForPlayer(playerid, "~y~Aberto", 5000, 3); SetTimer("portaofbi", 5000, false); } else { SendClientMessage(playerid, COLOR_DBLUE, "*** Voce nao esta perto do portao ou nao e do FBI ***"); } return 1; } Code:
portaofbi = CreateObject(980, 1534.3934326172, -1451.2901611328, 15.163833618164, 0, 0, 0); |
// colocar no нniciio:
forward FecharPortaoFBI();
if(strcmp(cmd, "/pfbi", true) == 0)
{
if((PlayerInfo[playerid][pMembro] == 26 || PlayerInfo[playerid][pLider] == 26) && PlayerToPoint(15.0, playerid, 1518.8899,-1453.1156,14.2057))
{ //GateGaragem
MoveObject(portaofbi, 1523.6569824219, -1450.8671875, 15.320266723633,3);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s Abriu Este Portao!", sendername);
ProxDetector(4.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GameTextForPlayer(playerid, "~y~Aberto", 5000, 3);
SetTimer("FecharPortaoFBI", 5000, false);
}
else SendClientMessage(playerid, COLOR_DBLUE, "*** Voce nao esta perto do portao ou nao e do FBI ***");
}
return 1;
}
// no final ou inнcio do script
public FecharPortaoFBI() MoveObject(portaofbi, 1534.3934326172, -1451.2901611328, 15.163833618164, 3);
Originally Posted by [SFP
$ucr3[CX] « ]
A pouco tempo estavas chamando nos de "nerds" nгo й? E agora quer a ajuda dos "nerds"? Tomara que eles aн te ajudem, pois eu nгo irei ajudar. |
Originally Posted by [VGS
Protioso_OC ]
Quote:
|
Originally Posted by [SFP
$ucr3[CX] « ]
Tomara que eles aн te ajudem, pois eu nгo irei ajudar. |
Originally Posted by [SFP
$ucr3[CX] « ]
Quote:
|