Raised This Month: $51 Target: $400
 12% 

Any GetPlayerImmunity function?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Kazafka
Junior Member
Join Date: Dec 2020
Old 12-20-2020 , 06:28   Any GetPlayerImmunity function?
Reply With Quote #1

Hello,

I'm trying to make a simple SourceMod script for my CS:GO server, that changes player's alias when they join the server. The only problem is, that I want to check for player's immunity, to define, if they are an owner, admin or just a regular player.

So, am I able to check the player's immunity somehow?
Kazafka is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 12-20-2020 , 15:37   Re: Any GetPlayerImmunity function?
Reply With Quote #2

PHP Code:
public void OnClientPostAdminCheck(int client)
{
    
AdminId admin GetUserAdmin(client);

    if (
admin != INVALID_ADMIN_ID)
    {
        
int immunity admin.ImmunityLevel;
    }

__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.
DJ Tsunami 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 21:13.


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