[Ajuda] Portoes - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Portoes (
/showthread.php?tid=347979)
[Ajuda] Portoes -
rene20 - 03.06.2012
O portao sai torto usei o programa pra move o portao de lugar e certo mas eu acho que bugo
PHP код:
gt3gate = F_CreateObject(971, 283.095062, -1542.899170, 25.510294, 0.0000, 0.0000, 326.2500);
gt3gate3 = F_CreateObject(971, 321.832672, -1488.615112, 25.527353, 0.0000, 0.0000, 323.6717);
PHP код:
if(strcmp(cmd, "/pb2", true) == 0)
{
if ((IsACop(playerid)) && PlayerToPoint(15.0, playerid, 310.60000610352, -1554.9000244141, 31.299999237061))
{ //GateGaragem
F_MoveObject( gt3gate, 309.29998779297, -1558, 26.89999961853,3);
GameTextForPlayer(playerid, "~w~Portao~n~~b~Aberto", 5000, 3);
SetTimer("gt3gate2", 5000, false);
}
return 1;
}
//----------------------------------{Portoes B.O.P.E}----------------------------------------
if(strcmp(cmd, "/pb3", true) == 0)
{
if ((IsACop(playerid)) && PlayerToPoint(15.0, playerid, 365.10000610352, -1469.8000488281, 31.299999237061))
{ //GateGaragem
F_MoveObject( gt3gate3, 365.10000610352, -1469.8000488281, 26.60000038147,3);
GameTextForPlayer(playerid, "~w~Portao ~n~~b~Aberto", 5000, 3);
SetTimer("gt3gate4", 5000, false);
}
return 1;
}
PLayer to point e a posiзao original do portao ele fechado
move object e pra onde ele vai
Re: [Ajuda] Portoes -
EditPawn - 03.06.2012
Use sу MoveObject ou MoveDynamicObject