View Single Post
ThatKidWhoGames
Veteran Member
Join Date: Jun 2013
Location: IsValidClient()
Old 05-07-2018 , 08:05   Re: Everyone please help me
Reply With Quote #8

Quote:
Originally Posted by Markiez View Post
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.

Last edited by ThatKidWhoGames; 05-07-2018 at 08:05.
ThatKidWhoGames is offline