Sending dead to the hospital - RP

jererosas15

New Member
Sep 18, 2016
24
2
Hi,
I need to achieve that when a user dies it is sent to room 2, (hospital)
How to send dead habbos to the hospital?





Thanks :)
 

jererosas15

New Member
Sep 18, 2016
24
2
Do a if statement to check if they're dead then use the prepareroom method
if (Client.GetRoleplay().IsDead)
{
Client.SendMessage(new RoomNotificationComposer("room_death_axe", "message", "¡Usted murió! Usted está siendo transportado al hospital."));
RoleplayManager.SendUser(Client, HospitalRID);
RoleplayManager.SpawnBeds(Client, "hosptl_bed");
RoleplayManager.SendUser(Client, Convert.ToInt32(RoleplayData.GetData("hospital", "roomid2")));
}
 

Mikee

Active Member
Jul 8, 2017
162
102
TargetClient.SendPacket(new RoomForwardComposer(ROOMID);
try using this ^^^ instead of...

use this to send them into the hospital instead of
"RoleplayManager.SendUser(Client, HospitalRID); "
 

jererosas15

New Member
Sep 18, 2016
24
2
TargetClient.SendPacket(new RoomForwardComposer(ROOMID);
try using this ^^^ instead of...

use this to send them into the hospital instead of
"RoleplayManager.SendUser(Client, HospitalRID); "
Thank you for help

But it's still bad

GomMb2fxScWcwFSdCAzJPg.png
 

Users who are viewing this thread

Top