Raised This Month: $ Target: $400
 0% 

userid of client admin spectating


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Obbin
Senior Member
Join Date: Mar 2005
Location: 192.168.1.3
Old 08-28-2005 , 10:26   userid of client admin spectating
Reply With Quote #1

how do I get the userid of the client that <admin> is spectating?

going to make an "takeover" plugin!
__________________
Sig(h)!
Obbin is offline
Charr
Senior Member
Join Date: Jul 2005
Location: Long Island, New York, U
Old 08-31-2005 , 17:15  
Reply With Quote #2

use:
Code:
if(!is_user_alive(id)) && is_user_admin(id)) { }

Edit: Actully, the above code will return a dead admin spectating. I didnt under stand what you wanted, but use this instead:
Code:
public check_aim(id) {    new target,body,hudline,steam    get_user_aiming(id,target,body,9999)    get_user_authid(target,steam,sizeof(steam))   format(hudline,"[AMXX] SteamID: %s",steam)   set_hudmessage(0,0,255,-1.0,0.35,0,6.0,3.0,0.5,0.5,CHAN_AUTO )   show_hudmessage(id,hudline)    return PLUGIN_CONTINUE }
The Above function will show a hud message containing your target's steam id for a maxium distance of 9999 HL units ( 12 = 1 foot, 96 = Player height)
Charr is offline
Send a message via AIM to Charr Send a message via MSN to Charr
Zenith77
Veteran Member
Join Date: Aug 2005
Old 08-31-2005 , 17:33  
Reply With Quote #3

obbin..if you cant do that..i dont think you will be able to make that plugin...and the fact thats its alread been made! plus if you really want one..i ported one, just havent postedi t...and *GASPS* it works
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
pdoubleopdawg
Senior Member
Join Date: Aug 2005
Old 08-31-2005 , 17:34  
Reply With Quote #4

Quote:
Originally Posted by Zenith77
obbin..if you cant do that..i dont think you will be able to make that plugin...and the fact thats its alread been made! plus if you really want one..i ported one, just havent postedi t...and *GASPS* it works
Noone cares
pdoubleopdawg is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 08-31-2005 , 18:06  
Reply With Quote #5

Oops, PWNT!

Anyways, you could check the distances between yourself and the living player. But his way would probably be a bit more simple.
__________________
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
Obbin
Senior Member
Join Date: Mar 2005
Location: 192.168.1.3
Old 09-01-2005 , 14:31  
Reply With Quote #6

link zenit?
would loove thís!


Quote:
Originally Posted by pdoubleopdawg
Noone cares
I cares =/
__________________
Sig(h)!
Obbin 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 14:25.


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