Results 1 to 3 of 3

Thread: Run on only 1 computer...

  1. #1
    hey laddys ad gens,

    ok what i'm after is to be able to run a script ONLY on 1 clients computer... here the code i want it to run.

    <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">
    ?side player == west&#58; goto &#34;loopW&#34;
    ?side player == east&#58; goto &#34;loopE&#34;
    goto &#34;error&#34;
    end

    #loopW
    &#34;playermarker1&#34; setMarkerPos getpos WPlayer1
    &#34;playermarker1&#34; setMarkerColor &#34;ColorBlue&#34;
    &#34;playermarker2&#34; setMarkerPos getpos WPlayer2
    &#34;playermarker2&#34; setMarkerColor &#34;ColorBlue&#34;
    &#34;playermarker3&#34; setMarkerPos getpos WPlayer3
    &#34;playermarker3&#34; setMarkerColor &#34;ColorBlue&#34;
    &#34;playermarker4&#34; setMarkerPos getpos WPlayer4
    &#34;playermarker4&#34; setMarkerColor &#34;ColorBlue&#34;
    &#34;playermarker5&#34; setMarkerPos getpos WPlayer5
    &#34;playermarker5&#34; setMarkerColor &#34;ColorBlue&#34;
    &#34;playermarker6&#34; setMarkerPos getpos WPlayer6
    &#34;playermarker6&#34; setMarkerColor &#34;ColorBlue&#34;
    &#34;playermarker7&#34; setMarkerPos getpos WPlayer7
    &#34;playermarker7&#34; setMarkerColor &#34;ColorBlue&#34;
    &#34;playermarker8&#34; setMarkerPos getpos WPlayer8
    &#34;playermarker8&#34; setMarkerColor &#34;ColorBlue&#34;
    &#34;playermarker9&#34; setMarkerPos getpos WPlayer9
    &#34;playermarker9&#34; setMarkerColor &#34;ColorBlue&#34;
    &#34;playermarker10&#34; setMarkerPos getpos WPlayer10
    &#34;playermarker10&#34; setMarkerColor &#34;ColorBlue&#34;

    goto &#34;loopW&#34;
    end

    #loopE
    &#34;playermarker1&#34; setMarkerPos getpos EPlayer1
    &#34;playermarker1&#34; setMarkerColor &#34;ColorRed&#34;
    &#34;playermarker2&#34; setMarkerPos getpos EPlayer2
    &#34;playermarker2&#34; setMarkerColor &#34;ColorRed&#34;
    &#34;playermarker3&#34; setMarkerPos getpos EPlayer3
    &#34;playermarker3&#34; setMarkerColor &#34;ColorRed&#34;
    &#34;playermarker4&#34; setMarkerPos getpos EPlayer4
    &#34;playermarker4&#34; setMarkerColor &#34;ColorRed&#34;
    &#34;playermarker5&#34; setMarkerPos getpos EPlayer5
    &#34;playermarker5&#34; setMarkerColor &#34;ColorRed&#34;
    &#34;playermarker6&#34; setMarkerPos getpos EPlayer6
    &#34;playermarker6&#34; setMarkerColor &#34;ColorRed&#34;
    &#34;playermarker7&#34; setMarkerPos getpos EPlayer7
    &#34;playermarker7&#34; setMarkerColor &#34;ColorRed&#34;
    &#34;playermarker8&#34; setMarkerPos getpos EPlayer8
    &#34;playermarker8&#34; setMarkerColor &#34;ColorRed&#34;
    &#34;playermarker9&#34; setMarkerPos getpos EPlayer9
    &#34;playermarker9&#34; setMarkerColor &#34;ColorRed&#34;
    &#34;playermarker10&#34; setMarkerPos getpos EPlayer10
    &#34;playermarker10&#34; setMarkerColor &#34;ColorRed&#34;
    goto &#34;loopE&#34;
    end

    #error
    hint &#34;Error&#58; Could not detect your team&#34;
    &#34;playermarker1&#34; setMarkerPos &#91;0,0,0&#93;
    &#34;playermarker2&#34; setMarkerPos &#91;0,0,0&#93;
    &#34;playermarker3&#34; setMarkerPos &#91;0,0,0&#93;
    &#34;playermarker4&#34; setMarkerPos &#91;0,0,0&#93;
    &#34;playermarker5&#34; setMarkerPos &#91;0,0,0&#93;
    &#34;playermarker6&#34; setMarkerPos &#91;0,0,0&#93;
    &#34;playermarker7&#34; setMarkerPos &#91;0,0,0&#93;
    &#34;playermarker8&#34; setMarkerPos &#91;0,0,0&#93;
    &#34;playermarker9&#34; setMarkerPos &#91;0,0,0&#93;
    &#34;playermarker10&#34; setMarkerPos &#91;0,0,0&#93;
    end[/QUOTE]

    now that always works on the server/host side but not on any of the clients... ***i want it to basicly move the markers but only on the clients computer and not eveyones... I am exec the script buy the units init line. This script is for 1.46.

    thanks in any help




  2. #2
    What i can see is that you can see the positions of all your players om the map, no?

    If only you have acces to that i am tempted to see that as develloping a cheat... But i&#39;m prolly wrong...

    What is the script for?

    EDIT:
    Quote Originally Posted by [b
    Quote[/b] ]
    ?side player == west: goto "loopW"
    ?side player == east: goto "loopE"
    easy to turn around... I suggest that everybody who wants to give the answer gives it via PM...




  3. #3
    the script is to diplay only were you team mates are

    <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">?side player == west&#58; goto &#34;loopW&#34;
    ?side player == east&#58; goto &#34;loopE&#34;[/QUOTE]

    is to detect what team the player is on so that it knows what soldiers to move the markers to. (this way they dont see were the e is)

Posting Permissions

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