[CEEJAY][RP]Obtain a weapon[RP][CEEJAY]
Right, Ive just translated this from a server i got given. And Since none of you have coded it yet / published on ragezone, I thought why not publish it
Right heres the command:
Code:
#region obtain/buy
case "obtain": // Buy a weapon
case "buywep": // Buy a weapon
{
if (_roomID != 25)
{
sendData("BK" + "You must be at a weapon shop to obtain one!");
}
else
{
string weapon = args[1];
{
if (weapon == "bat")
{
string drinkid;
drinkid = "??";
sendData("BK" + "*Purchases a Bat*");
statusManager.carryItem(drinkid);
DB.runQuery("UPDATE users SET credits = credits - '??' WHERE name = '" + _Username + "'");
DB.runQuery("UPDATE users SET bat = '1' WHERE name = '" + _Username + "'");
}
if (weapon == "bottle")
{
string drinkid;
drinkid = "??";
sendData("BK" + "*Purchases a Bottle*");
statusManager.carryItem(drinkid);
DB.runQuery("UPDATE users SET credits = credits - '??' WHERE name = '" + _Username + "'");
DB.runQuery("UPDATE users SET bottle = '1' WHERE name = '" + _Username + "'");
}
if (weapon == "gun")
{
string drinkid;
drinkid = "??";
statusManager.carryItem(drinkid);
sendData("BK" + "*Purchases a Gun*");
DB.runQuery("UPDATE users SET credits = credits - '??' WHERE name = '" + _Username + "'");
DB.runQuery("UPDATE users SET gun = '1' WHERE name = '" + _Username + "'");
}
if (weapon == "bullets")
{
sendData("BK" + "*Purchases ?? Bullets*");
DB.runQuery("UPDATE users SET credits = credits - '??' WHERE name = '" + _Username + "'");
DB.runQuery("UPDATE users SET bullets = bullets + '??' WHERE name = '" + _Username + "'");
}
}
}
}
break;
#endregion
You'l haveto change the text in red to your DCR number thing.
And change all green text to what you want (For some its credits and other its amount of bullets etc..)
Now time for the lovely credits:
Credits:
Cobe: For Giving me command
Me For Translating it into Non-TDBP ( Calebs server)
Caleb: For making pheonix server so i can translate
Sledmore For Helping me learn to code
Xavi For CCTs
OH you need to add
bat, bullets gun and bottle :)
Enjoy Guys..
BUT Other than that
95% CREDITS TO COBE FOR COMMAND!
Re: [CEEJAY][RP]Obtain a weapon[RP][CEEJAY]
How is Aaron inspiration?
He never released weapons..
Re: [CEEJAY][RP]Obtain a weapon[RP][CEEJAY]
Quote:
Originally Posted by
Shacobesaurus
How is Aaron inspiration?
He never released weapons..
Because he made the RP. And I doubt Any of the weps would be here if he hadnt made HabboRP
Re: [CEEJAY][RP]Obtain a weapon[RP][CEEJAY]
These commands aren't "RP" orientated. :]
You can use these for about any type of hotel..
As all these do is brings out a drink item..
Re: [CEEJAY][RP]Obtain a weapon[RP][CEEJAY]
Removed his credits then :\
Anyways cmon anyone else?
Re: [CEEJAY][RP]Obtain a weapon[RP][CEEJAY]
Nice release but im not into rp anymore :P
Re: [CEEJAY][RP]Obtain a weapon[RP][CEEJAY]
Quote:
Originally Posted by
♫Žak♫ ツ
Nice release but im not into rp anymore :P
Lol - Thanks
(Add me Zak - DJCeejay@myself.com)
Re: [CEEJAY][RP]Obtain a weapon[RP][CEEJAY]
Will it Stop it from Drinking the Weapon??
Re: [CEEJAY][RP]Obtain a weapon[RP][CEEJAY]
Nice release, Thanks for credits. I don't like weapons tbh lol. I added them in my RP cause it attracted users, But In my own opinion, Don't like em, Too easy to kill.
Re: [CEEJAY][RP]Obtain a weapon[RP][CEEJAY]
Nice Release, Im making a rp soon sure to use ;)
Re: [CEEJAY][RP]Obtain a weapon[RP][CEEJAY]
Quote:
Originally Posted by
cooldude159
Will it Stop it from Drinking the Weapon??
Quote:
Originally Posted by
Sledmore
Nice release, Thanks for credits. I don't like weapons tbh lol. I added them in my RP cause it attracted users, But In my own opinion, Don't like em, Too easy to kill.
Quote:
Originally Posted by
Seano2o6
Nice Release, Im making a rp soon sure to use ;)
Thanks guys :)
Sledmore - I agree but yano
cooldude Idk Tbh. you'd haveto do it
Re: [CEEJAY][RP]Obtain a weapon[RP][CEEJAY]
You didnt have to.. just trying to make a point D;
Re: [CEEJAY][RP]Obtain a weapon[RP][CEEJAY]
Re: [CEEJAY][RP]Obtain a weapon[RP][CEEJAY]
pretty good release thanks :D
Re: [CEEJAY][RP]Obtain a weapon[RP][CEEJAY]
Thanks guys ;) Much appriciated.