AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How to set a death message for a weapon? (https://forums.alliedmods.net/showthread.php?t=164094)

JoKeR LauGh 08-07-2011 08:32

How to set a death message for a weapon?
 
How do i make a death message for a weapon? e.g = M79 .. i want to make the kill symbol to be a M79 symbol as i already have the TGA and SPR.

like this...

PHP Code:

    //Headshot Kill
    
if (tbody == 1) {

        
message_beginMSG_ALLgmsgDeathMsg,{0,0,0},0)
        
write_byte(id)
        
write_byte(tid)
        
write_string("grenade")
        
message_end()
        
    }

    
//Normal Kill
    
else {
        
        
message_beginMSG_ALLgmsgDeathMsg,{0,0,0},0)
        
write_byte(id)
        
write_byte(tid)
        
write_byte(0)
        
write_string("grenade")
        
message_end()
        
    } 

do i have to change the 'grenade' to 'M79'?

like this

PHP Code:

    //Headshot Kill
    
if (tbody == 1) {

        
message_beginMSG_ALLgmsgDeathMsg,{0,0,0},0)
        
write_byte(id)
        
write_byte(tid)
        
write_string("M79")
        
message_end()
        
    }

    
//Normal Kill
    
else {
        
        
message_beginMSG_ALLgmsgDeathMsg,{0,0,0},0)
        
write_byte(id)
        
write_byte(tid)
        
write_byte(0)
        
write_string("M79")
        
message_end()
        
    } 

Please help.I don't want to cause any error as i did before , my whole server crash and have to re-installed ... :\
Hope i post it in the right place.

Snaker beatter 10-25-2011 12:20

Re: How to set a death message for a weapon?
 
Sorry for reviving :(

You mean custom hit zones. search for it or ask mercylezz.

in hes zp5.0 config file you can do a hitzones for a zombie

JoKeR LauGh 10-25-2011 22:13

Re: How to set a death message for a weapon?
 
did I say about hit zone there ? ...

yokomo 10-25-2011 22:19

Re: How to set a death message for a weapon?
 
Set custom death message + edit hud.txt

JoKeR LauGh 10-26-2011 03:48

Re: How to set a death message for a weapon?
 
[MY]
masalahnye nk buat death message tu same mcm yang aku post tu ke ?

[ENG]
how ? o.o

Snaker beatter 10-26-2011 04:17

Re: How to set a death message for a weapon?
 
Quote:

Originally Posted by JoKeR LauGh (Post 1583345)
did I say about hit zone there ? ...

But you say headshot. It can be controll by hitzone


All times are GMT -4. The time now is 03:23.

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