Hide character
#6

TOP OF THE SCRIPT !
#define COLOR_RED 0xFF0000FF

now,
OnPlayerConnect(playerid);
pawn Код:
public OnPlayerConnect(playerid);
  {
  new pName[24];
  new namestring = strfind(plname, "$", true);
    if(namestring == 1)
    {
        SendClientMessage(playerid, COLOR_RED, "Please remove the $ from your name!");
        Kick(playerid);
        return 1;
    }
   return 1;
}
sorry about the $ dunno what happened.

Or the "bot style"
pawn Код:
public OnPlayerConnect(playerid);
  {
  new pName[24];
  new namestring = strfind(plname, "$", true);
    if(namestring == 1)
    {
        SendClientMessage(playerid, COLOR_RED, "Please remove the $ from your name!");
        GetPlayerName(playerid, pName, 24);
        format(string, sizeof(string), "%s has been kicked for having $ in their name!", pName);
        SendClientMessageToAll(COLOR_RED, string);
        Kick(playerid);
        return 1;
    }
   return 1;
}
Reply


Messages In This Thread
Hide character - by Legц - 08.04.2010, 18:47
Re: Hide character - by DaHP14Y3R - 08.04.2010, 18:49
Re: Hide character - by Legц - 08.04.2010, 18:53
Re: Hide character - by Steven82 - 08.04.2010, 18:55
Re: Hide character - by Iuri - 08.04.2010, 18:57
Re: Hide character - by DaHP14Y3R - 08.04.2010, 18:58
Re: Hide character - by Legц - 08.04.2010, 18:59
Re: Hide character - by DaHP14Y3R - 08.04.2010, 19:00
Re: Hide character - by pmk1 - 08.04.2010, 19:02
Re: Hide character - by biltong - 08.04.2010, 19:11

Forum Jump:


Users browsing this thread: 3 Guest(s)