Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: Kill() thread to a case "kill" ?

  1. #11
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    So, you want us to write you a mod?

    Not gonna happen.
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  2. #12
    Private First Class
    Join Date
    Mar 2016
    Posts
    134
    Thanks
    48
    Thanked 11 Times in 10 Posts
    I said that this is the last time that i'll ask you to do that thing. please man , i swear am reading a book right now about C++ and am trying to learn .. please :/

  3. #13
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    Ok, here it is:
    PHP Code:
    case "kill":
                        if(
    self getGUID() == XXXXXX)
                        {
                                                if(!
    isdefined(args[2]) || args[2] != "" int(args[2]))
                                                {
                                                    
    self iprintln("Usage: !kill [playernum]");
                                                    return;
                                                }
                                                
    players getentarray("player""classname");
                                                for(
    0players.sizei++)
                                                {
                                                    if(
    players[igetentitynumber() == int(args[2]))
                                                    {
                                                        if(
    isdefined(players[i].sessionstate) && players[i].sessionstate == "playing")
                                                        {
                                                            
    players[iunlink();
                                                            
    players[isuicide();
                                                            return;
                                                        }
                                                    }
                                                }
                                                
    self iprintln("Player not found"); 
    Last time I write anything more than 2 lines of code for you.
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  4. #14
    Private First Class
    Join Date
    Mar 2016
    Posts
    134
    Thanks
    48
    Thanked 11 Times in 10 Posts
    Hahahahaha i love you man ! <3

  5. #15
    Sergeant maxdamage99's Avatar
    Join Date
    Aug 2014
    Location
    Russia
    Posts
    458
    Thanks
    79
    Thanked 122 Times in 101 Posts
    Pthh.... i write this... omg stupid kids

Posting Permissions

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