Raised This Month: $ Target: $400
 0% 

Check if player host?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Phant
Veteran Member
Join Date: Sep 2009
Location: New Jersey
Old 11-01-2013 , 10:33   Check if player host?
Reply With Quote #1

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!
Phant is offline
Send a message via ICQ to Phant
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 11-01-2013 , 10:34   Re: Check if player host?
Reply With Quote #2

id == 1
__________________
alan_el_more is offline
pokemonmaster
princess milk
Join Date: Nov 2010
Location: Somewhere in this world
Old 11-01-2013 , 10:35   Re: Check if player host?
Reply With Quote #3

!is_dedicated_server() && id == 1
__________________
اَشْهَدُ اَنْ لَّآ اِلٰهَ اِلَّا اللہُ وَحْدَه لَا شَرِيْكَ لَه وَ اَشْهَدُ اَنَّ مُحَمَّدًا عَبْدُه وَرَسُوْلُه
No longer active in AMXX. Sorry.
pokemonmaster 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 23:14.


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