Raised This Month: $ Target: $400
 0% 

Function to check wall kill?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 10-31-2015 , 08:20   Re: [HELP] Function to check wall kill?
Reply With Quote #1

Try upgrading to 1.8.3?
__________________
Bugsy is offline
CHE4TER
Member
Join Date: Jul 2013
Location: Portugal
Old 10-31-2015 , 08:50   Re: [HELP] Function to check wall kill?
Reply With Quote #2

Quote:
Originally Posted by Bugsy View Post
Try upgrading to 1.8.3?
Nevermind about new version, i have updated and works fine! Big thanks for you!
I added screenfade but seems that something is crashing the server.

PHP Code:
new nKiller 
PHP Code:
    if ( iIsHeadshot && ( g_bLastAttackWasWalliVictim ][ iKiller ] == true ) )
    {
    
// client_print( 0 , print_chat , "Headshot wall kill" );
    
screenFade()
    
set_dhudmessage(1001000, -1.00.1511.01.00.10.1)
    
show_dhudmessage(iKiller"HEADSHOT WALL KILL !!!")
    } 
PHP Code:
public screenFade()
{
    
message_begin(MSG_ONEget_user_msgid("ScreenFade"), {0,0,0}, nKiller)
    
write_short(1<<10)
    
write_short(1<<10)
    
write_short(0x0000)
    
write_byte(255)
    
write_byte(0)
    
write_byte(0)
    
write_byte(100)
    
message_end()

CHE4TER is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 10-31-2015 , 09:03   Re: [HELP] Function to check wall kill?
Reply With Quote #3

I didn't check your screen fade code but I can see you are not specifying the killer id to the function.

Try:
PHP Code:
if ( iIsHeadshot && ( g_bLastAttackWasWalliVictim ][ iKiller ] == true ) )
{
    
// client_print( 0 , print_chat , "Headshot wall kill" );
    
screenFadeiKiller )
    
set_dhudmessage(1001000, -1.00.1511.01.00.10.1)
    
show_dhudmessage(iKiller"HEADSHOT WALL KILL !!!")
}  

public 
screenFadeiKiller )
{
    
message_begin(MSG_ONEget_user_msgid("ScreenFade"), {0,0,0}, iKiller )
    
write_short(1<<10)
    
write_short(1<<10)
    
write_short(0x0000)
    
write_byte(255)
    
write_byte(0)
    
write_byte(0)
    
write_byte(100)
    
message_end()

__________________
Bugsy is offline
CHE4TER
Member
Join Date: Jul 2013
Location: Portugal
Old 10-31-2015 , 09:10   Re: [HELP] Function to check wall kill?
Reply With Quote #4

Big thanks bro! Is working well ;)
CHE4TER is offline
Old 02-28-2016, 20:35
CHE4TER
This message has been deleted by CHE4TER.
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 18:03.


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