teamspeak3 create script help

FarisDev

L oryh brx
Contributor
Joined
Jun 9, 2016
Messages
277
Reaction score
111
Points
107
You can do if he's clicking Like France Connect with France VPS
like that..
if you have more VPS :)
 

ramazanqqq

Member
Joined
Sep 14, 2015
Messages
39
Reaction score
9
Points
43
the download link for the scripts don't have ?
 

Norvik

Retired Staff
Contributor
Joined
Jul 18, 2015
Messages
635
Reaction score
588
Points
157
How can you do this? I already tried with ts3 module :c
You simply have to change the target ip of the query connection in your server creation script. Just check it like this:
PHP:
if ($_POST['datacenter'] == "europe") { 
    $ip = xxx.xxx.xxx.xxx;
} else if ($_POST['datacenter'] == "america") {
    $ip = xxx.xxx.xxx.xxx; 
}
 

ramazanqqq

Member
Joined
Sep 14, 2015
Messages
39
Reaction score
9
Points
43
vvvvvvvvvvvvvvvvvvvvv
You simply have to change the target ip of the query connection in your server creation script. Just check it like this:
PHP:
if ($_POST['datacenter'] == "europe") {
    $ip = xxx.xxx.xxx.xxx;
} else if ($_POST['datacenter'] == "america") {
    $ip = xxx.xxx.xxx.xxx;
}
thx <3
 

bronxaron

Restricted
Joined
Jan 17, 2016
Messages
18
Reaction score
3
Points
35
if(isset($_POST['dc'])){
if($_POST['dc'] == 1){
//create europe
}} else{
if($_POST['dc'] == 2){
//create america
}else{
echo 'Please select teamspeak3 server region!';
}}
$email = $_POST['email'];
if(isset($_POST['email'])){
if(!filter_var($email, FILTER_VALIDATE_EMAIL)){
echo 'Invalid email adress!';
}else{
if(empty($_POST['email'])){
echo 'Please enter email adress!';
}}else{
//php mail script
}}
 
Last edited:

ramazanqqq

Member
Joined
Sep 14, 2015
Messages
39
Reaction score
9
Points
43
if(isset($_POST['dc'])){
if($_POST['dc'] == 1){
//create europe
}} else{
if($_POST['dc'] == 2){
//create america
}else{
echo 'Please select teamspeak3 server region!';
}}
$email = $_POST['email'];
if(isset($_POST['email'])){
if(!filter_var($email, FILTER_VALIDATE_EMAIL)){
echo 'Invalid email adress!';
}else{
if(empty($_POST['email'])){
echo 'Please enter email adress!';
}}else{
//php mail script
}}
thanks xaron :))
 
Top