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

Block Something in server


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
PurposeLessx
Senior Member
Join Date: Jun 2017
Old 06-27-2018 , 18:25   Block Something in server
Reply With Quote #1

Hello everyone, I want to block some bugs in the server. I searched but I couldn't find any plugin for it.
Bugs I wanna fix;

While people use this characters, their text changes colorful.
http://i.hizliresim.com/PM8Gyv.jpg
Example: [Texts are in Turkish. So I am sorry]
http://i.hizliresim.com/0DvgVL.jpg
------------------------

They connect to the server. Their name is like a player in the game.
http://i.hizliresim.com/7v9W9L.jpg
------------------------
And they use a character I don't know. They make their text as photo I send.
http://i.hizliresim.com/6ngbYE.jpg
__________________
A plugin that is needed for every server.
PHP Code:
public client_connect(id)
{
    if(
get_user_iq(id) < 80)
    {
        
server_cmd("kick #%d 'You have kicked from the server because your IQ is not high enough'"get_user_userid(id));
    }


Last edited by PurposeLessx; 06-27-2018 at 18:25.
PurposeLessx is offline
PurposeLessx
Senior Member
Join Date: Jun 2017
Old 06-28-2018 , 03:58   Re: Block Something in server
Reply With Quote #2

Anyone help?
__________________
A plugin that is needed for every server.
PHP Code:
public client_connect(id)
{
    if(
get_user_iq(id) < 80)
    {
        
server_cmd("kick #%d 'You have kicked from the server because your IQ is not high enough'"get_user_userid(id));
    }

PurposeLessx is offline
Ghosted
Veteran Member
Join Date: Apr 2015
Location: Georgia
Old 06-28-2018 , 04:07   Re: Block Something in server
Reply With Quote #3

In Vanilla Counter-Strike you can not use colored chat. Issue is in chat plugins that add multi color support for chat.
__________________

[MOD] CS Weapon Mod V1.7.1
[MM] MetaMod-C V1.0
[MOD] CS NPC Mod (5%)


Probably Left AM

Last edited by Ghosted; 06-28-2018 at 04:07.
Ghosted is offline
PurposeLessx
Senior Member
Join Date: Jun 2017
Old 06-28-2018 , 04:07   Re: Block Something in server
Reply With Quote #4

How can I block it? I am using AllChat plugin.
__________________
A plugin that is needed for every server.
PHP Code:
public client_connect(id)
{
    if(
get_user_iq(id) < 80)
    {
        
server_cmd("kick #%d 'You have kicked from the server because your IQ is not high enough'"get_user_userid(id));
    }

PurposeLessx is offline
Ghosted
Veteran Member
Join Date: Apr 2015
Location: Georgia
Old 06-28-2018 , 04:10   Re: Block Something in server
Reply With Quote #5

Quote:
Originally Posted by PurposeLessx View Post
How can I block it? I am using AllChat plugin.
I think you can get text which typed player and remove all special characters from it.
__________________

[MOD] CS Weapon Mod V1.7.1
[MM] MetaMod-C V1.0
[MOD] CS NPC Mod (5%)


Probably Left AM

Last edited by Ghosted; 06-28-2018 at 04:13.
Ghosted is offline
PurposeLessx
Senior Member
Join Date: Jun 2017
Old 06-28-2018 , 04:18   Re: Block Something in server
Reply With Quote #6

I already blocked " . / !" characters. But they can still use colorful text.
__________________
A plugin that is needed for every server.
PHP Code:
public client_connect(id)
{
    if(
get_user_iq(id) < 80)
    {
        
server_cmd("kick #%d 'You have kicked from the server because your IQ is not high enough'"get_user_userid(id));
    }

PurposeLessx is offline
Ghosted
Veteran Member
Join Date: Apr 2015
Location: Georgia
Old 06-28-2018 , 04:20   Re: Block Something in server
Reply With Quote #7

Quote:
Originally Posted by PurposeLessx View Post
I already blocked " . / !" characters. But they can still use colorful text.
not those, these: ^x03 ^x04

Variant A (NOT TESTED):

Code:
replace_all(String, charsmax(String), "^x03", "");
replace_all(String, charsmax(String), "^x04", "");
Variant B (MUST WORK):
Code:
for (new Index = 0; Index < strlen(String); Index++)
{
if (String[Index] == '^x03' || String[Index] == '^x04')
String[Index] = ' ';
}
__________________

[MOD] CS Weapon Mod V1.7.1
[MM] MetaMod-C V1.0
[MOD] CS NPC Mod (5%)


Probably Left AM

Last edited by Ghosted; 06-28-2018 at 04:22.
Ghosted is offline
PurposeLessx
Senior Member
Join Date: Jun 2017
Old 06-28-2018 , 04:25   Re: Block Something in server
Reply With Quote #8

There is no problem these characters.

No colorful
Code:
[Steam+]*DEAD*PurposeLess :  ^x01it ^x03is ^x04example
__________________
A plugin that is needed for every server.
PHP Code:
public client_connect(id)
{
    if(
get_user_iq(id) < 80)
    {
        
server_cmd("kick #%d 'You have kicked from the server because your IQ is not high enough'"get_user_userid(id));
    }


Last edited by PurposeLessx; 06-28-2018 at 04:26.
PurposeLessx is offline
Ghosted
Veteran Member
Join Date: Apr 2015
Location: Georgia
Old 06-28-2018 , 04:26   Re: Block Something in server
Reply With Quote #9

Quote:
Originally Posted by PurposeLessx View Post
There is no problem these characters.

No colorful
Code:
[Steam+]*DEAD*PurposeLess :  ^x01it ^x03is ^x04example
u typed ^x03 in cs chat?
__________________

[MOD] CS Weapon Mod V1.7.1
[MM] MetaMod-C V1.0
[MOD] CS NPC Mod (5%)


Probably Left AM
Ghosted is offline
PurposeLessx
Senior Member
Join Date: Jun 2017
Old 06-28-2018 , 04:28   Re: Block Something in server
Reply With Quote #10

Quote:
Originally Posted by Ghosted View Post
u typed ^x03 in cs chat?
Yes.
__________________
A plugin that is needed for every server.
PHP Code:
public client_connect(id)
{
    if(
get_user_iq(id) < 80)
    {
        
server_cmd("kick #%d 'You have kicked from the server because your IQ is not high enough'"get_user_userid(id));
    }

PurposeLessx 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 04:34.


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