AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Questions (https://forums.alliedmods.net/showthread.php?t=141303)

zombieplague 10-22-2010 07:44

Questions
 
i did a lot of searching before posting. what does this mean ?

PHP Code:

if ( ( read_data) || read_data) || read_data) ) ) 

PHP Code:

if ( ( <= id <= g_iMaxPlayers ) && is_user_connectedid ) ) 

PHP Code:

new iPos = ++g_iPlayerPosid ]
if( 
iPos == sizeofg_flCoords ) )
{
    
iPos g_iPlayerPosid ] = 0


can i anyhow put id, attacker, victim for some case ?

PHP Code:

register_event"Damage""Event_Damage""b""2>0""3=0" )

public 
Event_DamageiVictim )



fysiks 10-22-2010 18:36

Re: Questions
 
Quote:

Originally Posted by zombieplague (Post 1331588)
i did a lot of searching before posting. what does this mean ?

PHP Code:

if ( ( read_data) || read_data) || read_data) ) ) 

PHP Code:

if ( ( <= id <= g_iMaxPlayers ) && is_user_connectedid ) ) 

PHP Code:

new iPos = ++g_iPlayerPosid ]
if( 
iPos == sizeofg_flCoords ) )
{
    
iPos g_iPlayerPosid ] = 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 (Post 1331588)
can i anyhow put id, attacker, victim for some case ?

PHP Code:

register_event"Damage""Event_Damage""b""2>0""3=0" )

public 
Event_DamageiVictim )



Find a plugin that uses this event and see how it's done.


All times are GMT -4. The time now is 10:29.

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