27.10.2013, 03:05
pawn Код:
public OnPlayerConnect(playerid)
{
PlayAudioStreamForPlayer(playerid, "http://a.tumblr.com/tumblr_lpje8muHDB1qa94jro1.mp3");
ClearChatbox(playerid, 100);
TextDrawShowForPlayer(playerid, ImagemEntrada);
SendDeathMessage(playerid, -1, 200);
TextDrawShowForPlayer(playerid, forum[playerid]);
DisablePlayerCheckpoint(playerid);
KillTimer(timer[playerid]);
Watching[playerid] = 0;
Goto[playerid] = 0;
Motor[playerid] = 0;
if(IsPlayerNPC(playerid)){SpawnPlayer(playerid);return true;}
IPlog(playerid);
if(strfind(PlayerName(playerid), "_", true) == -1 || strfind(PlayerName(playerid), "[", true) != -1 || strfind(PlayerName(playerid), "]", true) != -1 || strfind(PlayerName(playerid), "lixo", true) != -1 || strfind(PlayerName(playerid), "buceta", true) != -1 || strfind(PlayerName(playerid), "caralho", true) != -1 || strfind(PlayerName(playerid), "Boceta", true) != -1 || strfind(PlayerName(playerid), "server", true) != -1
|| strfind(PlayerName(playerid), "servidor", true) != -1 || strfind(PlayerName(playerid), "crash", true) != -1 || strfind(PlayerName(playerid), "bpl", true) != -1 || strfind(PlayerName(playerid), "gamerx", true) != -1 || strfind(PlayerName(playerid), "[", true) != -1 || strfind(PlayerName(playerid), "189", true) != -1 || strfind(PlayerName(playerid), "201", true) != -1 || strfind(PlayerName(playerid), "200", true) != -1 || strfind(PlayerName(playerid), ".", true) != -1
|| strfind(PlayerName(playerid), "*", true) != -1 || strfind(PlayerName(playerid), "(", true) != -1 || strfind(PlayerName(playerid), ")", true) != -1 || strfind(PlayerName(playerid), "@", true) != -1 || strfind(PlayerName(playerid), "amx", true) != -1 || strfind(PlayerName(playerid), "prn", true) != -1 || strfind(PlayerName(playerid), "__", true) != -1){
ShowPlayerDialog(playerid, 676, DIALOG_STYLE_MSGBOX, "Troque seu Nick", "Infelizmente seu nick nгo foi registrado no servidor pois\n\nele contem caracteres especiais ou nгo estб com o '_' Underline.\n\nSeu nick deve ser Nome_Sobrenome caso contrario serб kickado\n\npor um dos administradores do Brasil Play Arts.\n\nSeu nome pode conter letras, nъmeros e apenas um Underline.\n\nPor favor mude seu nick e conecte-se novamente.","Ok","Cancelar");
format(gstring,64,"Contas/%s.ini",PlayerName(playerid));fremove(gstring);return true;}