|
|
It is currently Sun May 19, 2024 8:31 am
|
View unanswered posts | View active topics
|
|
|
|
|
Users browsing this forum: No registered users and 0 guests |
|
|
|
|
|
|
|
|
|
Author |
Message |
TE-Shugo
Joined: Mon Sep 05, 2005 12:21 am Posts: 70 Location: YaY ArEa, CaLiForNia
|
Posted: Mon Aug 14, 2006 12:07 am Post subject: o_O afk script?
|
|
|
updated it
now u just say AFK and it will put u in obs and afk mode
Heres the first file name it
"ShugoAFKConfig.cs"
Code: | $YourName = "Shugo"; //Put your name here dont add any tags, Unless you dont have a space inbetween the tag and name. $Shugo::AFK=false;
exec("ShugoAFKScript"); |
heres part 2, name it "ShugoAFKScript.cs"
Code: | //Shugo AFK Script Part 2 //============================== //Do not touch below unless you know what you are doing //Please dont rip my code and say you made it //I useally dont post my scripts on forums
function onClientMessage(%clientId,%msg) { if($YourName == "") { remoteCP(2048,"<jc><f1>Shugo: ERROR, Check Console", 5); echo(" "); echo("Please type your name inside the file.cs"); echo("But for right now just type"); echo("$YourName = \""@Client::getName(%clientId)@"\";"); echo("in your console"); echo(" "); return true; } if(Client::getName(%clientId)==$YourName) { Shugo::Activate(%clientId,%msg); return true; } else { Shugo::AFK(%clientId, %msg); return true; } }
function Shugo::Activate(%clientId, %msg) { if(%msg=="AFK" || %msg=="afk" && $Shugo::AFK=="false") { remoteEval(2048, "scoresOn"); clientmenuselect("changeteams"); clientmenuselect("-2"); remoteCP(2048, "<jc><f3>Shugo: <f1>Activating AFK Mode", 5); schedule("$Shugo::AFK=true;",1); return true; } if(%msg=="Bak" || %msg=="Back" || %msg=="back" || %msg=="bak" && $Shugo::AFK=="true") { remoteEval(2048, "scoresOn"); clientmenuselect("changeteams"); clientmenuselect("1"); remoteCP(2048, "<jc><f3>Shugo: <f1>Disableing AFK Mode", 5); $Shugo::AFK=false; return true; } } function Shugo::AFK(%clientId, %msg) { $PersonName = Client::getName(%clientId); if(Client::getName(%clientId)==$YourName) { return; } else if(String::findSubStr(%msg, $YourName) != -1 && $Shugo::AFK) { say(0,"Sorry "@$PersonName@" but i am AFK right now~wsorry"); } }
function onClientJoin(%clientId) { exec("ShugoAFKScript.cs"); }
function onClientDrop(%clientId) { if(Client::getName(%clientId)==$YourName) { $Shugo::AFK=false; return true; } } |
have fun ^^, and hello TE again
|
|
|
|
|
|
|
|
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum
|
|
|
|
|
|
| |