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-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.