Hide character
#10

Quote:
Originally Posted by DaHP14Y3R
TOP OF THE SCRIPT !
#define COLOR_RED 0xFF0000FF

now,
OnPlayerConnect(playerid)
pawn Код:
public OnPlayerConnect(playerid) //DO NOT PUT ; AFTER A CALLBACK
  {
  new pName[24];
  GetPlayerName(playerid, pName, sizeof(pName));
  new namestring = strfind(pName, "$", true); //what is plname?
    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];
  GetPlayerName(playerid, pName, sizeof(pName));
  new namestring = strfind(pName, "$", true);
    if(namestring == 1)
    {
        SendClientMessage(playerid, COLOR_RED, "Please remove the $ from your name!");
        format(string, sizeof(string), "%s has been kicked for having $ in their name!", pName);
        SendClientMessageToAll(COLOR_RED, string);
        Kick(playerid);
        return 1;
    }
   return 1;
}
Fixed.
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: 1 Guest(s)