Results 1 to 7 of 7

Thread: Issue With Scripting - Other Players Cannot Get Weapons When they Directly Log On!

  1. #1
    Street Boss Mr LebJoe S's Avatar
    Join Date
    Aug 2014
    Location
    liechtestein
    Posts
    781

    Unhappy Issue With Scripting - Other Players Cannot Get Weapons When they Directly Log On!

    Hey guys, I'm having troubles with scripting: How the new player, 1st time comes to the server, make him can see the real tileset instead of pics1 and get the news weapon, uploading weapon... I only need where to add the script, what is the script
    (I have the uploading, news, and the -sys/tiles (the tileset weapon) scripts, but I don't know, how to let the newbie player, get them automatically when he logs on)!

    I'm learning GS2

    -And same for the ganis, others can't see them only if they have access to RC/Folders/Ganis/ and they open the gani -

    Please help - cri cri

    Thanks
    ineffable.

  2. #2
    Big Cheese Captain
    Join Date
    Jun 2013
    Posts
    1,029
    Go into the Control NPC in the database section. Right click and press edit script. Add this line of code:

    PHP Code:
    function onCreated() {
      
    // Add to this array when they need new weapons on login
      
    this.playerWeps = {"-sys/tiles"};
    }

    function 
    onActionPlayerOnline(temp.pl) {
      for (
    temp.this.playerWeps) {
        
    temp.pl.addweapon(temp.m);
      }

    I wrote this on my phone, but it should work
    iEra Developer / SFX Admin

    Need help? Contact me:
    Email: [email protected]

  3. #3
    Street Boss Mr LebJoe S's Avatar
    Join Date
    Aug 2014
    Location
    liechtestein
    Posts
    781
    Quote Originally Posted by iMask View Post
    Go into the Control NPC in the database section. Right click and press edit script. Add this line of code:

    PHP Code:
    function onCreated() {
      
    // Add to this array when they need new weapons on login
      
    this.playerWeps = {"-sys/tiles"};
    }

    function 
    onActionPlayerOnline(temp.pl) {
      for (
    temp.this.playerWeps) {
        
    temp.pl.addweapon(temp.m);
      }

    I wrote this on my phone, but it should work
    Thanks, I found a little one, that works, also, I need help in something else, How can I make the shrink weapon visible to others


    Do u want to come to our server? I see you're a good scripter! It's called "Contempo" feel free to enter it, i'm always there xD
    ineffable.

  4. #4
    Big Cheese Captain
    Join Date
    Jun 2013
    Posts
    1,029
    Quote Originally Posted by Mr LebJoe S View Post
    I need help in something else, How can I make the shrink weapon visible to others
    I don't understand =( when a player shrinks, they become invisible?
    iEra Developer / SFX Admin

    Need help? Contact me:
    Email: [email protected]

  5. #5
    Street Boss Mr LebJoe S's Avatar
    Join Date
    Aug 2014
    Location
    liechtestein
    Posts
    781
    Quote Originally Posted by iMask View Post
    I don't understand =( when a player shrinks, they become invisible?
    Nop, when a player shrinks, it doesnt get shown to others, it is shown to ur screen only! Can u send a script that works? And, I have a problem with the ganis, they dont get shown to others, can u log onto Contempo?
    ineffable.

  6. #6
    Big Cheese Captain
    Join Date
    Jun 2013
    Posts
    1,029
    Quote Originally Posted by Mr LebJoe S View Post
    Nop, when a player shrinks, it doesnt get shown to others, it is shown to ur screen only! Can u send a script that works? And, I have a problem with the ganis, they dont get shown to others, can u log onto Contempo?
    Might be your folder config? I have no idea, never encountered that issue before.
    iEra Developer / SFX Admin

    Need help? Contact me:
    Email: [email protected]

  7. #7
    Street Boss Mr LebJoe S's Avatar
    Join Date
    Aug 2014
    Location
    liechtestein
    Posts
    781
    Quote Originally Posted by iMask View Post
    Might be your folder config? I have no idea, never encountered that issue before.
    Mmm... Can u log onto Contempo rn?
    ineffable.

Posting Permissions

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