SA-MP Forums Archive
[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(971283.095062, -1542.89917025.5102940.00000.0000326.2500);
    
gt3gate3 F_CreateObject(971321.832672, -1488.61511225.5273530.00000.0000323.6717); 
PHP код:
    if(strcmp(cmd"/pb2"true) == 0)
    {
        if ((
IsACop(playerid)) && PlayerToPoint(15.0playerid310.60000610352, -1554.900024414131.299999237061))
        { 
//GateGaragem
            
F_MoveObjectgt3gate309.29998779297, -155826.89999961853,3);
            
GameTextForPlayer(playerid"~w~Portao~n~~b~Aberto"50003);
            
SetTimer("gt3gate2"5000false);
        }
          return 
1;
    }
//----------------------------------{Portoes B.O.P.E}----------------------------------------
    
if(strcmp(cmd"/pb3"true) == 0)
    {
        if ((
IsACop(playerid)) && PlayerToPoint(15.0playerid365.10000610352, -1469.800048828131.299999237061))
        { 
//GateGaragem
            
F_MoveObjectgt3gate3365.10000610352, -1469.800048828126.60000038147,3);
            
GameTextForPlayer(playerid"~w~Portao ~n~~b~Aberto"50003);
            
SetTimer("gt3gate4"5000false);
        }
          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