Light wrote:Check your sumo config or the map file settings. That include doesn't make him admin.
Well this is the only thing I can find with Cody's name in it
Code: Select all
##MAP
MAP_FILE Cody/sumo/8player-1.aamap.xml(http://1v1sb.99k.org/resource/Cody/sumo/8player-1.aamap.xml)
#RESOURCE_REPOSITORY_SERVER http://74.117.60.178/maps/
#MAP_FILE sly/maps/8player-2.aamap.xml
(Post above the one about Cody@forums. Just thought you didnt see it
)
Light wrote:Sorry. I typed faster than my brain was thinking.
Code: Select all
RINCLUDE all_default_settings.cfg(http://crazy-tronners.com/resource/all_default_settings.cfg)
Also, here's your script. It's up on my test server if you wanna try it out.
Custom Connect to lightron.no-ip.org on port 4534
script.php (the file you run)
Code: Select all
#!/usr/bin/php
<?php
define("CUSTOM_USERNAMES", "custom_usernames.php");
while (!feof(STDIN))
{
$line = rtrim(fgets(STDIN));
$part = explode(" ", $line);
if ($part[0] == "INVALID_COMMAND")
{
if ($part[1] == "/say")
{
require(CUSTOM_USERNAMES);
if (!array_key_exists($part[2], $custom_usernames))
{
print("PLAYER_MESSAGE {$part[2]} \"0xff0000Error0xffff7f: Sorry, {$part[2]}. You don't have a custom username.\"" . "\n");
}
else
{
print("CONSOLE_MESSAGE {$custom_usernames[$part[2]]}0xffff7f: " . implode(" ", array_splice($part, 5)) . "\n");
}
}
}
}
?>
custom_usernames.php
Code: Select all
<?php
$custom_usernames = array(
'Light@forums' => "0x30b2e9G0x35b6e6o0x3ab9e2D0x3fbddfo0x44c0dcf0x49c4d9T0x4ec7d5h0x53cbd2e0x58cfcfN0x5dd2cbe0x62d6c8W0x67d9c500x6cddc2r0x71e0bel0x76e4bbd",
'LittleSteps@forums' => "0xdc24e9L0xd036eai0xc348eat0xb759ebt0xaa6bebl0x9e7dece0x918fecS0x85a1edt0x78b2ede0x6cc4eep0x5fd6ees"
);
?>
Wow! Thank's
Code: Select all
RINCLUDE all_default_settings.cfg(http://crazy-tronners.com/resource/all_default_settings.cfg)
worked!
Sorry
Still a bit of a noob at hosting! How do I use the script
? I created a script.php and put it in my script folder with that stuff inside and I also created a custom user names folder and put it in the scripts folder with the other one.
Could you tell me how to use that script please
. Thank's in advance! Again you have been a tremendous help
!