Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Include Tildes.inc creado por FranciscoSmitch para PawnoScripting
- Si deseas postearlo en otro foro por favor mantengan los créditos.
- */
- #include <a_samp>
- stock Desbug(string[])
- {
- new szFixed[1024], iPos, iLen;
- for (iLen = strlen(string); iPos < iLen; iPos ++)
- {
- switch (string[iPos])
- {
- case 'á': szFixed[iPos] = 152;
- case 'Á': szFixed[iPos] = 129;
- case 'é': szFixed[iPos] = 158;
- case 'É': szFixed[iPos] = 135;
- case 'í': szFixed[iPos] = 162;
- case 'Í': szFixed[iPos] = 139;
- case 'ó': szFixed[iPos] = 166;
- case 'Ó': szFixed[iPos] = 143;
- case 'ú': szFixed[iPos] = 170;
- case 'Ú': szFixed[iPos] = 147;
- case 'ñ': szFixed[iPos] = 174;
- case 'Ñ': szFixed[iPos] = 173;
- default: szFixed[iPos] = string[iPos];
- }
- }
- return szFixed;
- }
- FranTextDrawCreate(Float:x, Float:y, text[])
- {
- return TextDrawCreate(x,y,Desbug(text));
- }
- FranTextDrawSetString(Text:text,texto[])
- {
- TextDrawSetString(text,Desbug(texto));
- return 1;
- }
- FranGameText(playerid, texto[], time, style)
- {
- GameTextForPlayer(playerid,Desbug(texto),time,style);
- return 1;
- }
- FranGameTextAll(texto[], time, style)
- {
- GameTextForAll(Desbug(texto),time,style);
- return 1;
- }
- #define TextDrawCreate FranTextDrawCreate
- #define TextDrawSetString FranTextDrawSetString
- #define GameTextForPlayer FranGameText
- #define GameTextForAll FranGameTextAll
Advertisement
Add Comment
Please, Sign In to add comment