Raised This Month: $ Target: $400
 0% 

Simple Plugin Request


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
perton
New Member
Join Date: Aug 2023
Old 08-23-2023 , 23:21   Simple Plugin Request
Reply With Quote #1

I want a plugin that shows when some VIP (ADMIN_LEVEL_H) (Flag t) enters the server. This message should be green and displayed in the lower left corner.
perton is offline
JuanitoAlimana
Senior Member
Join Date: Aug 2021
Old 08-24-2023 , 03:15   Re: Simple Plugin Request
Reply With Quote #2

Cool idea, up!
JuanitoAlimana is offline
mlibre
Veteran Member
Join Date: Nov 2015
Location: return PLUGIN_CONTINUE
Old 08-24-2023 , 11:29   Re: Simple Plugin Request
Reply With Quote #3

Quote:
Originally Posted by perton View Post
I want a plugin that shows when some VIP (ADMIN_LEVEL_H) (Flag t) enters the server. This message should be green and displayed in the lower left corner.
PHP Code:
public client_putinserver(id)
{
    if(
get_user_flags(id) & ADMIN_LEVEL_H)
    {
        new 
adm[32]; get_user_name(idadmcharsmax(adm))
        
        
set_hudmessage(025500.020.7006.05.0)
        
show_hudmessage(0"[VIP] %s has entered the server!"adm)
    }

__________________
mlibre is offline
Tote
Senior Member
Join Date: Jul 2023
Old 08-24-2023 , 13:05   Re: Simple Plugin Request
Reply With Quote #4

Quote:
Originally Posted by mlibre View Post
PHP Code:
public client_putinserver(id)
{
    if(
get_user_flags(id) & ADMIN_LEVEL_H)
    {
        new 
adm[32]; get_user_name(idadmcharsmax(adm))
        
        
set_hudmessage(025500.020.7006.05.0)
        
show_hudmessage(0"[VIP] %s has entered the server!"adm)
    }

I think he wanted in chat not hud message
PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <cromchat>

#define PLUGIN "VIP CONNECT MESSAGE"
#define VERSION "1.0"
#define AUTHOR "author"

#define TAG "VIP" // message start prefix
#define REQUIRED_FLAG ADMIN_LEVEL_H // flag for vip

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
}

public 
client_putinserver(id)
{
    if(
get_user_flags(id) & REQUIRED_FLAG)
    {
        new 
name[32]; get_user_name(idname31)
        
CC_SendMessage(id"&x04[%s] %s has joined the server."TAGname)
    }

Download cromchat.inc:
https://forums.alliedmods.net/showthread.php?t=295046
Tote is offline
mlibre
Veteran Member
Join Date: Nov 2015
Location: return PLUGIN_CONTINUE
Old 08-24-2023 , 13:54   Re: Simple Plugin Request
Reply With Quote #5

in case you are running a newer version you can use already included

PHP Code:
client_print_color(id0"^4 [VIP] %s has entered the server!"adm
__________________
mlibre 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 06:47.


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