Raised This Month: $51 Target: $400
 12% 

Base Builder Locking


Post New Thread Reply   
 
Thread Tools Display Modes
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 07-10-2021 , 12:43   Re: Base Builder Locking
Reply With Quote #11

Quote:
Originally Posted by Avalon1300 View Post
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);                 }             }
__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.

Last edited by Supremache; 07-10-2021 at 13:03.
Supremache is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:02.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode