¡MUY IMPORTANTE!
Existe en AlliedModders (AM) un post creado por Kiske, pero de allí yo no cogí nada, aun así dejo el post en cuestión:
https://forums.alliedmods.net/showthread.php?t=110331
Este aporte es simple, para poner los acentos en las vocales, el signo de admiración e interrogación al principio y nuestra querida 'ñ' / 'Ñ' debemos utilizar lo siguiente:
Para utilizar es muy fácil, ponemos los símbolos en lugar del caracter y en el CS nos saldrá bien, ej.:
Y quedaría... ¡ESTO ES ESPAÑA!
O tambien esta la opción de utilizar el siguiente stock publicado por 'gonza' tambien conocido como 'Pro' en AlliedModders (AM), pero claro 'replace_all' a su vez tambien es un stock y llamar a este stock por cada letra es mucho consumo, pero no se otra manera, si hay algo mejor solo comentadlo:
https://forums.alliedmods.net/showpost.p...ostcount=7
PD: Si hay algún error o algo que tenga que solucionar publicarlo en este mismo tema, que revivir para arreglar no hay ningún problema.
Existe en AlliedModders (AM) un post creado por Kiske, pero de allí yo no cogí nada, aun así dejo el post en cuestión:
https://forums.alliedmods.net/showthread.php?t=110331
Este aporte es simple, para poner los acentos en las vocales, el signo de admiración e interrogación al principio y nuestra querida 'ñ' / 'Ñ' debemos utilizar lo siguiente:
Código PHP:
¡ / ¡ ¿ / ¿
Código PHP:
á / á é / é í / à ó / ó ú / ú ñ / ñ ç / ç
Código PHP:
Á / Ã É / É Í / Ã Ó / Ó Ú / Ú Ñ / Ñ Ç / Ç
Código PHP:
ă / Ä â / â î / î ș / È ț / È
Código PHP:
Ă / Ä Â / Ã Î / Ã Ș / È Ț / È
Código PHP:
ä / ä ë / ë ï / ï ö / ö ü / ü
Código PHP:
Ä / Ä Ë / Ë Ï / Ã Ö / Ö Ü / Ãœ
Para utilizar es muy fácil, ponemos los símbolos en lugar del caracter y en el CS nos saldrá bien, ej.:
Código PHP:
client_print(0, print_chat, "¡ESTO ES ESPÑA!")
Y quedaría... ¡ESTO ES ESPAÑA!
O tambien esta la opción de utilizar el siguiente stock publicado por 'gonza' tambien conocido como 'Pro' en AlliedModders (AM), pero claro 'replace_all' a su vez tambien es un stock y llamar a este stock por cada letra es mucho consumo, pero no se otra manera, si hay algo mejor solo comentadlo:
https://forums.alliedmods.net/showpost.p...ostcount=7
Código PHP:
stock RareCharacters(Text[]="", Len = 0) {
replace_all(Text, Len, "¡", "¡");
replace_all(Text, Len, "¿", "¿");
replace_all(Text, Len, "á", "á");
replace_all(Text, Len, "Á", "Ã");
replace_all(Text, Len, "é", "é");
replace_all(Text, Len, "É", "É");
replace_all(Text, Len, "í", "Ã");
replace_all(Text, Len, "Í", "Ã");
replace_all(Text, Len, "ó", "ó");
replace_all(Text, Len, "Ó", "Ó");
replace_all(Text, Len, "ú", "ú");
replace_all(Text, Len, "Ú", "Ú");
replace_all(Text, Len, "ç", "ç");
replace_all(Text, Len, "Ç", "Ç");
replace_all(Text, Len, "ñ", "ñ");
replace_all(Text, Len, "Ñ", "Ñ");
replace_all(Text, Len, "a", "Ä?");
replace_all(Text, Len, "A", "Ä?");
replace_all(Text, Len, "â", "â");
replace_all(Text, Len, "Â", "Ã?");
replace_all(Text, Len, "î", "î");
replace_all(Text, Len, "Î", "Ã?");
replace_all(Text, Len, "?", "È?");
replace_all(Text, Len, "?", "È?");
replace_all(Text, Len, "?", "È?");
replace_all(Text, Len, "?", "È?");
replace_all(Text, Len, "ä", "ä");
replace_all(Text, Len, "Ä", "Ä");
replace_all(Text, Len, "ë", "ë");
replace_all(Text, Len, "Ë", "Ë");
replace_all(Text, Len, "ï", "ï");
replace_all(Text, Len, "Ï", "Ã");
replace_all(Text, Len, "ö", "ö");
replace_all(Text, Len, "Ö", "Ö");
replace_all(Text, Len, "ü", "ü");
replace_all(Text, Len, "Ü", "Ãœ");
static ReturnText[1024];
formatex(ReturnText, charsmax(ReturnText), Text);
return ReturnText;
}
Código PHP:
/*
* Replaces a contained string iteratively.
* This ensures that no infinite replacements will take place by
* intelligently moving to the next string position each iteration.
*/
stock replace_all(String[], Len, const What[], const With[]) {
new Pos = 0;
if((Pos = contain(String, What)) == -1) {
return 0;
}
new Total = 0;
new WithLen = strlen(with);
new Diff = strlen(what) - with_len;
new TotalLen = strlen(string);
new TempPos = 0;
while(replace(String[Pos], Len - Pos, What, With) != 0) {
/* Jump to position after replacement. */
Pos += WithLen;
/* Update cached length of string. */
TotalLen -= Diff;
/* Will the next call be operating on the last character? */
if(Pos >= TotalLen) {
break;
}
/* Find the next position from our offset. */
TempPos = contain(String[Pos], What);
/* If it's invalid, we're done. */
if(TempPos == -1) {
break;
}
/* Otherwise, reposition and update counters. */
Pos += TempPos;
Total++;
}
return Total;
}
PD: Si hay algún error o algo que tenga que solucionar publicarlo en este mismo tema, que revivir para arreglar no hay ningún problema.