Raised This Month: $ Target: $400
 0% 

Event_DeathMsg if server


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
DWIGHTpN
Senior Member
Join Date: Jan 2013
Location: Romania.
Old 10-27-2013 , 14:55   Re: Event_DeathMsg if server
Reply With Quote #6

Code:
#define IsPlayer(%1)    ( 1 <= %1 <= g_iMaxPlayers )
In hlds , players get a number (id). This id can be 1,2, ..., max players (32 is max on HLDS).

So, this function check if iKiller (id) is player and not something else (fall, world , etc).
Than to write
Code:
if( 1 <= iKiller <= g_iMaxPlayers )
, with this function can write
Code:
if( IsPlayer( iKiller ) )
.

You understand ?
DWIGHTpN is offline
 



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 23:20.


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