Quote:
Originally Posted by ThatKidWhoGames
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 :(");
}
}
__________________