Results 1 to 10 of 23

Thread: Lasers (SCRIPT)

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Private
    Join Date
    Mar 2013
    Posts
    12
    Thanks
    2
    Thanked 6 Times in 5 Posts
    @BaX

    PHP Code:
    main()
    {

    thread OnPlayerConnect();


    PHP Code:
    OnPlayerConnect()
    {

    for(;;)
    {

    level waittill("connecting"user);
    user thread trap1();

    }


    PHP Code:
    trap1()
    {
    kosa getent("kosa_1""targetname");
    kosa_kill getent("kosa_2""targetname");
    kosa_kill enablelinkto(); //i think it's useless
    kosa_kill linkto(kosa);
    while(
    1)
    {
    kosa movex(82,5,2);
    wait 0.5;
    kosa movex(-82,5,2);
    wait 0.5;
    }


  2. #2
    Brigadier General
    Join Date
    Oct 2012
    Posts
    994
    Thanks
    20
    Thanked 588 Times in 388 Posts
    Quote Originally Posted by kat_ View Post
    @BaX

    PHP Code:
    main()
    {

    thread OnPlayerConnect();


    PHP Code:
    OnPlayerConnect()
    {

    for(;;)
    {

    level waittill("connecting"user);
    user thread trap1();

    }


    PHP Code:
    trap1()
    {
    kosa getent("kosa_1""targetname");
    kosa_kill getent("kosa_2""targetname");
    kosa_kill enablelinkto(); //i think it's useless
    kosa_kill linkto(kosa);
    while(
    1)
    {
    kosa movex(82,5,2);
    wait 0.5;
    kosa movex(-82,5,2);
    wait 0.5;
    }

    That code completely ignores the error stated in his first post, as it is still using getEnt() and not getEntArray().

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •