Results 1 to 9 of 9

Thread: Stealth Script

  1. #1

    Stealth Script

    Hello guys I have been trying to script stealth. I wanted the script to allow you to see other staff members while players can't see you or your buddy. I also wanted the script to allow you and your buddy to talk but players can't see what is being said. If this is too much then how would I script it where only staff members can see eachother?

    Thank You- John Raven Youngman

  2. #2
    Credit to Twinny for this:


    Quote Originally Posted by Twinny
    This is what I did for Classic iPhone stealth (removed some other parts to provide this),

    Weapon: -Staff/Stealth
    PHP Code:
    //#CLIENTSIDE
    function onCreated() {
      
    player.attr[22] = "unstealth.gani";
    }

    function 
    ChatBar.onAction() {
      if (
    ChatBar.text == "/stealth") {
        
    toggleStealth();
        
    ChatBar.text "";
      }
    }

    function 
    toggleStealth() {
      
    this.stealth = !this.stealth;
      if (
    this.stealth)
        
    player.attr[22] = "stealth.gani";
      else
        
    player.attr[22] = "unstealth.gani";

    in the gani,
    PHP Code:
    function onPlayerEnters() {
      if (
    clientr.isStaff)
        
    player.alpha 0.4;
      else
        
    player.alpha 0;

    So, all staff can see the stealthed person at half alpha while no-one else can see them.

  3. #3
    Veteran Agent K's Avatar
    Join Date
    Apr 2014
    Location
    Secret agents hideout
    Posts
    427
    So..how can players use this stealth?
    ]Need help? Pm me ur concerns or Era related questions. IGN:Agent K

  4. #4
    Quote Originally Posted by Agent K View Post
    So..how can players use this stealth?
    /stealth

  5. #5
    Veteran Agent K's Avatar
    Join Date
    Apr 2014
    Location
    Secret agents hideout
    Posts
    427
    Can players use this "/stealth"?
    ]Need help? Pm me ur concerns or Era related questions. IGN:Agent K

  6. #6
    Quote Originally Posted by Agent K View Post
    Can players use this "/stealth"?
    No Players cannot use this. This stealth script is for staff on many servers, but I was having a hard time figuring it out. If you want to somehow become part of staff on any servers I work on, then contact me on one of these servers listed below. I will be on them everyday from about 9-3am -8:00 Pacific TimeZone

    Seventh Heaven
    Dev xPulse
    Dev Rockstar
    Dev Deathsrikerx

    - - - Updated - - -

    Quote Originally Posted by Vendetta View Post
    Credit to Twinny for this:
    Thank you Vendetta.

  7. #7
    Big Cheese
    Join Date
    Aug 2013
    Location
    America
    Posts
    1,411
    Quote Originally Posted by Johnyoungman224 View Post
    No Players cannot use this. This stealth script is for staff on many servers, but I was having a hard time figuring it out. If you want to somehow become part of staff on any servers I work on, then contact me on one of these servers listed below. I will be on them everyday from about 9-3am -8:00 Pacific TimeZone

    Seventh Heaven
    Dev xPulse
    Dev Rockstar
    Dev Deathsrikerx

    - - - Updated - - -



    Thank you Vendetta.
    Be careful on Seventh Heaven, I worked there and the owner took credit for all my work.

  8. #8
    Quote Originally Posted by CHAMPGRAAL View Post
    Be careful on Seventh Heaven, I worked there and the owner took credit for all my work.
    I am not putting much on Seventh Heaven. I see the way garry is and how he acts. He has fired another developer for putting stolen scripts and stuff on there and has taken credit for the script he actually made. He also just fired his main guy because he used the tag "Manager" even after I warned the guy. I usually work on Dev Rockstar the most. I will be being hired on Sin City soon as a Developer and will probably work on there most of the time after I get hired.

  9. #9
    Quote Originally Posted by CHAMPGRAAL View Post
    Be careful on Seventh Heaven, I worked there and the owner took credit for all my work.
    Champ what exactly do you do, scripting, developing, LAT? (Just curious)

Posting Permissions

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