Page 1 of 4 1 2 3 ... LastLast
Results 1 to 10 of 31

Thread: Events Tag

  1. #1

    Events Tag

    I'm still learning to script, so I was like hey let's make a tag for event's team, but guild won't set

    HTML Code:
    //#CLIENTSIDE
    function OnPlayerChats () {
    if (player.chat == "/et"){
    set.guild="Events Team";
    }
    }

  2. #2
    aaaaaaaaaaaaaaaaaaaaaaaaa Grief Hero's Avatar
    Join Date
    Jun 2013
    Location
    n/a
    Posts
    1,327
    PHP Code:
    #//CLIENTSIDE
    function onPlayerChats() {
     if (
    player.chat =="/et") {
        
    player.guild "Events Team";
    }



    I saw. I conquered. I came.


  3. #3
    I wonder why there needs to be spaces?

  4. #4
    aaaaaaaaaaaaaaaaaaaaaaaaa Grief Hero's Avatar
    Join Date
    Jun 2013
    Location
    n/a
    Posts
    1,327
    Quote Originally Posted by Greg2013 View Post
    I wonder why there needs to be spaces?
    Spaces where?


    I saw. I conquered. I came.


  5. #5
    you put extra spaces in the script
    if (player.chat =="/et") {
    player.guild = "Events Team";

  6. #6
    aaaaaaaaaaaaaaaaaaaaaaaaa Grief Hero's Avatar
    Join Date
    Jun 2013
    Location
    n/a
    Posts
    1,327
    Makes it easier to read. It's called styling.


    I saw. I conquered. I came.


  7. #7
    Doesn't work

  8. #8
    Player Relations Toshihiro Kijima's Avatar
    Join Date
    Jul 2013
    Location
    Japan
    Posts
    1,132
    where do you even put this PHP code at? to set the tag

  9. #9
    I would just put a npc and do

    Function onplayerchats(){
    If (player.chat == "/et");
    If (player.ap == "100");
    Player.guild = "Events Team"
    }
    ------------------------------------------------------------------




  10. #10
    aaaaaaaaaaaaaaaaaaaaaaaaa Grief Hero's Avatar
    Join Date
    Jun 2013
    Location
    n/a
    Posts
    1,327
    Quote Originally Posted by Xadis View Post
    I would just put a npc and do

    Function onplayerchats(){
    If (player.chat == "/et");
    If (player.ap == "100");
    Player.guild = "Events Team"
    }
    Using a weapon would be better. You also need a closing curly bracket. You instead of having 2 if statements, you could have done if (player.chat=="/et" && player.ap == 100) {
    Last edited by Grief Hero; 06-04-2014 at 02:46 PM.


    I saw. I conquered. I came.


Posting Permissions

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