Raised This Month: $ Target: $400
 0% 

How to recognize admin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Comrade Iron Man
Junior Member
Join Date: Jun 2008
Old 10-11-2008 , 21:14   How to recognize admin
Reply With Quote #1

I've been making a plugin which filters out unwanted names, and I almost have it. I want to make it so players can't use an admin's name, but I'm not exactly sure how to get the script to check if they're admin or not and act accordingly.

I've been messing around with the script functions and "GetAdminFlag", but I fail. [if (ADMFLAG_SLAY == 0) {stuff}] I was using that line of thought, but keep messing up on the execution.

Search, documentation, and script functions haven't helped a whole lot.

Any help with doing this properly would nice, and I apologize if this is a mindlessly simple use of your time.

Last edited by Comrade Iron Man; 10-11-2008 at 21:19.
Comrade Iron Man is offline
Antithasys
Moderator
Join Date: Apr 2008
Old 10-11-2008 , 21:47   Re: How to recognize admin
Reply With Quote #2

PHP Code:
public OnClientPostAdminCheck(client)
{
     if (
GetUserFlagBits(client) & ADMFLAG_SLAY)
          
/* DO SOMETHING */

Antithasys 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 22:00.


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