Page 2 of 4 FirstFirst 1 2 3 4 LastLast
Results 11 to 20 of 31

Thread: Events Tag

  1. #11
    There is no serverside verification before it sets the tag.

    That is probably a bit above your skill level at the moment, but I'm gonna go ahead and recommend you read up on it. If you need some examples I'd be happy to help.

  2. #12
    Big Cheese Captain
    Join Date
    Jun 2013
    Posts
    1,029
    I am not too good at coding, but I'll give it a try:

    //#CLIENTSIDE
    function onCreated () {
    if (clientr.staff == 1 && player.chat == /et)
    player.guild = Events Team
    player.setlevel2 ("Event Level Name Here.nw");
    }else{
    player.chat == "I'm not a staff member!"
    }
    }
    Last edited by iMask; 06-04-2014 at 02:39 PM.
    iEra Developer / SFX Admin

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

  3. #13
    aaaaaaaaaaaaaaaaaaaaaaaaa Grief Hero's Avatar
    Join Date
    Jun 2013
    Location
    n/a
    Posts
    1,327
    You're missing curly brackets, quotations, semi colons and styling. You have the incorrect function as it should be onPlayerChats().


    I saw. I conquered. I came.


  4. #14
    Big Cheese Captain
    Join Date
    Jun 2013
    Posts
    1,029
    Quote Originally Posted by Grief Hero View Post
    You're missing curly brackets, quotations, semi colons and styling. You have the incorrect function as it should be onPlayerChats().
    Grief, no!
    iEra Developer / SFX Admin

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

  5. #15
    Quote Originally Posted by Grief Hero View Post
    You're missing curly brackets, quotations, semi colons and styling. You have the incorrect function as it should be onPlayerChats().
    Grief the way you said it is complicated
    I CONSIDER MYSELF A VERY CREATIVE PERSON

  6. #16
    Street Boss Alex Damian's Avatar
    Join Date
    Jul 2013
    Location
    Georgia
    Posts
    534
    PHP Code:
    //#CLIENTSIDE
    function onPlayerChats(){
     if (
    clientr.isStaff){
      if (
    player.chat == "/et"){
      
    player.guild "Events Team";
      
    player.ap += 100;
       }
     }

    This also requires the staff member to have clientr.isStaff in their player attributes flags.

    Oh - I didn't test this - I'm about to test it now.
    Hello!

  7. #17
    Big Cheese Captain
    Join Date
    Jun 2013
    Posts
    1,029
    Quote Originally Posted by Alex Damian View Post
    //#CLIENTSIDE
    function onPlayerChats(){
    if (clientr.isStaff){
    if (player.chat == "/et"){
    You can shorten this script to be:

    function onPlayerChats () {
    if (client.isStaff && player.chat == /et) {

    Make use of those &&'s
    iEra Developer / SFX Admin

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

  8. #18
    aaaaaaaaaaaaaaaaaaaaaaaaa Grief Hero's Avatar
    Join Date
    Jun 2013
    Location
    n/a
    Posts
    1,327
    Quote Originally Posted by iMask View Post
    You can shorten this script to be:

    function onPlayerChats () {
    if (client.isStaff && player.chat == /et) {

    Make use of those &&'s
    He was quoting Xadis' script.


    I saw. I conquered. I came.


  9. #19
    Won't set guild.

  10. #20
    Using any of these snippets in a weapon (created from rc) will not work because they're clientside. Either put it in a level or use serverside

Posting Permissions

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