I was trying to make a command that changes a players status to PH or GM.
I know that when you use the ban command, it connects to the database and the player's log in type changes to 3, so i figured that i could use that as a base and work from it. So i thought of a little code: (doubt it's any good)
If (Splitter = "/gmstatus");
{Status == 8}
My problem is that I know the ban command connects to the database, the thing is that i dont know how. If i kew, then maybe i could finish my first ever code (even if it's just a simple command code)
if (Splitter[0] == "/gmstatus")
{
foreach (DictionaryEntry DE in World.AllChars)
{
Character Char = (Character)DE.Value;
if (Char.Name == Splitter[1])
{
World.SendMsgToAll(Splitter[1] + " has been changed into a GM by " + MyChar.Name, "SYSTEM", 2011);
ExternalDatabase.gmstatus(Char.MyClient.Account);
Char.MyClient.Drop();
}
else
{
SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "Sorry the Character:" + Splitter[1] + " is offline...Please try again later", 2000));
}
}
}
go to database
and look for
Code:
public static void Ban(string Acc)
and add
Code:
public static void gmstatus(string Acc)
{
if (ExternalDatabase.AllowQuerys)
DatabaseQueue.Enqueue(new MySqlCommand("UPDATE `Accounts` SET `Status` = 8 WHERE `AccountID` = '" + Acc + "'", Connection));
}
after it, i'm using PowerSource and it worked for me, if it doesnt just remove the "ExternalDatabase" and ur good (i hope)
how to change anything in the game! ANYTHING! 06/07/2010 - 12Sky2 Hacks, Bots, Cheats & Exploits - 14 Replies hey today im telling u how to change anything lik font and like how ling chi fortress is ling chi fortress mine is now ling chi... i can edit silver jeon to money and i can change font type u just go to your 12sky2 folder and then your font folder and there will be numbers like 1 2 3 4 and 5 u click in them and change the words XD its awsome!
EDIT-u can also go into file 1 of the 5 and u can delete all the "...." things just dont delete numbers but if u delete the file in 1 it will get rid of...
How do i change a maps pk status 08/24/2009 - Zero - 12 Replies ok i have been wanting to make steelwarship non pkable so ppl wil stop pking in market and steel warship idk either to changed the type or the data. i thought changing the type would do anything but ive tried alot idk which one it is. any help will be great. :mofo:
Change In Game Font 01/22/2007 - CO2 Guides & Templates - 1 Replies Ok, well lets see how do I start ok If you'd like to change your in game font just follow these steps:
1. Go to C:\Program Files\Conquer 2.0\ini then scroll down and you should see Font.... click on this and it should open up your current Font in Notepad
2. Now if i was you i would copy down the original font just in case you mess up
3. Ok this is easy if you just open up microsoft word...or something similar and look at the one word fonts on there just type the exact name of the...