Ieri ho trovato questi due script di alby_fire ma una volta inseriti non fanno partire il server. Ecco i due script:
Codice:
stock NomeRP(playerid)
{
new x;
GetPlayerName(playerid, nome, sizeof(nome));
if(strfind(nome, "_", false) == -1) return false;
while(x < strlen(nome))
{
if(nome[x] == '!' || nome[x] == '@' || nome[x] == '(') return false;
if(nome[x] == ')' || nome[x] == '$' || nome[x] == '.') return false;
if(nome[x] == '[' || nome[x] == ']') return false;
}
return true;
}
stock NomePlayer(playerid)
{
GetPlayerName(playerid, nome, sizeof(nome));
strmid(stringa, nome, 0,strlen(nome),24);
for(new x;x < 24;x++)
{
if(stringa[x] == '_')
{
stringa[x] = ' ';
}
}
return stringa;
}