Gate problem. realy big one.
#1

pawn Код:
CMD:gate(playerid,params)
{
    if(pInfo[playerid][fMember] > 2 && pInfo[playerid][fLeader] > 2)
    {
        return SendClientMessage(playerid,COLOR_RED,"You are not a NCR member");
    }
    else
    {
        new pName[MAX_PLAYER_NAME],str[128];
        MoveObject(NCRGate1,96.44, 1924.51, 39,0.00, 0.00, -88.14);
        MoveObject(NCRGate2, 96.44, 1924.51,7.13,0.00, 0.00, -88.14);
        GetPlayerName(playerid,pName,sizeof(pName));
        format(str,sizeof(str),"%s has opened the NCR main door",pName);
        ProxDetector(50.0, playerid, str,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    }
    return 1;
}

Why is that happening
Reply
#2

Bump help me please
Reply
#3

Why is what happening? More information please
Reply
#4

When i use /gate the gate won't open why.
Reply
#5

If you're creating the gates through the streamer (CreateDynamicObject) then you need to use MoveDynamicObject.
Reply
#6

First of all, give us the code of the creating object.

There is 2 reason:

1- You created a Dynamic object and you did MoveObject( MoveObject is for CreateObject and MoveDyanamicObject is for CreateDynamicObject etc. Depends of your streamer ).

2- You may be did MoveObject at the same position of the current object. So the object will move the his position so you wont see anything moving.

pawn Код:
MoveObject(NCRGate1,96.44, 1924.51, 39,0.00, 0.00, -88.14);
MoveObject(NCRGate2, 96.44, 1924.51,7.13,0.00, 0.00, -88.14);
You did 2 gates that move at different position but same X and Y, 1 that goes really high and 1 that stays near the ground.

EDIT: SuperViper has been faster than me...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)