06.01.2010, 17:45
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?
Agora no public OnGameModeInit()
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);

