Raised This Month: $ Target: $400
 0% 

Remove C4


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 07-09-2020 , 15:41   Re: Remove C4
Reply With Quote #1

Quote:
Originally Posted by +ARUKARI- View Post
https://forums.alliedmods.net/showthread.php?t=40164

PHP Code:
// Bomb gained (including spawn/give_item) event
    
register_event("WeapPickup""event_function""be""1=6"
PHP Code:
// How to strip the bomb from a player?
    
engclient_cmd(id"weapon_c4")
    
cs_set_user_bpammo(idCSW_C40)
    
engclient_cmd(id"lastinv")
    
// remove bomb hud icon
    
message_begin(MSG_ONEget_user_msgid("StatusIcon"), _id)
    
write_byte(0)
    
write_string("c4")
    
message_end() 
Thanks it's worked fine, I think that Oo
Do you know how to add it like set_tesk without register_event becuase i want to add it for respown event
Ps: i tried but i got some erorrs like the game get closed automaticly

Last edited by Supremache; 07-09-2020 at 18:46.
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 17:14.


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