public OnPlayerConnect(playerid) { //==================[Join Counter]========================= JoinCounter = JoinCounter + 1; dini_IntSet("CRP_Scriptfiles/Other/JoinCounter.cfg", "Connections", JoinCounter); //========================================================= ResetStats(playerid);//Setting variables to 0. ClearScreen(playerid);//Clearing the users screen from SA-MP messages. ShowScriptStats(playerid);//Showing the script information. { SendClientMessage(playerid,COLOR_GREEN,"_________________________________________________________"); SendClientMessage(playerid,COLOR_LIGHTBLUE2," Bem Vindo ao Portugal Evolution RolePlay "); new accstring[64]; format(accstring, sizeof(accstring), "CRP_Scriptfiles/Accounts/%s.ini", PlayerName(playerid)); new File: hFile = fopen(accstring, io_read); if (hFile) SendClientMessage(playerid, COLOR_LIGHTBLUE2, "Cumpre as regras do servidor e chama amigos!"); SendClientMessage(playerid,COLOR_GREEN,"_________________________________________________________"); } //else KickPlayer(playerid,"RevZ_","Kickou %s(ID:%s) Razгo: Nome Non-RP, coloca um nome RP. Ex: Martim_Miguel"); return 1; } stock IsARolePlayName(name[]) { new szLastCell, bool: bUnderScore; for(new i; i < strlen(name); i++) { if(name[i] == '_') { if(bUnderScore == true) return 0; bUnderScore = true; } else if(!szLastCell || szLastCell == '_') // Check if capitalized where it should be if(name[i] < 'A' || name[i] > 'Z') return 0; else if(name[i] < 'a' || name[i] > 'z') return 0; szLastCell = name[i]; } if(bUnderScore == false) return 0; return 1; }
public OnPlayerConnect(playerid)
{
//==================[Join Counter]=========================
JoinCounter = JoinCounter + 1;
dini_IntSet("CRP_Scriptfiles/Other/JoinCounter.cfg", "Connections", JoinCounter);
//=========================================================
ResetStats(playerid);//Setting variables to 0.
ClearScreen(playerid);//Clearing the users screen from SA-MP messages.
ShowScriptStats(playerid);//Showing the script information.
{
SendClientMessage(playerid,COLOR_GREEN,"_________________________________________________________");
SendClientMessage(playerid,COLOR_LIGHTBLUE2," Bem Vindo ao Portugal Evolution RolePlay ");
new accstring[64];
format(accstring, sizeof(accstring), "CRP_Scriptfiles/Accounts/%s.ini", PlayerName(playerid));
new File: hFile = fopen(accstring, io_read);
if (hFile)
SendClientMessage(playerid, COLOR_LIGHTBLUE2, "Cumpre as regras do servidor e chama amigos!");
SendClientMessage(playerid,COLOR_GREEN,"_________________________________________________________");
}
//else
return 1;
}
stock IsARolePlayName(name[])
{
new
szLastCell,
bool: bUnderScore;
for(new i; i < strlen(name); i++)
{
if(name[i] == '_')
{
if(bUnderScore == true)
return 0;
bUnderScore = true;
}
else if(!szLastCell || szLastCell == '_') // Check if capitalized where it should be
if(name[i] < 'A' || name[i] > 'Z')
return 0;
else
if(name[i] < 'a' || name[i] > 'z')
return 0;
szLastCell = name[i];
}
if(bUnderScore == false)
return 0;
return 1;
}
APRENDE A SCRIPTAR, DESENRASCATE SOZINHO. Facil de perceber? SIM |
todo mundo tem o direito de perguntar,e aprender com os outros
ele nгo precisa se matar para aprender sozinho |
Mas eu aprendi sozinho, sem ajuda, porque voces, que tentam ajudar, fazem ainda pior. |
APRENDE A SCRIPTAR, DESENRASCATE SOZINHO.
Facil de perceber? SIM |
Detonador agora jб consigo entrar mas falta uma coisa, isto nгo estб a kickar quem entra com nick Non-RP por exemplo Junior ou CrisSs nгo estб a kickar esses nicks.. Ajudas a acabar este pormenor! No fim vou te dar REP+.. |
if(bUnderScore == false)
if(bUnderScore == true)