AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   userid of client admin spectating (https://forums.alliedmods.net/showthread.php?t=17260)

Obbin 08-28-2005 10:26

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

going to make an "takeover" plugin!

Charr 08-31-2005 17:15

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)

Zenith77 08-31-2005 17:33

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

pdoubleopdawg 08-31-2005 17:34

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

v3x 08-31-2005 18:06

Oops, PWNT! :P

Anyways, you could check the distances between yourself and the living player. But his way would probably be a bit more simple. :)

Obbin 09-01-2005 14:31

link zenit?
would loove thís!


Quote:

Originally Posted by pdoubleopdawg
Noone cares

I cares =/


All times are GMT -4. The time now is 14:25.

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