AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   Everyone please help me (https://forums.alliedmods.net/showthread.php?t=307345)

alexwilliamw28 05-06-2018 09:25

Everyone please help me
 
I need a plugin which is called White chat user kick

In this plugin if any simple admin use say @ i mean if he or she use white chat so he will be kicked automatically from server

Please help me i need it most:cry:

ToasterKritz 05-06-2018 20:10

Re: Everyone please help me
 
So you mean if someone says something specific in chat, it kicks people? Or so admin can kick someone on chat command (which is already in default sourcemod). Can you specify which game? Please describe, also titles are supposed to include a brief description of what you are asking for, not "please help me" which provides no information.

Psyk0tik 05-06-2018 20:26

Re: Everyone please help me
 
I think what the OP is asking for is a plugin that kicks any admin that uses "say @" command in chat. This would need an override command of its own inside the plugin. That way, if an admin with let's say the "chat_override" command uses "say @" then he won't be kicked. But if an admin without the override uses "say @" then the plugin would kick them.

Hard to understand though, but that's what I got from the broken English.

ToasterKritz 05-06-2018 21:02

Re: Everyone please help me
 
That would make more sense, but yeah it would be doable. I suppose you could use a chat trigger for "@" for certain flags etc, but then no matter what, the immunity level of the admin will always be there, so he would need to mess around with flags

alexwilliamw28 05-07-2018 06:37

Re: Everyone please help me
 
Quote:

Originally Posted by Crasher_3637 (Post 2591023)
I think what the OP is asking for is a plugin that kicks any admin that uses "say @" command in chat. This would need an override command of its own inside the plugin. That way, if an admin with let's say the "chat_override" command uses "say @" then he won't be kicked. But if an admin without the override uses "say @" then the plugin would kick them.

Hard to understand though, but that's what I got from the broken English.



Yes sir you are right. I need this plugin for Counter strike 1.6 or Warzone

If any new or simple admin use "say @" i mean if any admin use whitechat so he will be kick from server .


Sir can you make it for me Please :)

Markiez 05-07-2018 06:52

Re: Everyone please help me
 
Quote:

Originally Posted by alexwilliamw28 (Post 2590934)
I need a plugin which is called White chat user kick

In this plugin if any simple admin use say @ i mean if he or she use white chat so he will be kicked automatically from server

Please help me i need it most:cry:

If I get this right, it should look something like this? I guess, havin hard time understanding actually wat u mean.

Code:

#include <sourcemod>

#pragma semicolon 1

public Action:OnClientSayCommand(client)
{
    decl String:text[99];
    GetCmdArgString(text, sizeof(text));
   
    if (StrContains(text, "@"))
    {
            //do smth here
    }
}


alexwilliamw28 05-07-2018 07:37

Re: Everyone please help me
 
Quote:

Originally Posted by Markiez (Post 2591071)
If I get this right, it should look something like this? I guess, havin hard time understanding actually wat u mean.

Code:

#include <sourcemod>

#pragma semicolon 1

public Action:OnClientSayCommand(client)
{
    decl String:text[99];
    GetCmdArgString(text, sizeof(text));
   
    if (StrContains(text, "@"))
    {
            //do smth here
    }
}


It's Complete code or not ? Sir tell me :)

Sir when i am trying to compile it. Its give me error of "sourcemod" what i do ?

sir can we add some lines in it like

only simple admin will get kick not immunity ones what you say sir ?

can you add this type of line ? in it

ThatKidWhoGames 05-07-2018 08:05

Re: Everyone please help me
 
Quote:

Originally Posted by Markiez (Post 2591071)
If I get this right, it should look something like this? I guess, havin hard time understanding actually wat u mean.

Code:

#include <sourcemod>

#pragma semicolon 1

public Action:OnClientSayCommand(client)
{
    decl String:text[99];
    GetCmdArgString(text, sizeof(text));
   
    if (StrContains(text, "@"))
    {
            //do smth here
    }
}


StrContains isn't a boolean, you need to check if it doesn't equal -1.

alexwilliamw28 05-07-2018 09:57

Re: Everyone please help me
 
Sir i don't know what are you trying to say

Say it clearly sir

Markiez 05-07-2018 10:07

Re: Everyone please help me
 
Quote:

Originally Posted by ThatKidWhoGames (Post 2591077)
StrContains isn't a boolean, you need to check if it doesn't equal -1.

Code:

#include <sourcemod>

#pragma semicolon 1

public Action:OnClientSayCommand(client)
{
    decl String:text[99];
    GetCmdArgString(text, sizeof(text));
   
    if (StrContains(text, "@") != -1)
    {
            //do smth here
    }
}

happy? xD

final shit should look smth leik dis:
Code:

#include <sourcemod>

#pragma semicolon 1

public Action:OnClientSayCommand(client)
{
    decl String:text[99];
    GetCmdArgString(text, sizeof(text));
   
    if (StrContains(text, "@") != -1 && CheckCommandAccess(client, "adminsomethingidunno", ADMFLAG_GENERIC))
    {
            KickClient(client, "sorri :(");
    }
}



All times are GMT -4. The time now is 06:12.

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