Raised This Month: $ Target: $400
 0% 

Get the id of the person i spectate


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Obbin
Senior Member
Join Date: Mar 2005
Location: 192.168.1.3
Old 01-02-2006 , 12:54   Get the id of the person i spectate
Reply With Quote #1

How to get the id of the person that i spectate?
It should owrk for locked chase cam, free chase cam and first person.
__________________
Sig(h)!
Obbin is offline
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 01-02-2006 , 13:27  
Reply With Quote #2

Use the event "SpecHealth2" I can't remember which arg is which persons id search the forums it was discussed before.
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 01-02-2006 , 14:31  
Reply With Quote #3

Most recently... http://forums.alliedmods.net/showthread.php?p=187401
Brad is offline
Obbin
Senior Member
Join Date: Mar 2005
Location: 192.168.1.3
Old 01-02-2006 , 14:46  
Reply With Quote #4

I understood nothing of that talk.
Isn't it possible to make a simple function that returns the id of the person "id" is spectating?

like
Code:
new Spectating = get_user_specting(id)
__________________
Sig(h)!
Obbin is offline
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 01-02-2006 , 15:06  
Reply With Quote #5

Not unless you code get_user_spectating yourself. If you'd care to hold on a few days, I'll post the necessary code to do this.
Brad is offline
Obbin
Senior Member
Join Date: Mar 2005
Location: 192.168.1.3
Old 01-02-2006 , 15:46  
Reply With Quote #6

Thank you so mutch!!
Ill watch this thread..
__________________
Sig(h)!
Obbin is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 01-02-2006 , 16:49  
Reply With Quote #7

Code:
register_event("StatusValue", "GetSpec", "bd", "1=2");
Code:
public GetSpec( id ) {   new x = read_data(2);   if(!is_user_connected(x)) return;     new name[33];   get_user_name(x, name, 32);   client_print(id, print_center, "You are spectating %s", name); }
Something I used for a plugin I made before. 'x' holds the person's ID that you're specatating, if I'm correct.
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
Reply



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 15:44.


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