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

[REQUEST] How to apply That only for VIP?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
ApoziX
Member
Join Date: Sep 2018
Old 11-16-2018 , 12:43   [REQUEST] How to apply That only for VIP?
Reply With Quote #1

TITLE

Thanks and +rep for helpers

PHP Code:
#include <sourcemod>
#include <morecolors>

#define PLUGIN_VERSION    "1.0"

new Handle:h_Enable INVALID_HANDLE;
new 
Handle:h_Message INVALID_HANDLE;


public 
Plugin:myinfo 
{
    
name "Welcome Player Message // WPM",
    
author "RaT3D - Martin J.Berthelsen",
    
description "A simple plugin, which welcomes a player to your server with a custom message.",
    
version PLUGIN_VERSION,
    
url "http://royalgaming.net23.net"
}

public 
OnPluginStart()
{
    
CreateConVar("sm_wpm_version"PLUGIN_VERSION"WPM plugin version" FCVAR_NOTIFY|FCVAR_DONTRECORD);
    
h_Enable CreateConVar("sm_wpm""1""Enables WPM plugin when client join server. 1 = Enabled, 0 = Disabled."FCVAR_NOTIFY|FCVAR_DONTRECORD);
    
h_Message CreateConVar("sm_wpm_message""NONE""Set a message for client join."FCVAR_NOTIFY|FCVAR_DONTRECORD);
    
AutoExecConfig(true"wpmConfig.cfg");
}

public 
OnClientPutInServer(client)
{
    new 
IsEnabled GetConVarInt(h_Enable);
    if(
IsEnabled == 1)
    {
        new 
String:SMsg[99];
        
GetConVarString(h_MessageSMsgsizeof (SMsg));
        
        if(
StrEqual(SMsg"NONE") || StrEqual(SMsg""))
        {
            
PrintToServer("[WPM] Join message not found!")
        } else{
            for(new 
1;GetMaxClients();i++)
            {
                if(
IsClientInGame(i) && IsClientConnected(i))
                {
                    
CPrintToAll(client"{aqua}[WPM] {default}s% {aqua}%s"SMsgclient)
                }
            }
        }
    }

__________________
Looking To Start A TF2 Community
My Discord | My Steam

Last edited by ApoziX; 11-16-2018 at 12:46.
ApoziX is offline
 



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 10:06.


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