PDA

View Full Version : OnPlayerConnect(playerid);


California_
09/03/2013, 09:00 AM
HAI!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

I GOT A BIG PROBLEM MEN. ME PAWNO NO WORX!!

Ok. Here's the problem. This is my code:


new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
if (strfind(name, "******", true) == 0)
{
SendClientMessage(playerid,COLOR_BLUE,"Hmm nice sscanf. I will go change the credits of it and claim it as mines brb.");
Ban(playerid);
}


[b]This is not a insult or any other thing including ****** it was just a little example.
This wont work I dont know why. It's the first thing In OnPlayerConnect.

I cant return it. ITS THE FIRST THING IN ONPLAYERCONNECT.

TELL ME HOW TO MAKE THIS WORK! I NEED TO NAME BAN OVER 32 PEOPLE Cmon do this fast

DiGiTaL_AnGeL
09/03/2013, 09:09 AM
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
if(!strcmp(name, "******", true))
{
SendClientMessage(playerid,COLOR_BLUE,"Hmm nice sscanf. I will go change the credits of it and claim it as mines brb.");
Ban(playerid);
}
Test it.