I made my first plugin after reading some wiki, but its not working (but listed at sm plugins list).
It's supposed to write in console if client have specified string in nickname.
What I'm doing wrong?
Code:
#include <sourcemod>
#include <string>
public void OnPluginStart()
{
PrintToServer("Nick checker enabled!");
}
public onClientConnected(client){
char clientName[32];
GetClientName(client, clientName, 32);
if(StrContains(clientName, "test", false)){
PrintToServer("%s don't have test", clientName);
}
else{
PrintToServer("%s have test", clientName);
}
}