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 :(");
    }
}


alexwilliamw28 05-07-2018 10:16

https://imgur.com/a/om1WVGm

see this photo

https://imgur.com/a/QHruaqn

Its continuously giving this error

What i do Sir

https://imgur.com/a/QHruaqn

Its giving this error continuously

what i do now sir ?

Sir what i do its giving sourcemod error

alexwilliamw28 05-07-2018 10:34

Re: Everyone please help me
 
Quote:

Originally Posted by Markiez (Post 2591094)
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 :(");
    }
}



Sir what i do its giving sourcemod error

Psyk0tik 05-07-2018 11:27

Re: Everyone please help me
 
You're using an AMMX compiler. This code is for SourceMod...

If you want the plugin for AMMX then you should ask on the right forum board.

https://forums.alliedmods.net/forumdisplay.php?f=12

Psyk0tik 05-07-2018 12:00

Re: Everyone please help me
 
PHP Code:

#include <sourcemod>
#pragma semicolon 1
#pragma newdecls required

public Action OnClientSayCommand(int client)
{
    
char sText[256];
    
GetCmdArgString(sTextsizeof(sText));
    if (
StrContains(sText"@") != -&& CheckCommandAccess(client"chat_override"ADMFLAG_GENERICfalse))
    {
        
KickClient(client"You have been kicked for using \"@\" in chat");
    }


New syntax ftw! XD

alexwilliamw28 05-07-2018 14:06

Re: Everyone please help me
 
Sir can you add this line in it

only those player will be kicked who have not immunity or any other accesses


And sir one more thing can you give me with compiled please :)

Markiez 05-10-2018 13:23

Re: Everyone please help me
 
Quote:

Originally Posted by alexwilliamw28 (Post 2591156)
Sir can you add this line in it

only those player will be kicked who have not immunity or any other accesses


And sir one more thing can you give me with compiled please :)

it's not going to work! You are using amx, which speaks for itself. It isn't sourcemod. Post in the right section and you will get the help you need.

Papero 05-10-2018 15:32

Re: Everyone please help me
 
Can you just remove the "@" (sm_say) permission from those admins, can't you?


All times are GMT -4. The time now is 20:57.

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