Raised This Month: $319 Target: $400
 79%   Almost there!

[CS:GO] VIP Connect Message


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
lemmon_cs
Member
Join Date: Jan 2019
Location: Romania
Old 06-05-2020 , 10:44   [CS:GO] VIP Connect Message
Reply With Quote #1

I need a vip connect plugin , when a player with AMDFLAG_CUSTOM1 join the server a colored message will appear on chat or hint VIP Player x has joined the server . I tried some plugins but didn't work.
lemmon_cs is offline
tair
Junior Member
Join Date: Apr 2015
Location: OnGameFrame()
Old 06-05-2020 , 11:10   Re: [CS:GO] VIP Connect Message
Reply With Quote #2

Here you go:

PHP Code:
#include <sourcemod>

#pragma semicolon 1
#pragma newdecls required

public Plugin myinfo = {
    
name        "Vip Connect",
    
author      "Tair",
    
description "for lemmon_cs",
    
version     "1.0",
    
url         ""
};


public 
void OnClientPutInServer(int client
{
    if (
CheckCommandAccess(client""ADMFLAG_CUSTOM1))
    {
        
PrintToChatAll(" \x07VIP PLAYER \x04%N \x06has joined the server." client);
    }


Last edited by tair; 06-05-2020 at 11:11.
tair is offline
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Old 06-05-2020 , 11:40   Re: [CS:GO] VIP Connect Message
Reply With Quote #3

Quote:
Originally Posted by tair View Post
Here you go:

PHP Code:
#include <sourcemod>

#pragma semicolon 1
#pragma newdecls required

public Plugin myinfo = {
    
name        "Vip Connect",
    
author      "Tair",
    
description "for lemmon_cs",
    
version     "1.0",
    
url         ""
};


public 
void OnClientPutInServer(int client
{
    if (
CheckCommandAccess(client""ADMFLAG_CUSTOM1))
    {
        
PrintToChatAll(" \x07VIP PLAYER \x04%N \x06has joined the server." client);
    }

You should use OnClientPostAdminCheck instead as that's when a players flags on connect should be setup properly.
__________________
Retired, find me at: https://drixevel.dev/

Last edited by Drixevel; 06-05-2020 at 11:40.
Drixevel is offline
lemmon_cs
Member
Join Date: Jan 2019
Location: Romania
Old 06-05-2020 , 16:59   Re: [CS:GO] VIP Connect Message
Reply With Quote #4

Not working , no message shows in chat when a player with ADMFLAG_CUSTOM1 joins the server.
lemmon_cs is offline
NanoC
Veteran Member
Join Date: Jan 2016
Location: Argentina
Old 06-05-2020 , 23:31   Re: [CS:GO] VIP Connect Message
Reply With Quote #5

Quote:
Originally Posted by lemmon_cs View Post
Not working , no message shows in chat when a player with ADMFLAG_CUSTOM1 joins the server.
As Drixevel said:

Code:
#include <sourcemod> #pragma semicolon 1 #pragma newdecls required public Plugin myinfo = {     name            = "Vip Connect",     author     = "Tair",     description     = "for lemmon_cs",     version          = "1.0",     url           = "" }; public void OnClientPostAdminCheck(int client) {     if (CheckCommandAccess(client, "", ADMFLAG_CUSTOM1))     {         PrintToChatAll(" \x07VIP PLAYER \x04%N \x06has joined the server." , client);     } }
__________________
NanoC is offline
Send a message via Skype™ to NanoC
lemmon_cs
Member
Join Date: Jan 2019
Location: Romania
Old 06-06-2020 , 10:23   Re: [CS:GO] VIP Connect Message
Reply With Quote #6

Works , thanks.
lemmon_cs is offline
tair
Junior Member
Join Date: Apr 2015
Location: OnGameFrame()
Old 06-06-2020 , 14:09   Re: [CS:GO] VIP Connect Message
Reply With Quote #7

Quote:
Originally Posted by Drixevel View Post
You should use OnClientPostAdminCheck instead as that's when a players flags on connect should be setup properly.
Yeah my bad, I thought it was on post admin check public.

Last edited by tair; 06-06-2020 at 16:36.
tair is offline
Lider99
Member
Join Date: Mar 2020
Old 06-08-2020 , 06:30   Re: [CS:GO] VIP Connect Message
Reply With Quote #8

#include <sourcemod>

#pragma semicolon 1
#pragma newdecls required

public Plugin myinfo = {
name = "Vip Connect",
author = "Tair",
description = "for lemmon_cs",
version = "1.0",
url = ""
};

public void OnClientPostAdminCheck(int client)
{
if (CheckCommandAccess(client, "", ADMFLAG_CUSTOM6))
{
PrintToChatAll(" \x07VIP ИГРОК \x04%N \x06присоединился к серверу." , client);
}

if (CheckCommandAccess(client, "", ADMFLAG_CUSTOM1))
{
PrintToChatAll(" \x07ADMIN \x04%N \x06присоединился к серверу" , client);
}
}
Lider99 is offline
Lider99
Member
Join Date: Mar 2020
Old 06-08-2020 , 06:30   Re: [CS:GO] VIP Connect Message
Reply With Quote #9

I did right?
Lider99 is offline
Cruze
Veteran Member
Join Date: May 2017
Old 06-14-2020 , 13:42   Re: [CS:GO] VIP Connect Message
Reply With Quote #10

PHP Code:
#include <sourcemod>

#pragma semicolon 1
#pragma newdecls required

public Plugin myinfo = {
    
name            "Vip Connect",
    
author     "Tair",
    
description     "for lemmon_cs",
    
version          "1.0",
    
url           ""
};

public 
void OnClientPostAdminCheck(int client
{
    if (
CheckCommandAccess(client""ADMFLAG_CUSTOM1))
    {
       
PrintToChatAll(" \x07ADMIN \x04%N \x06присоединился к серверу" client);
    }
    else if(
CheckCommandAccess(client""ADMFLAG_CUSTOM6))
    {
        
PrintToChatAll(" \x07VIP ИГРОК \x04%N \x06присоединился к серверу." client);
    }

__________________
Taking paid private requests! Add me on steam/discord!
AlliedModders Releases | Github | Private Plugins | PayPal | Steam | My Discord Server
Cruze is offline
Reply


Thread Tools
Display Modes

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 20:37.


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