Raised This Month: $32 Target: $400
 8% 

Everyone please help me


Post New Thread Reply   
 
Thread Tools Display Modes
alexwilliamw28
Junior Member
Join Date: May 2018
Old 05-07-2018 , 10:16  
Reply With Quote #11

https://imgur.com/a/om1WVGm

see this photo



Its continuously giving this error

What i do Sir



Its giving this error continuously

what i do now sir ?

Sir what i do its giving sourcemod error

Last edited by sneaK; 05-07-2018 at 12:01.
alexwilliamw28 is offline
alexwilliamw28
Junior Member
Join Date: May 2018
Old 05-07-2018 , 10:34   Re: Everyone please help me
Reply With Quote #12

Quote:
Originally Posted by Markiez View Post
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
alexwilliamw28 is offline
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 05-07-2018 , 11:27   Re: Everyone please help me
Reply With Quote #13

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 is offline
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 05-07-2018 , 12:00   Re: Everyone please help me
Reply With Quote #14

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
__________________

Last edited by Psyk0tik; 05-07-2018 at 12:01.
Psyk0tik is offline
alexwilliamw28
Junior Member
Join Date: May 2018
Old 05-07-2018 , 14:06   Re: Everyone please help me
Reply With Quote #15

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

Last edited by alexwilliamw28; 05-07-2018 at 14:20.
alexwilliamw28 is offline
Markiez
Junior Member
Join Date: Mar 2018
Location: somewhere over the rainb
Old 05-10-2018 , 13:23   Re: Everyone please help me
Reply With Quote #16

Quote:
Originally Posted by alexwilliamw28 View Post
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.
__________________
bool am_I_retarded = true;
Markiez is offline
Papero
Veteran Member
Join Date: Aug 2016
Location: Italy
Old 05-10-2018 , 15:32   Re: Everyone please help me
Reply With Quote #17

Can you just remove the "@" (sm_say) permission from those admins, can't you?
__________________
My Plugins
SPCode


Steam: hexer504
Telegram: Hexah
Discord: Hexah#6903

If you like my work you can donate here!

Last edited by Papero; 05-10-2018 at 15:40.
Papero is offline
Reply


Thread Tools
Display Modes

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 08:24.


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