[Tutorial] [TUT]How to create forbidden names
#2

Your tutorial is finding the word LOSER inside the word LOSER.
pawn Code:
public OnPlayerConnect(playerid)
{
   new name[MAX_PLAYER_NAME];
   GetPlayerName(playerid, name, MAX_PLAYER_NAME);
   if(!strfind(name, "LOSER", true))
   {
      SendClientMessage(playerid, 0x0000ff, "Name not allowed.");
      Kick(playerid);
   }
   return 1;
}
Reply


Messages In This Thread
[TUT]How to create forbidden names - by Toni - 19.07.2010, 00:59
Re: [TUT]How to create forbidden names - by Grim_ - 19.07.2010, 01:04
Re: [TUT]How to create forbidden names - by (SF)Noobanatior - 19.07.2010, 01:07
Re: [TUT]How to create forbidden names - by Toni - 19.07.2010, 01:44
Re: [TUT]How to create forbidden names - by Carlton - 19.07.2010, 01:58
Re: [TUT]How to create forbidden names - by Scenario - 19.07.2010, 03:20
Re: [TUT]How to create forbidden names - by Toni - 19.07.2010, 03:24
Re: [TUT]How to create forbidden names - by Scenario - 19.07.2010, 03:25
Re: [TUT]How to create forbidden names - by [HiC]TheKiller - 19.07.2010, 06:31
Re: [TUT]How to create forbidden names - by Grim_ - 19.07.2010, 11:34

Forum Jump:


Users browsing this thread: 1 Guest(s)