Quote:
Originally Posted by Avalon1300
And please, when the player wants to take the piece used by another, to display a message like "This piece is already used"
Edit: ShowSyncHudMsg(id, g_HudSync, "This object is already used");
|
Code:
else if (BlockLocker
(ent
))
{
if (BlockLocker
(ent
) == id ||
access(id, FLAGS_OVERRIDE
))
{
g_iOwnedEntities
[BlockLocker
(ent
)]--
set_pev
(ent,pev_rendermode,kRenderNormal
)
Add this print if someone steal the object of the player
client_print(BlockLocker
(ent
), print_center,
"An object of yours has been unclaimed")
UnlockBlock
(ent
)
client_cmd(id,
"spk %s", LOCK_OBJECT
);
}
else
{
Add this print if the opject is already used
client_print(id, print_center,
"This object is already used")
client_cmd(id,
"spk %s", LOCK_FAIL
);
}
}
__________________