20.04.2014, 23:51
entao, fiz aqui so que o portao abre bugadamente --` poderia ver oque esta errado?
forward PortaoBope2(); (aqui a forward)
new PortaoBope; (new)
PortaoBope = CreateObject(980,1287.4000000,-1652.4000000,15.3000000,0.0000000,0.0000000,89.994 0200);
aqui o comando:
ai esta todo o portao, poderia me dizer oque esta errado ou oque falta? obrigado.
forward PortaoBope2(); (aqui a forward)
new PortaoBope; (new)
PortaoBope = CreateObject(980,1287.4000000,-1652.4000000,15.3000000,0.0000000,0.0000000,89.994 0200);
aqui o comando:
PHP код:
if(strcmp(cmd, "/pbope", true) == 0)
{
if ((IsACop(playerid)) && PlayerToPoint(25.0, playerid, 1287.4000000,-1652.4000000,20.6000000))
{ //Portao bope
MoveObject( PortaoBope, 980,1287.4000000,-1652.4000000,20.6000000,0.0000000,0.0000000,89.9940200);
GameTextForPlayer(playerid, "~w~Portao BOPE ~n~~b~Aberto", 5000, 3);
SetTimer("PortaoBope2", 5000, false);
SendClientMessage(playerid, TEAM_BALLAS_COLOR, "O Portгo Fecharб em 5 segundos.");
}
return true;
}
PHP код:
else if (PlayerToPoint(1, i,1287.4000000,-1652.4000000,15.3000000)) // /pbope automatico
{
MoveObject( PortaoBope, 980,1287.4000000,-1652.4000000,20.6000000);
GameTextForPlayer(i, "~w~Portaao bope ~n~~b~Aberto", 4000, 3);
SetTimer("PortaoBope2", 5000, false);
}
PHP код:
public PortaoBope2()
{
MoveObject(PortaoBope,1287.4000000,-1652.4000000,15.3000000, 2);//Portao BOPEClosed
return true;
}