Li1M0ST3Rz
I <3 Bianca
- Sep 13, 2010
- 269
- 166
i coded command calls:
aytaxes
:taxes
:startgame(hit my wall or die)
and :loserdie
commands:
but go to ur localhost or w.e n go to the db go to user add a column call "strike" "hitmywall"
and if u do not like it don't say anything remember if u got sumthing bad to say don't say it
aytaxes
:taxes
:startgame(hit my wall or die)
and :loserdie
commands:
Code:
#region Yohan Coded Commands
#region :paytaxes
case "paytaxes":
{
if (_isOwner == false)
{
sendData("BK" + "Checking if its the right amout cost 15c a month!");
Thread.Sleep(15000);
string credits;
credits = DB.runRead("SELECT credits FROM users WHERE name = '" + _Username + "'");
if (credits == "0")
{
sendData("BK" + "Failed from trying to scam us with 0 credits coded by yohans :)");
}
else
{
if (credits == "15")
sendData("BK" + "You paid thank you!");
DB.runQuery("UPDATE users SET credits -10 = credits - '15' WHERE name '" + _Username + "'");
Room.sendSaying(roomUser, "*paid my taxes*");
}
}
}
break;
#endregion
#region :loserdie
case "loserdie": //it part of startgame
{
if (_isOwner == false)
{
if (_roomID == 152)
{
virtualUser User = userManager.getUser(args[1]);
if (roomUser.walkLock == true)
{
if (_Mission == "Owner of this room starting hit my wall or die!")
User.sendData("D^" + "H" + Encoding.encodeVL64(321));
User.sendData("BK" + "You have been kicked out from the game called 'hit my wall or die'and sent to the hospital.");
Room.sendShout(roomUser, "*Knocks out " + args[1] + ", sending them to the hospital*", true);
DB.runQuery("UPDATE users SET health = 100 WHERE name = '" + _Username + "'");
DB.runQuery("UPDATE users SET kills = kills + 1 WHERE name = '" + _Username + "'");
DB.runQuery("UPDATE users SET deaths = deaths + 1, dead = '1', time_dead = '10' WHERE name = '" + User._Username + "'");
User._Mission = "[Injured] Civilian";
refreshAppearance(true, true, true);
ThreadStart koStarter = new ThreadStart(User.knockOut);
User.deadLooper = new Thread(koStarter);
User.deadLooper.Priority = ThreadPriority.Lowest;
User.deadLooper.Start();
User.roomUser.walkLock = true;
{
}
}
}
}
}
break;
#endregion
#region :taxes
case "taxes":
{
if (_isOwner == false)
{
string taxes;
taxes = DB.runRead("SELECT taxes FROM users WHERE name = '" + _Username + "'");
if (taxes == "0")
{
Room.sendSaying(roomUser, "*You haven't paid your taxes " + _Username + "*");
}
string strike;
strike = DB.runRead("SELECT strike FROM users WHERE name = '" + _Username + "'");
if (strike == "0")
{
sendData("BK" + "You have ur first warning sir or ma'am" + _Username + "");
DB.runQuery("UPDATE users SET strike = strike + 1 WHERE name = '" + _Username + "'");
}
else if (strike == "1")
{
sendData("BK" + "you have 1th strike come on before u get arrested" + _Username + "");
DB.runQuery("UPDATE users SET strike = strike + 1 WHERE name = '" + _Username + "'");
}
else if (strike == "2")
{
sendData("BK" + "you have 2nd strike come on before ur ass get arrested one more strike to go!" + _Username + "");
DB.runQuery("UPDATE users SET strike = '2' WHERE name = '" + _Username + "");
}
else if (strike == "3")
{
sendData("BK" + "your ass is getting arrested contacting police and police bot :)" + _Username + "");
DB.runQuery("UPDATE users SET strike = strike + 3 WHERE name = '" + _Username + "'");
sendData("BK" + "Police Call from " + _Username + " \r Message A UNWANTED PAYER WON'T PAY THE TAXES \r Room ID: " + _roomID + "" + Convert.ToChar(2));
}
}
}
break;
#endregion
#region :checkusertaxes
case "checkusertaxes":
{
if (rankManager.containsRight(_Rank, "fuse_administrator_access") == false)
return false;
else
{
{
virtualUser User = userManager.getUser(args[1]);
if (roomUser.walkLock == true)
{
}
else
{
}
string taxesstrike;
taxesstrike = DB.runRead("SELECT strike FROM users WHERE name = '" + User._Username + "'");
this.sendData("BK" +
"User info: " + taxesstrike + " there");
{
}
}
}
}
break;
#endregion
#region :startgame
case "startgame": //hit my wal or die
case "hmwod":
if (_isOwner == false)
{
if (_roomID == 152)
{
_Mission = ("Owner of this room starting hit my wall or die!");
{
if (_isInvisible == false && _Rynono == false)
{
_isInvisible = true;
}
}
Room.sendSaying(roomUser, "*Starting Hit my wall or die!");
string startgame;
startgame = DB.runRead("SELECT hitmywall FROM users WHERE name = '" + _Username + "'");
}
{
DB.runQuery("UPDATE users SET hitmywall = hitmywall + 1 WHERE name = '" + _Username + "'");
sendData("BK" + "Rules are: if any player hits the wall the win automaticly and other users die by typing: :losersdies");
}
}
break;
#endregion
#endregion
but go to ur localhost or w.e n go to the db go to user add a column call "strike" "hitmywall"
and if u do not like it don't say anything remember if u got sumthing bad to say don't say it