Similar topics
Latest topics
Club Penguin Events
Advertisement
Moderator Function! (NOT MINE) (Hu_'s) From Pcl
3 posters
Page 1 of 1
Moderator Function! (NOT MINE) (Hu_'s) From Pcl
It Sees if theres mods in the room.
- Code:
function safetySignal($Arg){
if ($Arg == "Simple"){
echo "\n\n--- Starting The Simple SafetySignal 2.0 Function By Hu_ ---\n";
sleep(3);
$rawPack = $this->readRawPacket();
if(stripos($rawPack, "xt%ma%")) {
echo ("\n\nALERT: Moderator detected; Bot disconnecting\n\n");
$this->disconnect();
sleep(9001);
}
if(stripos($rawPack, "xt%k%")) {
echo ("\n\nALERT: Kick detected on server; Bot disconnecting\n\n");
$this->disconnect();
sleep(9001);
}
if(stripos($rawPack, "xt%m%")) {
echo ("\n\nALERT: Mute detected on server; Bot disconnecting\n\n");
$this->disconnect();
sleep(9001);
}
if(stripos($rawPack, "xt%b%")) {
echo ("\n\nALERT: Ban detected on server; Bot disconnecting\n\n");
$this->disconnect();
sleep(9001);
}
else {
echo "--- GOGOGO NO MODS OR PUNISHMENTS! ---\n---Waiting 5 seconds :D---\n\n";
sleep(5);
}
}
elseif ($Arg == "Advanced"){
echo "\n\n--- Starting The Advanced SafetySignal 2.0 Function By Hu_ ---\n";
sleep(3);
$rawPack = $this->readRawPacket ();
if (stripos($rawPack, "xt%")) {
$explode = explode("%", $rawPack);
$set = $explode[2];
switch($set){
case ma:
echo ("\n\nALERT: Moderator detected; Bot disconnecting\n\n");
$this->disconnect();
sleep(9001);
case k:
echo ("\n\nALERT: Kick detected on server; Bot disconnecting\n\n");
$this->disconnect();
sleep(9001);
case m:
echo ("\n\nALERT: Mute detected on server; Bot disconnecting\n\n");
$this->disconnect();
sleep(9001);
case b:
echo ("\n\nALERT: Ban detected on server; Bot disconnecting\n\n");
$this->disconnect();
sleep(9001);
default:
echo "--- GOGOGO NO MODS OR PUNISHMENTS! ---\n---Waiting 5 seconds :D---\n\n";
sleep(5);
}
}
}
else{
for($k = 1; $k <= 5; $k++){
echo "\n\nSafety Signal: LAWL ERROR: Entered Wrong Arguments, remember it's either Advanced or Simple. :D\n";
}
echo"\n";
sleep(9001);
}
}
Last edited by 43nînjâ17 on Tue Mar 01, 2011 6:41 pm; edited 1 time in total
43nînjâ17- Posts : 89
Reputation : 6
Join date : 2010-08-29
Location : Behind you
Re: Moderator Function! (NOT MINE) (Hu_'s) From Pcl
You don't need to type in capitals when you are saying it is not yours, you can just say that and give credit in the post.
Re: Moderator Function! (NOT MINE) (Hu_'s) From Pcl
Does this script still work? o:
Bolt Hugs- Posts : 117
Reputation : 3
Join date : 2011-06-25
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
Tue Feb 05, 2019 5:36 am by Gizmo92883
» Anybody else come to this forum for the memories?
Tue Jun 12, 2018 12:07 am by Cooldude21
» This forum died
Thu Mar 30, 2017 11:10 pm by _Skate_
» Introduce yourselves!
Fri Jan 23, 2015 7:21 pm by Gizmo92883
» Ozzy's Bot Script
Mon May 13, 2013 8:31 am by Pig
» Goodbye BCPB Forums.
Tue Sep 18, 2012 6:37 pm by 43nînjâ17
» Follow bot script (100% Credit to Cp-Cheater )
Sun Sep 16, 2012 4:55 pm by Dentonbrooks
» Xat Main Owner Hacker
Fri Aug 17, 2012 2:32 am by 43nînjâ17
» xat message big
Sat Aug 11, 2012 12:32 am by 43nînjâ17