Help gate[Rep]
#2

Be sure to use the correct parameters for MoveObject :
pawn Код:
MoveObject(objectid, Float:X, Float:Y, Float:Z, Float:Speed);
//            1         2        3        4           5
But you have:
pawn Код:
MoveObject (mafiachineza1,59,665.19006348, -1243.28930664, 8.72245789, 2.5);
//                1       2        3               4            5       6
Try this:
pawn Код:
#include <a_samp>


#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_BLUE 0x2641FEAA
#define FILTERSCRIPT
forward GateClose1();
forward GateClose2();

new mafiachineza1;
new mafiachineza2;
public OnFilterScriptInit()
{
    CreateObject(7033, 57.066192626953, -1532.0367431641, 8.7498607635498, 0, 0, 80);
    mafiachineza1 = CreateObject(980,664.89862061,-1309.79003906,15.23432922,0.00000000,0.00000000,180.00000000);
    mafiachineza2 = CreateObject(980,785.95721436,-1152.47314453,25.37189293,0.00000000,0.00000000,270.00000000);


    print("\n--------------------------------------");
    print("             Vama by Dan Barocu         ");
    print("--------------------------------------\n");
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp(cmdtext, "/vama1", true)==0)
    {
        MoveObject(mafiachineza1,58.6650745, -1309.4437, 13.4609, 5.5);
        SetTimer("GateClose1", 2000, 0);
        return 1;
    }
    if (strcmp(cmdtext, "/vama2", true)==0)
    {
        MoveObject(mafiachineza2,58.821594238281, -1526.1868896484, 1.1389622688293, 5.5);
        SetTimer("GateClose2", 2000, 0);
        return 1;
    }
    return 0;
}

public GateClose1()
{
    MoveObject (mafiachineza1,59.66519006348, -1243.28930664, 8.72245789, 2.5);
    return 1;
}
public GateClose2()
{
    MoveObject (mafiachineza2,59.78324310303, -1152.51770020, 19.47818375, 2.5);
    return 1;
}
Reply


Messages In This Thread
Help gate[Rep] - by Dan_Barocu - 25.01.2012, 12:26
AW: Help gate[Rep] - by Drebin - 25.01.2012, 13:12
Re: Help gate[Rep] - by Dan_Barocu - 25.01.2012, 15:16
Re: Help gate[Rep] - by milanosie - 25.01.2012, 15:20
Re: Help gate[Rep] - by Dan_Barocu - 25.01.2012, 15:22
Re: Help gate[Rep] - by Dan_Barocu - 25.01.2012, 16:03
Re: Help gate[Rep] - by Konstantinos - 25.01.2012, 16:15
Re: Help gate[Rep] - by Dan_Barocu - 25.01.2012, 17:10
AW: Help gate[Rep] - by Drebin - 25.01.2012, 18:10
Re: Help gate[Rep] - by milanosie - 25.01.2012, 18:18

Forum Jump:


Users browsing this thread: 3 Guest(s)