SA-MP Forums Archive
OnPlayerConnect(playerid); - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: OnPlayerConnect(playerid); (/showthread.php?tid=421340)



OnPlayerConnect(playerid); - California_ - 09.03.2013

HAI!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

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

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


pawn Код:
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


Re: OnPlayerConnect(playerid); - DiGiTaL_AnGeL - 09.03.2013

pawn Код:
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.