Whats wrong with this? Its annoying!
#1

pawn Код:
CMD:gate(playerid, params[])
{
    static Float:degree, GateOpen;
    degree = 0.5;
    while(degree > 360.0) degree -= 360.0;
    while(degree < 0.0) degree += 360.0;
    if(PlayerInfo[playerid][pTeam] == 6)
    {
        if(GateOpen == 1)
        {
            MoveDynamicObject(ObjClosed, -85.40625000,-1120.18261719, degree, 0.5);
            //SetDynamicObjectRot(ObjClosed, -85.40625000,-1120.18261719, degree);
            GateOpen = 0;
        }
        else if(GateOpen == 0)
        {
            MoveDynamicObject(ObjClosed, -85.40692139,-1120.18322754, degree, 0.5);
            //SetDynamicObjectRot(ObjClosed, 0.0, 0.0, degree);
            GateOpen = 1;
        }
    }
    else
    {
        SendClientMessage(playerid, COLOR_ORANGE, "INFO: {FFFFFF}You are not an Courier.");
    }
    return 1;
}
Yes, I know it will be wrong, I just can't figure it out.
Reply


Messages In This Thread
Whats wrong with this? Its annoying! - by Luis- - 13.11.2011, 15:42
Re: Whats wrong with this? Its annoying! - by Calgon - 13.11.2011, 15:46
Re: Whats wrong with this? Its annoying! - by Luis- - 13.11.2011, 16:06
Re: Whats wrong with this? Its annoying! - by Luis- - 13.11.2011, 19:43
Re: Whats wrong with this? Its annoying! - by MadeMan - 13.11.2011, 19:50
Re: Whats wrong with this? Its annoying! - by Luis- - 13.11.2011, 19:56
Re: Whats wrong with this? Its annoying! - by Norn - 13.11.2011, 19:57
Re: Whats wrong with this? Its annoying! - by MadeMan - 13.11.2011, 20:00
Re: Whats wrong with this? Its annoying! - by Luis- - 28.11.2011, 23:14
Re: Whats wrong with this? Its annoying! - by =WoR=Varth - 29.11.2011, 05:04

Forum Jump:


Users browsing this thread: 1 Guest(s)