What Colour Is it To Make Sure its not A Main Gate Likee Jail Etc
Printable View
What Colour Is it To Make Sure its not A Main Gate Likee Jail Etc
:reload_user <username>
Rasta's v26 RP
Reloads that user in the room but stays in the same spot when reloaded.
For my buds RP. I asked if he could code it but he is used to r54 coding D:
If Its R54 Holograph Its Same. Mhhm Same Place Thats Like HabboRP When You Come Back On Same Spot You May Need A DB Field In Users With the Cords And Onloadroom Should Have The Room I'll Give It A Shot But Im Busy With That Gate Code :P
I'll Make it
it is pretty easy ;]
If Zak doesnt make it
Hold On Im Almost done
---------- Post added at 01:12 PM ---------- Previous post was at 12:48 PM ----------
Code:if (Item.Sprite == "one_way_door*4")
{
if (_Mission == "[Game] Brawl")
{
sendData("BK" + "Sorry, but you must Be In A Game Of Brawl To Enter.");
return;
}
}
if (Item.Sprite == "one_way_door*7")
{
if (_Mission == "[Game] Deathmatch")
{
sendData("BK" + "Sorry, but you must Be In A Game Of Deathmatch To Enter.");
return;
}
}
---------- Post added at 01:14 PM ---------- Previous post was at 01:12 PM ----------
I Tried The Reload User One Did'nt work i'll try somthing later
---------- Post added at 01:15 PM ---------- Previous post was at 01:14 PM ----------
And Any Requests
Zak you failed..
Here it goes!
and DeathMatchPHP Code:if (Item.Sprite == “one_way_door*4″)
{
string roomOwner;
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
{
roomOwner = dbClient.getString("SELECT owner FROM rooms WHERE id = '" + _roomID + "'");
_Mission = "[Game] Brawl";
refreshAppearance(false, true, true);
Room.sendShout(roomUser, "*Cures " + _Username + "*");
dbClient.runQuery(“UPDATE users SET health = '100' WHERE name = '" + _Username + "'");
Room.sendShout(roomUser, "*" + _Username + " Joins this brawl session*");
refreshValueables(true, false);
sendData("BK" + "You are now apart of the this brawl session, please get ready.");
}
Done in 12 MinutesPHP Code:if (Item.Sprite == “one_way_door*7″)
{
string roomOwner;
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
{
roomOwner = dbClient.getString("SELECT owner FROM rooms WHERE id = '" + _roomID + "'");
_Mission = "[Game] Deathmatch";
refreshAppearance(false, true, true);
Room.sendShout(roomUser, "*Cures " + _Username + "*");
dbClient.runQuery(“UPDATE users SET health = '100' WHERE name = '" + _Username + "'");
Room.sendShout(roomUser, "*" + _Username + " Joins this deathmatch session*");
refreshValueables(true, false);
sendData("BK" + "You are now apart of the this deathmatch session, please get ready.");
}
i thought he ment only people who are in the brawl can enter?
Thank you cobe, if i get any errors, i'll you
EDIT: It has errors.
unless it got added wrong.
Hey, does anyone know the clothing code yet?
@Mango, you told me you know it?
Ik th elong way i wont the shortcut fuserp uses.
aye mate here ya go A throw grenade code
[C][C]region :grenade <user>
case "grenade":
{
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
{
virtualUser User = userManager.getUser(args[1]);
if (roomUser.walkLock == true)
{
sendData("BK" + "Nice try, But You Cant throw a grenade While Stunned.");
}
else
{
{
int isArrested = dbClient.getInt("SELECT arrested FROM users WHERE name = '" + _Username + "'");
int canShoot = dbClient.getInt("SELECT grenade FROM rooms WHERE id = '" + _roomID + "'");
int isAfk = dbClient.getInt("SELECT afk FROM users WHERE name = '" + User._Username + "'");
if (isAfk == 1)
{
sendData("BK" + "Nice Try Cant throw a grenade If There AFK.");
}
else
{
if (isArrested < 1)
{
if (cangrenade == 1)
{
sendData("BK" + "Sorry But You Cant throw grenades In This Room");
}
else
{
if (User._roomID == _roomID && (roomUser.Y == User.roomUser.Y && roomUser.X == User.roomUser.X) || (roomUser.Y + 1 == User.roomUser.Y && roomUser.X == User.roomUser.X) || (roomUser.Y - 1 == User.roomUser.Y && roomUser.X == User.roomUser.X) || (roomUser.Y == User.roomUser.Y && roomUser.X + 1 == User.roomUser.X) || (roomUser.Y == User.roomUser.Y && roomUser.X - 1 == User.roomUser.X))
{
int myHealth = dbClient.getInt("SELECT health FROM users WHERE name = '" + User._Username + "'");
Random randNum = new Random();
int grenade_dif_0 = 10;
//what a user throws a grenade
int grenade = shoot_dif_0;
int getgrenade = myHealth - shoot;
if (getgrenade< 1 && _Username == User._Username)
{
sendData("BK" + "You Cant Kill Yourself.");
}
else
{
dbClient.runQuery("UPDATE users SET health = health - '" + shoot + "' WHERE name = '" + User._Username + "'");;
int health_db_ko = dbClient.getInt("SELECT health FROM users WHERE name = '" + User._Username + "'");
Room.sendShout(roomUser, "*Throws a grenade at " + args[1] + ", causing " + grenade + " damage and gets 10 credits*");
//if the user has 0 health left
if (health_db_ko < 1)
{
if (User._Mission == "[Game] Deathmatch" || User._Mission == "[Game] Brawl")
{
Room.sendShout(roomUser, "*Throws a grenade " + args[1] + ", sending them to the lobby*");
if (User._Mission == "[Game] DeathMatch")
{
if (_Mission == "[Game] Deathmatch")
{
dbClient.runQuery("UPDATE users SET game_dm = game_dm + '10' WHERE name = '" + _Username + "'");
}
User.sendData("D^" + "H" + Encoding.encodeVL64(272));
User.sendData("BK" + "Thank you for playing deathmatch You bloody bitch.");
}
if (User._Mission == "[Game] Shoot match")
{
if (_Mission == "[Game] Shoot Match")
{
dbClient.runQuery("UPDATE users SET game = game_dm + '1' WHERE name = '" + _Username + "'");
}
User.sendData("D^" + "H" + Encoding.encodeVL64(181));
User.sendData("BK" + "Thank you for playing Shoot Match.");
}
User.refreshAppearance(true, true, true);
dbClient.runQuery("UPDATE users SET health = '100' WHERE name = '" + User._Username + "'");
}
else
{
User.sendData("D^" + "H" + Encoding.encodeVL64(153));
User.sendData("BK" + "exploded Dead By " + _Username + " ");
Room.sendShout(roomUser, "*Throws a grenade " + args[1] + ", Killing them*");
dbClient.runQuery("UPDATE users SET kills = kills + 1 WHERE name = '" + _Username + "'");
dbClient.runQuery("UPDATE users SET deaths = deaths + 1, dead = '1', time_dead = '10' WHERE name = '" + User._Username + "'");
User._Mission = "Dead";
int user;
user = dbClient.getInt("SELECT name FROM users WHERE id = '" + _roomID + "'");
dbClient.runQuery("UPDATE users SET credits = credits + '10' WHERE name = '" + _Username + "'");
dbClient.runQuery("UPDATE users SET credits = credits - '10' WHERE name = '" + User._Username + "'");
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;
}
}
}
}
else
{
if (User._roomID == _roomID && (roomUser.Y + 1 == User.roomUser.Y && roomUser.X + 1 == User.roomUser.X) || (roomUser.Y - 1 == User.roomUser.Y && roomUser.X - 1 == User.roomUser.X) || (roomUser.Y - 1 == User.roomUser.Y && roomUser.X + 1 == User.roomUser.X) || (roomUser.Y + 1 == User.roomUser.Y && roomUser.X - 1 == User.roomUser.X))
{
Room.sendShout(roomUser, "*Throws a grenade at " + args[1] + ", but misses*");
}
}
}
}
}
}
}
}
break;
}
#endregion[C][/C]
Ye, I Would Really Like The Purchase, Buy, Wear or w.e you call it command that changes your figure id...
And Also, Does Anyone Know a code that changes your skin colour to be red
Hc red if possible, if not, any sharp looking red
All For Rastas RP Emu
Thankz Alot