Redeem Bot

KissKiss

Active Member
May 21, 2015
48
26
68
It would make more sense to implement a database that holds all possible keys. It should mark a key as used as soon as somebody used it since you could just share the key with your friends in the current script.

Is there anyone that can do this?
 

ptR

Member
Nov 15, 2015
47
0
38
how can i add more codes? example Code: NormalUser - Group: Normal User, Code: Admin - Group: Admin

Code:
error codes:

Fatal error: Uncaught Error: Call to undefined function utf8_encode() in /var/www/html/reedem/libraries/TeamSpeak3/Helper/String.php:475 Stack trace: #0 /var/www/html/reedem/libraries/TeamSpeak3/Adapter/ServerQuery.php(205): TeamSpeak3_Helper_String->toUtf8() #1 /var/www/html/reedem/libraries/TeamSpeak3/Node/Abstract.php(85): TeamSpeak3_Adapter_ServerQuery->prepare('login', Array) #2 /var/www/html/reedem/libraries/TeamSpeak3/Node/Abstract.php(97): TeamSpeak3_Node_Abstract->prepare('login', Array) #3 /var/www/html/reedem/libraries/TeamSpeak3/Node/Host.php(839): TeamSpeak3_Node_Abstract->execute('login', Array) #4 /var/www/html/reedem/libraries/TeamSpeak3/TeamSpeak3.php(330): TeamSpeak3_Node_Host->login(Object(TeamSpeak3_Helper_String), Object(TeamSpeak3_Helper_String)) #5 /var/www/html/reedem/index.php(9): TeamSpeak3::factory(Object(TeamSpeak3_Helper_Uri)) #6 {main} thrown in /var/www/html/reedem/libraries/TeamSpeak3/Helper/String.php on line 475
 
Last edited:

FarisDev

L oryh brx
Contributor
Jun 9, 2016
277
111
107
how can i add more codes? example Code: NormalUser - Group: Normal User, Code: Admin - Group: Admin

Code:
error codes:

Fatal error: Uncaught Error: Call to undefined function utf8_encode() in /var/www/html/reedem/libraries/TeamSpeak3/Helper/String.php:475 Stack trace: #0 /var/www/html/reedem/libraries/TeamSpeak3/Adapter/ServerQuery.php(205): TeamSpeak3_Helper_String->toUtf8() #1 /var/www/html/reedem/libraries/TeamSpeak3/Node/Abstract.php(85): TeamSpeak3_Adapter_ServerQuery->prepare('login', Array) #2 /var/www/html/reedem/libraries/TeamSpeak3/Node/Abstract.php(97): TeamSpeak3_Node_Abstract->prepare('login', Array) #3 /var/www/html/reedem/libraries/TeamSpeak3/Node/Host.php(839): TeamSpeak3_Node_Abstract->execute('login', Array) #4 /var/www/html/reedem/libraries/TeamSpeak3/TeamSpeak3.php(330): TeamSpeak3_Node_Host->login(Object(TeamSpeak3_Helper_String), Object(TeamSpeak3_Helper_String)) #5 /var/www/html/reedem/index.php(9): TeamSpeak3::factory(Object(TeamSpeak3_Helper_Uri)) #6 {main} thrown in /var/www/html/reedem/libraries/TeamSpeak3/Helper/String.php on line 475
$code = array("admin", "normal", "test");
I do not test it but try to type this :)
 

ptR

Member
Nov 15, 2015
47
0
38
Ok but how can i define someone write this code: Admin and system give him admin group and not the test. So i want more codes than 2 with different groups
 

FarisDev

L oryh brx
Contributor
Jun 9, 2016
277
111
107
Ok but how can i define someone write this code: Admin and system give him admin group and not the test. So i want more codes than 2 with different groups
You can copy & paste:
Code:
if ($redeem_1 == $code2) {
        //Type what do you want to say to him when he correctly type the code *In website*
        echo '<center><strong>correctly</strong></center>';
        //Here Type the commands your want, If he correctly type the code, As do you want I just make a command to give Him a group :D
        $ts3_VirtualServer = TeamSpeak3::factory("serverquery://".$YATQA_username.":".$YATQA_password."@".$server_ip.":".$YATQA_queryport."/?server_port=".$server_port."&nickname=".$botname."");
        $ts3_VirtualServer->clientGetByUid("$uid")->addServerGroup($sgid2);
        die;
  }else{
      //Here type what do you want to say to him when he wrong :D
      echo '<center><strong>Wrong/try Again</strong></center>';
        header("Refresh:3; url=code.php");
  }
}
And make On config $code2 = '';
And type like admin.....
 
  • Like
Reactions: ptR
Top