Raised This Month: $ Target: $400
 0% 

[SOLVED]How to use this native


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Snaker beatter
Veteran Member
Join Date: Sep 2011
Location: Manila, Philippines
Old 11-02-2011 , 01:43   [SOLVED]How to use this native
Reply With Quote #1

how to get the id of the attacker on this native get_user_attacker.

example: get_user_team(victim) == attacker
__________________
Snaker beatter is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 11-02-2011 , 02:33   Re: How to use this native
Reply With Quote #2

What do you mean? get_user_attacker() returns the id of the attacker.

Check the funcwiki before posting any question about a native or other function.

http://www.amxmodx.org/funcwiki.php?..._att&go=search
__________________

Last edited by fysiks; 11-02-2011 at 02:34.
fysiks is offline
Snaker beatter
Veteran Member
Join Date: Sep 2011
Location: Manila, Philippines
Old 11-02-2011 , 03:00   Re: How to use this native
Reply With Quote #3

Quote:
Originally Posted by fysiks View Post
What do you mean? get_user_attacker() returns the id of the attacker.

Check the funcwiki before posting any question about a native or other function.

http://www.amxmodx.org/funcwiki.php?..._att&go=search
I din't understand this native so i go here
__________________
Snaker beatter is offline
JoKeR LauGh
Veteran Member
Join Date: May 2011
Location: Malaysia
Old 11-02-2011 , 03:10   Re: How to use this native
Reply With Quote #4

http://www.amxmodx.org/funcwiki.php?go=func&id=159

get_user_team - Returns the id of a team.

get_user_attacker - Returns the index of an attacking player.
JoKeR LauGh is offline
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 11-02-2011 , 03:56   Re: How to use this native
Reply With Quote #5

In your example
PHP Code:
if(get_user_team(iVictim) == get_user_team(iAttacker)
{
     
//Both on same team.

Doc-Holiday is offline
Snaker beatter
Veteran Member
Join Date: Sep 2011
Location: Manila, Philippines
Old 11-02-2011 , 07:30   Re: How to use this native
Reply With Quote #6

Quote:
Originally Posted by JoKeR LauGh View Post
http://www.amxmodx.org/funcwiki.php?go=func&id=159

get_user_team - Returns the id of a team.

get_user_attacker - Returns the index of an attacking player.
Quote:
Originally Posted by Doc-Holiday View Post
In your example
PHP Code:
if(get_user_team(iVictim) == get_user_team(iAttacker)
{
     
//Both on same team.

should be like this? get_user_attacker(victim) == attacker???
__________________
Snaker beatter is offline
Dark Style
BANNED
Join Date: Feb 2011
Location: Brazil
Old 11-02-2011 , 07:57   Re: How to use this native
Reply With Quote #7

Code:
if(get_user_attacker(idvictim) == idattacker)
{
}
Dark Style is offline
Snaker beatter
Veteran Member
Join Date: Sep 2011
Location: Manila, Philippines
Old 11-02-2011 , 11:01   Re: How to use this native
Reply With Quote #8

Thanks

__________

The zp plugin advaced antidote gun uses:

PHP Code:
get_user_attacker(victimweapid)

if (
weapid == csw_scout)
{
        
zp_disinfect_user(id)

__________________
Snaker beatter is offline
Reply


Thread Tools
Display Modes

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 14:18.


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