SA-MP Forums Archive
Need help wich move objcet all! - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Need help wich move objcet all! (/showthread.php?tid=193242)



Need help wich move objcet all! - doreto - 25.11.2010

i need help is all OK but when i go and use command dont move pls help me i try to make like ferry boat

thes is cordinas to move

CreateObject(10771, 4511.4936523438, -2269.9345703125, 0.75, 0, 0, 0);
CreateObject(3114, 4454.30859375, -2255.162109375, 11.911817550659, 0, 0, 0);
CreateObject(3115, 4412.5239257813, -2269.9189453125, 12.201336860657, 0, 0, 0);
CreateObject(3113, 4402.8369140625, -2269.732421875, 0, 0, 0, 0);
CreateObject(11145, 4446.7719726563, -2269.30859375, 7.6000051498413, 0, 0, 0);
CreateObject(11146, 4571.9233398438, -2269.0556640625, 7.489725112915, 0, 0, 0);
CreateObject(10770, 4514.7299804688, -2277.4499511719, 30.982494354248, 0, 0, 0);
CreateObject(11237, 4514.5244140625, -2277.423828125, 30.689376831055, 0, 0, 0);

and to back here:

CreateObject(10771, 2666.4169921875, -2269.9345703125, 0.75, 0, 0, 0);
CreateObject(3114, 2609.6616210938, -2255.162109375, 11.911817550659, 0, 0, 0);
CreateObject(3115, 2568.2590332031, -2269.9191894531, 12.201336860657, 0, 0, 0);
CreateObject(3113, 2557.3186035156, -2269.732421875, 0, 0, 0, 0);
CreateObject(11145, 2600.2277832031, -2269.30859375, 7.6000051498413, 0, 0, 0);
CreateObject(11146, 2655.533203125, -2269.0559082031, 7.489725112915, 0, 0, 0);
CreateObject(10770, 2669.5471191406, -2277.4499511719, 30.982494354248, 0, 0, 0);
CreateObject(11237, 2670.7590332031, -2277.423828125, 30.689376831055, 0, 0, 0);

so pls help me


Re: Need help wich move objcet all! - doreto - 25.11.2010

pls help i know is moveobject but in game dont move pls help (sr for spamm)


Re: Need help wich move objcet all! - jonnyboy - 25.11.2010

So u want to move like auto gate?


Re: Need help wich move objcet all! - doreto - 25.11.2010

yep when i put in game all stuff is ok but when i use command to move they (ship) dont move


Re: Need help wich move objcet all! - Larsey123IsMe - 25.11.2010

Like This?

pawn Код:
new Part1, Part2, Part3, Part4, Part5, Part6, Part7, Part8;
pawn Код:
public OnFilterScriptInit()
{
   //Gates
    Part1 = CreateObject(10771, 4511.4936523438, -2269.9345703125, 0.75, 0, 0, 0);
    Part2 = CreateObject(3114, 4454.30859375, -2255.162109375, 11.911817550659, 0, 0, 0);
    Part3 = CreateObject(3115, 4412.5239257813, -2269.9189453125, 12.201336860657, 0, 0, 0);
    Part4 = CreateObject(3113, 4402.8369140625, -2269.732421875, 0, 0, 0, 0);
    Part5 = CreateObject(11145, 4446.7719726563, -2269.30859375, 7.6000051498413, 0, 0, 0);
    Part6 = CreateObject(11146, 4571.9233398438, -2269.0556640625, 7.489725112915, 0, 0, 0);
    Part7 = CreateObject(10770, 4514.7299804688, -2277.4499511719, 30.982494354248, 0, 0, 0);
    Part8 = CreateObject(11237, 4514.5244140625, -2277.423828125, 30.689376831055, 0, 0, 0);
    return 1;
}
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/YourCommand", cmdtext, true) == 0)
    {
        SendClientMessage(playerid,COLOR_GREEN,"The HQ gate Is now opening!");
        MoveObject(Part1, 4511.4936523438,-2269.9345703125,0.75, 2.00);
        MoveObject(Part2, 4454.30859375,-2255.162109375,11.911817550659, 2.00);
        MoveObject(Part3, 4412.5239257813,-2269.9189453125,12.201336860657, 2.00);
        MoveObject(Part4, 4402.8369140625,-2269.732421875,0, 2.00);
        MoveObject(Part5, 4446.7719726563,-2269.30859375,7.6000051498413, 2.00);
        MoveObject(Part6, 4571.9233398438,-2269.0556640625,7.489725112915, 2.00);
        MoveObject(Part7, 4514.7299804688,-2277.4499511719,30.982494354248, 2.00);
        MoveObject(Part8, 4514.5244140625,-2277.423828125,30.689376831055, 2.00);
        SetTimer("Resetbase",5000,0); //you can change the time, it closes after 5 seconds now.
        return 1;
    }
    return 0;
}
pawn Код:
public Resetbase()
{
    MoveObject(Part1, 2666.4169921875,-2269.9345703125,0.75, 2.00);
    MoveObject(Part2, 2609.6616210938,-2255.162109375,11.911817550659, 2.00);
    MoveObject(Part3, 2568.2590332031, -2269.9191894531, 12.201336860657, 2.00);
    MoveObject(Part4, 2557.3186035156, -2269.732421875, 0, 2.00);
    MoveObject(Part5, 2600.2277832031, -2269.30859375, 7.6000051498413, 2.00);
    MoveObject(Part6, 2655.533203125, -2269.0559082031, 7.489725112915, 2.00);
    MoveObject(Part7, 2669.5471191406, -2277.4499511719, 30.982494354248, 2.00);
    MoveObject(Part8, 2670.7590332031, -2277.423828125, 30.689376831055, 2.00);
}



Re: Need help wich move objcet all! - jonnyboy - 25.11.2010

Quote:
Originally Posted by Larsey123IsMe
Посмотреть сообщение
Like This?

pawn Код:
new Part1, Part2, Part3, Part4, Part5, Part6, Part7, Part8;
pawn Код:
public OnFilterScriptInit()
{
   //Gates
    Part1 = CreateObject(10771, 4511.4936523438, -2269.9345703125, 0.75, 0, 0, 0);
    Part2 = CreateObject(3114, 4454.30859375, -2255.162109375, 11.911817550659, 0, 0, 0);
    Part3 = CreateObject(3115, 4412.5239257813, -2269.9189453125, 12.201336860657, 0, 0, 0);
    Part4 = CreateObject(3113, 4402.8369140625, -2269.732421875, 0, 0, 0, 0);
    Part5 = CreateObject(11145, 4446.7719726563, -2269.30859375, 7.6000051498413, 0, 0, 0);
    Part6 = CreateObject(11146, 4571.9233398438, -2269.0556640625, 7.489725112915, 0, 0, 0);
    Part7 = CreateObject(10770, 4514.7299804688, -2277.4499511719, 30.982494354248, 0, 0, 0);
    Part8 = CreateObject(11237, 4514.5244140625, -2277.423828125, 30.689376831055, 0, 0, 0);
    return 1;
}
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/YourCommand", cmdtext, true) == 0)
    {
        SendClientMessage(playerid,COLOR_GREEN,"The HQ gate Is now opening!");
        MoveObject(Part1, 4511.4936523438,-2269.9345703125,0.75, 2.00);
        MoveObject(Part2, 4454.30859375,-2255.162109375,11.911817550659, 2.00);
        MoveObject(Part3, 4412.5239257813,-2269.9189453125,12.201336860657, 2.00);
        MoveObject(Part4, 4402.8369140625,-2269.732421875,0, 2.00);
        MoveObject(Part5, 4446.7719726563,-2269.30859375,7.6000051498413, 2.00);
        MoveObject(Part6, 4571.9233398438,-2269.0556640625,7.489725112915, 2.00);
        MoveObject(Part7, 4514.7299804688,-2277.4499511719,30.982494354248, 2.00);
        MoveObject(Part8, 4514.5244140625,-2277.423828125,30.689376831055, 2.00);
        SetTimer("Resetbase",5000,0); //you can change the time, it closes after 5 seconds now.
        return 1;
    }
    return 0;
}
pawn Код:
public Resetbase()
{
    MoveObject(Part1, 2666.4169921875,-2269.9345703125,0.75, 2.00);
    MoveObject(Part2, 2609.6616210938,-2255.162109375,11.911817550659, 2.00);
    MoveObject(Part3, 2568.2590332031, -2269.9191894531, 12.201336860657, 2.00);
    MoveObject(Part4, 2557.3186035156, -2269.732421875, 0, 2.00);
    MoveObject(Part5, 2600.2277832031, -2269.30859375, 7.6000051498413, 2.00);
    MoveObject(Part6, 2655.533203125, -2269.0559082031, 7.489725112915, 2.00);
    MoveObject(Part7, 2669.5471191406, -2277.4499511719, 30.982494354248, 2.00);
    MoveObject(Part8, 2670.7590332031, -2277.423828125, 30.689376831055, 2.00);
}
nice, your auto gate is a little better than mine ;P


Re: Need help wich move objcet all! - SkizzoTrick - 25.11.2010

His gates are working :P)lol


Re: Need help wich move objcet all! - doreto - 26.11.2010

lol this time ship is dont spamm i not there but command is working


Re: Need help wich move objcet all! - doreto - 27.11.2010

pls help me this this problem invisible ship