Recent Posts
Bash | 9 sec ago
None | 13 sec ago
VIM | 25 sec ago
C | 26 sec ago
None | 33 sec ago
None | 46 sec ago
None | 1 min ago
None | 1 min ago
None | 1 min ago
None | 1 min ago
Sitereport
Find cool info about any domain on the internet?
visit sitereport
Free Subdomains
Want a pastebin.com sub-domain for your community?
learn more...
What is pastebin?
Pastebin is a website that hosts all your text & code on dedicated servers for easy sharing.
learn more...
By Anonymous on the 9th of Feb 2010 10:36:59 PM
Download |
Raw |
Embed |
Report
public OnPlayerConnect(playerid)
{
new pname[MAX_PLAYER_NAME], idx, found;
GetPlayerName(playerid, pname, sizeof pname);
while(pname[idx])
{
if(pname[idx] == '[' || pname[idx] == ']')
{
SendClientMessage(playerid, COLOR_RED, "Seu nome não pode conter os seguintes caracteres: [ ]");
Kick(playerid);
return 1;
}
if(pname[idx] == '_')
{
found = 1;
break;
}
idx++;
}
if(!found)
{
SendClientMessage(playerid, COLOR_RED, "Seu nome precisa estar no formato: Nome_Sobrenome");
Kick(playerid);
return 1;
}
return 1;
}
Submit a correction or amendment below.
Make A New Post