Raised This Month: $1944 Target: $400

Namechecking, beginner question

Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
AlliedModders Donor
Join Date: Dec 2015
Old 12-26-2015 , 16:03   Namechecking, beginner question
Reply With Quote #1

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?
#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);
		PrintToServer("%s have test", clientName);

Last edited by fard; 12-26-2015 at 16:05.
fard is offline

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 07:45.

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