Raised This Month: $ Target: $400
 0% 

Events, log events, entities.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
pizzahut
Senior Member
Join Date: Oct 2004
Old 05-14-2005 , 10:51  
Reply With Quote #5

I've tried this, but it's not returning the info I need?
If I aim at a player, I *will* get the team number.
If I aim at an object (SG, disp etc), team number is 0.
The owner of such an object is also 0.
Code:
    new player_team     new victim_team     new owner     new owner_team     player_team = entity_get_int(id, EV_INT_team)     victim_team = (victim==0) ? 0 : entity_get_int(victim, EV_INT_team)     owner = (victim==0) ? 0 : entity_get_edict(victim, EV_ENT_owner)     owner_team = (owner==0) ? 0 : entity_get_int(owner, EV_INT_team)     client_print(id, print_chat, "player team = %d, victim team = %d, owner = %d, owner_team = %d^n", player_team, victim_team, owner, owner_team)
pizzahut 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 16:44.


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