Jump to content

Question

Posted

[pawn]#include <a_samp>

new obiect;

forward Actiunea(playerid);

public Actiunea(playerid)

{

    MoveObject(obiect, 1497.1999500,989.4000200,10.8000000, 3, 0.0000000,268.0000000,270.0000000);

    return 1; 

}

public OnGameModeInit()

{

    obiect = CreateObject(968,1497.1999500,989.4000200,10.8000000,0.0000000,268.0000000,270.0000000);

    return 1;

}

public OnPlayerCommandText(playerid, cmdtext[])

{

    if( strcmp(cmdtext, "/deschide", true)==0)

    {

        MoveObject(obiect,  1497.1999500,989.4000200,10.8000000, 3, 0.0000000,352.0000000,270.0000000);

        SetTimerEx("Actiunea", 3 * 1000, 0, "i", playerid); //5 secunde , nu se repeta, valoarea este integer pt playerid

        return 1;

    }

    return 0;

}

[/pawn]

deci am acest fs

merge frumos dar vreau sa adaug mai multe obiecte la el se poate? daca da cum

<a href="http://www.game-state.eu/188.212.105.161:7777/"><img src="http://www.game-state.eu/188.212.105.161:7777/430x73_FFFFFF_FF9900_000000_000000.png" alt="www.Game-State.eu" style="border-style: none;" /></a>

2 answers to this question

Recommended Posts

Posted

[glow=red,2,300]Cam asa:[/glow][pawn]#include <a_samp>

new obiect;

new obiect2;

forward Actiunea(playerid);

public Actiunea(playerid)

{

    MoveObject(obiect, 1497.1999500,989.4000200,10.8000000, 3, 0.0000000,268.0000000,270.0000000);

    MoveObject(obiect2, 1497.1999500,989.4000200,10.8000000, 3, 0.0000000,268.0000000,270.0000000);

    return 1; 

}

public OnGameModeInit()

{

    obiect = CreateObject(968,1497.1999500,989.4000200,10.8000000,0.0000000,268.0000000,270.0000000);

    obiect2 = CreateObject(968,1497.1999500,989.4000200,10.8000000,0.0000000,268.0000000,270.0000000);

   

    return 1;

}[/pawn]

[glow=red,2,300]intelegi ideea adaugi obiect3,4..cate vrei..[/glow]

[glow=blue,2,300]SAMP.[glow=yellow,2,300]RSP-GAME[glow=red,2,300].NET[/glow][/glow][/glow]

Posted

multumesc mult merge puteti da tc

<a href="http://www.game-state.eu/188.212.105.161:7777/"><img src="http://www.game-state.eu/188.212.105.161:7777/430x73_FFFFFF_FF9900_000000_000000.png" alt="www.Game-State.eu" style="border-style: none;" /></a>

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.