06.09.2011, 21:56
Meu portao nгo ta fechando....
pawn Код:
forward PortaoDetran1();
pawn Код:
new PortaoDetran;
pawn Код:
// Portao Detran
PortaoDetran = F_CreateObject(971,2071.13818359,-1868.08886719,16.09180832,0.00000000,0.00000000,89.80950928);//23 objetos de portгo
pawn Код:
//----------------------------------{PortaoDetran}----------------------------------------
if(strcmp(cmd, "/portaodetran", true) == 0 || strcmp(cmd, "/pdt", true) == 0)
{
if ((IsACop(playerid)) && PlayerToPoint(15.0, playerid, 2071.13818359,-1868.08886719,16.09180832))
{ //PortaoAdmin
F_MoveObject( PortaoReporter, 2071.13818359,-1868.08886719,6.09180832,3);
GameTextForPlayer(playerid, "~w~Portao Patio ~n~~b~Aberto", 5000, 3);
SetTimer("PortaoDetran1", 5000, false);
}
/*else
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "*** Vocк nao esta perto do portao ou nao e Reporter ***");
}*/
return 1;
}
pawn Код:
public PortaoDetran1() {
F_MoveObject(PortaoDetran,2071.13818359,-1868.08886719,16.09180832, 2);//Portao Detran Closed
return 1;
}