- Joined
- Jun 5, 2010
- Messages
- 149
- Reaction score
- 7
Ok guys I think it would be cool if you culd be an associate of a gang. Ok,so you'd use this code (at the bottom) and you could always use this other guys code hmm a gang message of the day) so when your use the gate code your an associate of the gang and the owner could send a gang message to inform the other gang users. Hope you look oh yeah StAy BrEeZy
Code:
---------- Post added at 03:38 AM ---------- Previous post was at 03:19 AM ----------
[/COLOR]I think im releasing to much stuff
Code:
Code:
[B]if (Item.Sprite == "one_way_door*6")
{
if (_Credits < 25==53)
{
sendData("BK" + "You must have 25 credits to be an associate of 'GangName'.");
return;
}
string roomOwner;
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
{
roomOwner = dbClient.getString("SELECT owner FROM rooms WHERE id = '" + _roomID + "'");
dbClient.runQuery("UPDATE users SET credits = credits + '5' WHERE name = '" + roomOwner + "'");
dbClient.runQuery("UPDATE users SET credits = credits - '5' WHERE name = '" + _Username + "'");
User.refreshAppearance(true, true, true);
}
refreshValueables(true, false);
sendData("BK" + "You have been charged 25 credits for joining 'gangname'.");
}[/B]
[B][U]oh yeah the place were it says 'gangname' you put your gang name for the noobs.[/U][/B][COLOR="Silver"]
---------- Post added at 03:38 AM ---------- Previous post was at 03:19 AM ----------
[/COLOR]I think im releasing to much stuff
Last edited: