Lol, where is the credits you ripped this from doomed. This is just the fame command with changed currency....
Open AdminCommands.cs and paste at the bottom of the file
Code:class GoldCommand : ICommand { public string Command { get { return "gold"; } } public int RequiredRank { get { return 3; } } public void Execute(Player player, string[] args) { try { if (args.Length == 0) { player.SendHelp("Use /gold <ammount>"); } else if (args.Length == 1) { using (Database dbx = new Database()) { player.Credits = dbx.UpdateCredit(player.Client.Account, int.Parse(args[0])); player.UpdateCount++; } } } catch { player.SendError("Error!"); } } }
Lol, where is the credits you ripped this from doomed. This is just the fame command with changed currency....
Uh it wasnt ripped from doom herp derp. I never even downloaded doomed source lmfao. I love how people think because code is similar or the same its automatically stolen?
What im supposed to rewrite the whole server just because the code i typed happens to be in someone elses source? Get a life and i never claimed credit for it :P
Well first of all, i might took mistake, this is also on clubs anyways, what is the chance you code your own code that is similare to another one. And i have a life. But it sounds like your oppinion of "life" is all about making a good single code since your only tutorial thread is this one revealing what you point to be your "own" work. Now you didnt annoy me as you perhaps wanted to but at all made me feel sad for you. I have nothing else to say.
lkdjnfoskjednfblksjdfn (07-02-2015)