pawn Код:
new findname = strfind(pname, "_", true);
if(findname == -1)
{
SendClientMessage(playerid, COLOR_RED, "Make a roleplay name. Example: John_Peterson or Maria_Hammington");
Kick(playerid);
}
new findname2 = strfind(pname, "0", true);
new findname3 = strfind(pname, "1", true);
new findname4 = strfind(pname, "2", true);
new findname5 = strfind(pname, "3", true);
new findname6 = strfind(pname, "4", true);
new findname7 = strfind(pname, "5", true);
new findname8 = strfind(pname, "6", true);
new findname9 = strfind(pname, "7", true);
new findname10 = strfind(pname, "8", true);
new findname11 = strfind(pname, "9", true);
new findname12 = strfind(pname, "[", true);
if(findname2 != -1)
{
format(string43, sizeof(string43), "%s just got kicked for Non RolePlay Name by **Anti-Cheat System Molov**", pname);
LocalChat(10000000000.0, playerid, string43, 0xFF0000FF, 0xFF0000FF, 0xFF0000FF, 0xFF0000FF, 0xFF0000FF);
SendClientMessage(playerid, COLOR_RED, "Make a roleplay name. Example: John_Peterson or Maria_Hammington");
Kick(playerid);
}
if(findname12 != -1)
{
format(string43, sizeof(string43), "%s just got kicked for Non RolePlay Name by **Anti-Cheat System Molov**", pname);
LocalChat(10000000000.0, playerid, string43, 0xFF0000FF, 0xFF0000FF, 0xFF0000FF, 0xFF0000FF, 0xFF0000FF);
SendClientMessage(playerid, COLOR_RED, "Make a roleplay name. Example: John_Peterson or Maria_Hammington");
Kick(playerid);
}
if(findname3 != -1)
{
format(string43, sizeof(string43), "%s just got kicked for Non RolePlay Name by **Anti-Cheat System Molov**", pname);
LocalChat(10000000000.0, playerid, string43, 0xFF0000FF, 0xFF0000FF, 0xFF0000FF, 0xFF0000FF, 0xFF0000FF);
SendClientMessage(playerid, COLOR_RED, "Make a roleplay name. Example: John_Peterson or Maria_Hammington");
Kick(playerid);
}
if(findname4 != -1)
{
format(string43, sizeof(string43), "%s just got kicked for Non RolePlay Name by **Anti-Cheat System Molov**", pname);
LocalChat(10000000000.0, playerid, string43, 0xFF0000FF, 0xFF0000FF, 0xFF0000FF, 0xFF0000FF, 0xFF0000FF);
SendClientMessage(playerid, COLOR_RED, "Make a roleplay name. Example: John_Peterson or Maria_Hammington");
Kick(playerid);
}
if(findname5 != -1)
{
format(string43, sizeof(string43), "%s just got kicked for Non RolePlay Name by **Anti-Cheat System Molov**", pname);
LocalChat(10000000000.0, playerid, string43, 0xFF0000FF, 0xFF0000FF, 0xFF0000FF, 0xFF0000FF, 0xFF0000FF);
SendClientMessage(playerid, COLOR_RED, "Make a roleplay name. Example: John_Peterson or Maria_Hammington");
Kick(playerid);
}
if(findname6 != -1)
{
format(string43, sizeof(string43), "%s just got kicked for Non RolePlay Name by **Anti-Cheat System Molov**", pname);
LocalChat(10000000000.0, playerid, string43, 0xFF0000FF, 0xFF0000FF, 0xFF0000FF, 0xFF0000FF, 0xFF0000FF);
SendClientMessage(playerid, COLOR_RED, "Make a roleplay name. Example: John_Peterson or Maria_Hammington");
Kick(playerid);
}
if(findname7 != -1)
{
format(string43, sizeof(string43), "%s just got kicked for Non RolePlay Name by **Anti-Cheat System Molov**", pname);
LocalChat(10000000000.0, playerid, string43, 0xFF0000FF, 0xFF0000FF, 0xFF0000FF, 0xFF0000FF, 0xFF0000FF);
SendClientMessage(playerid, COLOR_RED, "Make a roleplay name. Example: John_Peterson or Maria_Hammington");
Kick(playerid);
}
if(findname8 != -1)
{
format(string43, sizeof(string43), "%s just got kicked for Non RolePlay Name by **Anti-Cheat System Molov**", pname);
LocalChat(10000000000.0, playerid, string43, 0xFF0000FF, 0xFF0000FF, 0xFF0000FF, 0xFF0000FF, 0xFF0000FF);
SendClientMessage(playerid, COLOR_RED, "Make a roleplay name. Example: John_Peterson or Maria_Hammington");
Kick(playerid);
}
if(findname9 != -1)
{
format(string43, sizeof(string43), "%s just got kicked for Non RolePlay Name by **Anti-Cheat System Molov**", pname);
LocalChat(10000000000.0, playerid, string43, 0xFF0000FF, 0xFF0000FF, 0xFF0000FF, 0xFF0000FF, 0xFF0000FF);
SendClientMessage(playerid, COLOR_RED, "Make a roleplay name. Example: John_Peterson or Maria_Hammington");
Kick(playerid);
}
if(findname10 != -1)
{
format(string43, sizeof(string43), "%s just got kicked for Non RolePlay Name by **Anti-Cheat System Molov**", pname);
LocalChat(10000000000.0, playerid, string43, 0xFF0000FF, 0xFF0000FF, 0xFF0000FF, 0xFF0000FF, 0xFF0000FF);
SendClientMessage(playerid, COLOR_RED, "Make a roleplay name. Example: John_Peterson or Maria_Hammington");
Kick(playerid);
}
if(findname11 != -1)
{
format(string43, sizeof(string43), "%s just got kicked for Non RolePlay Name by **Anti-Cheat System Molov**", pname);
LocalChat(10000000000.0, playerid, string43, 0xFF0000FF, 0xFF0000FF, 0xFF0000FF, 0xFF0000FF, 0xFF0000FF);
SendClientMessage(playerid, COLOR_RED, "Make a roleplay name. Example: John_Peterson or Maria_Hammington");
Kick(playerid);
}