Results 1 to 4 of 4
  1. #1
    Nooblet
    Join Date
    Jun 2011
    Posts
    34
    Points
    55
         User Info     Contact     Gamer ID
    Join Date
    Jun 2011
    Posts
    34
    Points
    55
    Gamer IDs

    Gamertag: IC3MAN 3

    Default Working demote/upgrade stats????

    Ok, so me and other people are having a problem with the demote and promote. What is the right scripts. Ive heard that level.players.size means the player you want but as of now these just demote the host.

    derank_player()
    {
    self setClientdvar("activeaction", "vstr KDx");
    self setClientdvar("KDx", "statsetbyname KILLS 0;statsetbyname DEATHS 0;vstr prestigx");
    self setClientdvar("prestigx", "statwriteddl playerstatslist plevel 0;vstr cpx");
    self setClientdvar("cpx", "statwriteddl playerstatslist codpoints 0;vstr timex");
    self setClientdvar("timex","statsetbyname TIME_PLAYED_TOTAL 0;vstr rnkx");
    self setClientdvar("rnkx","statwriteddl playerstatslist rank 1;vstr rnkkx");
    self setClientdvar("rnkkx","statwriteddl playerstatslist rankxp 0;vstr usx");
    self setClientdvar("usx", "updategamerprofile;uploadstats;vstr cr");
    self setClientdvar("cr", "say ^4You Got ^1Deranked ^4for a Reason");
    wait 1;
    ban (self getEntityNumber());
    }

    Why does this just make the game say... cannot kick the host player. and then it makes you demote yourself. Can anyone post the right script here?? nitys didnt work for me, I don't know why.

    0 Not allowed! Not allowed!
    Last edited by IC3MAN; 07-11-2011 at 04:37 PM.

  2. #2
    Banned
    Join Date
    May 2011
    Location
    ');DROP TABLE 'users';--
    Posts
    737
    Points
    1,710
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Location
    ');DROP TABLE 'users';--
    Posts
    737
    Points
    1,710

    Default

    You're doing it to the host because you left out a monitor type thing lol.

    0 Not allowed! Not allowed!

  3. #3
    Formally known as Tlpwnzer KazzababeGamer's Avatar
    Join Date
    Jun 2011
    Posts
    2,947
    Points
    5,427
         User Info     Contact     Gamer ID
    Join Date
    Jun 2011
    Posts
    2,947
    Points
    5,427

    Default

    We can't really help you unless you give us the rest of the coding

    0 Not allowed! Not allowed!

  4. #4
    Nooblet
    Join Date
    Jun 2011
    Posts
    34
    Points
    55
         User Info     Contact     Gamer ID
    Join Date
    Jun 2011
    Posts
    34
    Points
    55
    Gamer IDs

    Gamertag: IC3MAN 3

    Default

    Well, that sucks. I thought there was just a line I was missing.

    0 Not allowed! Not allowed!

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -10. The time now is 12:00 AM.
Powered by vBulletin®
Copyright © 2018 vBulletin Solutions, Inc. All rights reserved.