AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Check if player host? (https://forums.alliedmods.net/showthread.php?t=229086)

Phant 11-01-2013 10:33

Check if player host?
 
Hello.
How I can check if player — host? I mean host of ListenServer.

For example, "kick" command have this check:
Quote:

kick "name"
The local player cannot be kicked!

alan_el_more 11-01-2013 10:34

Re: Check if player host?
 
id == 1

pokemonmaster 11-01-2013 10:35

Re: Check if player host?
 
!is_dedicated_server() && id == 1


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

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