SA-MP Forums Archive
Gate Not Moving - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Gate Not Moving (/showthread.php?tid=597408)



Gate Not Moving - vassilis - 30.12.2015

MYBAD


Re: Gate Not Moving - CrunchxNoy - 30.12.2015

Try This :
Код:
        ArmyGate0 = CreateObject(19447,2763.120,-2382.116,13.958,0.000,0.000,91.599,-1,-1,-1,300.000,300.000); 
        SetObjectMaterial(ArmyGate0, 0, 10850, "bakerybit2_sfse", "GB_truckdepot29", 0x00000000); 

    CMD:opengate(playerid,params[]) 
    { 
        #pragma unused params 
        if(IsPlayerInRangeOfPoint(playerid,4.0, 2763.120,-2382.116,13.958)) //army 
        { 
            MoveObject(ArmyGate0,2763.159,-2380.486,15.844,0.000,89.400,91.800,1.00); 
        } 
        return 1; 
    }



Re: Gate Not Moving - vassilis - 30.12.2015

Quote:
Originally Posted by CrunchxNoy
Посмотреть сообщение
Try This :
Код:
        ArmyGate0 = CreateObject(19447,2763.120,-2382.116,13.958,0.000,0.000,91.599,-1,-1,-1,300.000,300.000); 
        SetObjectMaterial(ArmyGate0, 0, 10850, "bakerybit2_sfse", "GB_truckdepot29", 0x00000000); 

    CMD:opengate(playerid,params[]) 
    { 
        #pragma unused params 
        if(IsPlayerInRangeOfPoint(playerid,4.0, 2763.120,-2382.116,13.958)) //army 
        { 
            MoveObject(ArmyGate0,2763.159,-2380.486,15.844,0.000,89.400,91.800,1.00); 
        } 
        return 1; 
    }
It's ok thanks for trying to help me the problem is that i had problem with parametres i fixed it alone .