Ashus.ashus.net

Full Version: Call Of Duty: PHP RCon 2.40 EN++
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
Ashus Wrote:again, only a few command work on raneked servers, like kicking players or changing playlist. map changing and gametype changing do not work, it is a limitation introduced by the creators / they want to keep ranking very strict.

try to enable ban, etc. things in config, they should still work as before.

you can see the map and gametype on unranked, map only on ranked.

Thank you again. What is the proper procedure for changing playlist? I assume its in the command form box enter "playlist 1" and click go?
You are exactly right, according to what I've read elsewhere, that is what should be done to change the map and gametype.
I found a small bug.
Code:
$custom_cmds[] = 'PB Kick+msg/pb_sv_kick %n 2 "Kicked by %a for 2 minutes, reason: %m"/1'; //This does work (with admin name in it)
$custom_cmds[] = 'Test/pb_sv_kick %n 2 "Kicked by %a for 2 minutes, reason: This is a test"/1'; //This does NOT work, it places this command in the cmd bar: pb_sv_kick 14 2 "Kicked by %a for 2 minutes, reason: This is a test"

I don't know how to fix this.
But I think that the problem is (in file: scripts.js.php) that %a only gets replaced in the admin his name in this function: function CmdMsg(q,c,n,UserInfoObj)
And when you send a command to the server without %m in it, I think this function is started: function CustomCmd(n,UserInfoObj)
didn't see the stuff in the cfg is it possible to run a message centre via the web tool?
i have enabled ban in the cfg but i don't have ban button on the tool it's self
i have enabled ban in the cfg but i don't have ban button on the tool it's self

host wants to know what ports need to be open for this script to work?

or is this dependant upon your gs port.
Moustache Wrote:I found a small bug.
Code:
$custom_cmds[] = 'PB Kick+msg/pb_sv_kick %n 2 "Kicked by %a for 2 minutes, reason: %m"/1'; //This does work (with admin name in it)
$custom_cmds[] = 'Test/pb_sv_kick %n 2 "Kicked by %a for 2 minutes, reason: This is a test"/1'; //This does NOT work, it places this command in the cmd bar: pb_sv_kick 14 2 "Kicked by %a for 2 minutes, reason: This is a test"

I don't know how to fix this.
But I think that the problem is (in file: scripts.js.php) that %a only gets replaced in the admin his name in this function: function CmdMsg(q,c,n,UserInfoObj)
And when you send a command to the server without %m in it, I think this function is started: function CustomCmd(n,UserInfoObj)

FIXED Smile

I tried it myself and it works.
Code:
function CustomCmd(n,UserInfoObj)
    {
    n = n.replace(/%a/g, admin_name); // add this line in the function
    $('#cmdbox').val(n);
    SubmitCustomCmd(UserInfoObj);
    }

Thanks again Ashus Smile
cprlrst Wrote:i have enabled ban in the cfg but i don't have ban button on the tool it's self

host wants to know what ports need to be open for this script to work?

or is this dependant upon your gs port.

For my server, my webhost told me he did this:

I have allowed bi-directional communication between those servers and our servers:
[root@gator811 /home/xxxx]# iptables -nL | grep xx.xx.xx
ACCEPT udp -- 66.55.159.xxx 0.0.0.0/0
ACCEPT udp -- 66.55.155.xxx 0.0.0.0/0
ACCEPT udp -- 0.0.0.0/0 66.55.159.xxx
ACCEPT udp -- 0.0.0.0/0 66.55.155.xxx
yes thankyou i have this sorted just nowall is good i can't seem to get the kick/ban with msg to work for me.
If I enable (uncomment)

$commands_enabled[] = 'g_gametype'; // this is an exception, if enabled, it can be set; get is always enabled

In the config.access.limited.inc.php shouldnt a limited user be able to see that drop down menu when logged in with gametypes? Tested on my unranked as admin and sticks and stones worked but others like rc car race said it was not valid. Still, might be good for me to allow limited members the ability to change gametype on the unranked, maybe one day ranked.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39