AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [SOLVED]replace target bombed & hsa been saved (https://forums.alliedmods.net/showthread.php?t=154721)

One 04-12-2011 11:08

[SOLVED]replace target bombed & hsa been saved
 
i tried to find anything to replace the msg but found nothing.

i tried to replace it with :

PHP Code:

register_event("23""event_bomb_explosion""a""1=17""6=-105""7=17")

public 
event_bomb_explosion()
{
    
message_begin(MSG_ALLg_msg_text)
    
write_byte((1<<2))
    
write_string("#Catchers won the round!")
    
message_end()



Arkshine 04-12-2011 11:41

Re: replace targed bombed & hsa been saved
 
You need to hook TextMsg. And again, already asked and answered a billion of times. Please search.

dFF 04-12-2011 11:46

Re: replace targed bombed & hsa been saved
 
http://icanhascheezburger.files.word...n-haystack.jpg

ConnorMcLeod 04-12-2011 11:52

Re: replace targed bombed & hsa been saved
 
TextMsg arg 1 is not a bit but an integer.

The one you need it arg 1 == 4 (print_center) and arg 2 = "#Target_Bombed"

Hook TextMsg or register the event and send a new message.

One 04-12-2011 12:02

Re: replace targed bombed & hsa been saved
 
ty connor.

txtmsg is hooked else i would get errors.


All times are GMT -4. The time now is 19:49.

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