rotating Object wont work?
#1

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;
    } 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)