SA-MP Forums Archive
rotating Object wont work? - 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: rotating Object wont work? (/showthread.php?tid=525264)



rotating Object wont work? - UserName31 - 11.07.2014

hey i am trying to make a door open as rotating and stop at where i set it, here is my code i defined the closed and open, i want it to rotate like a door should open

and yes i have steamer

codes

PHP код:
cmd(bdopplayeridparams[])
{
        if(!
IsCop(playerid))//CreateObject(1495, 1498.55640, -1044.58679, 600.53223,   0.00000, 0.00000, -94.86004);
        
{
            return 
SendClientMessage(playeridCOLOR_RED"You are not a Bank Staff.");
        }
        if(
PlayerToPoint(2.0,playerid,1500.3375,-1044.1240,601.5460))
        {
            
// open for player
            
MoveObject(bDoor,1498.55640, -1044.58679600.53223,0.50);
            return 
1;
        }
        else 
SendClientMessage(playerid0xAA3333AA"[Error]: {FFFFFF} You are not around a control pad!");
        return 
1;
    }
    
cmd(bdclplayeridparams[])
{
        if(!
IsCop(playerid))
        {
            return 
SendClientMessage(playeridCOLOR_RED"You are not a Bank Staff.");
        }
        if(
PlayerToPoint(2.0,playerid,1500.3375,-1044.1240,601.5460))
        {
            
// close for player
            
MoveObject(bDoor,1498.55640, -1044.58679600.53223,0.50);
            return 
1;
        }
        else 
SendClientMessage(playerid0xAA3333AA"[Error]: {FFFFFF} You are not around a control pad!");
        return 
1;
    }