Quote:
Originally Posted by zombieplague
i did a lot of searching before posting. what does this mean ?
PHP Code:
if ( ( read_data( 4 ) || read_data( 5 ) || read_data( 6 ) ) )
PHP Code:
if ( ( 1 <= id <= g_iMaxPlayers ) && is_user_connected( id ) )
PHP Code:
new iPos = ++g_iPlayerPos[ id ]
if( iPos == sizeof( g_flCoords ) )
{
iPos = g_iPlayerPos[ id ] = 0
}
|
1. Means nothing without context. The read_data() is
reading
data from a registered event. See
this for what data is being retrieved for your event.
2. Checks if the id is a valid player entity number and if the id is connected (obviously).
3. Means nothing without context.
Quote:
Originally Posted by zombieplague
can i anyhow put id, attacker, victim for some case ?
PHP Code:
register_event( "Damage", "Event_Damage", "b", "2>0", "3=0" )
public Event_Damage( iVictim )
{
|
Find a plugin that uses this event and see how it's done.
__________________