[Ajuda] GameTextForAll
#8

Cуdigo completo, para usar o spaзo no texto use _ . Й necessбrio a include zcmd e sscanf2, lembrando o zcmd irб desativar os cуdigos cmdtext, caso queria usar os 2 juntos olhe esse tуpico.

//zcmd e cmdtext
https://sampforum.blast.hk/showthread.php?tid=399808

ZCMD E SSCANF2
https://www.mediafire.com/file/myx03...20e%20Zcmd.rar

Feito por mim
PHP код:
#include <a_samp>
#include <sscanf2>
#include <zcmd>
new Text:contar;
public 
OnFilterScriptInit()
{
    
contar TextDrawCreate(290.000000280.305511" ");
    
TextDrawLetterSize(contar0.4000001.600000);
    
TextDrawAlignment(contar2);
    
TextDrawColor(contar, -1);
    
TextDrawSetShadow(contar0);
    
TextDrawSetOutline(contar1);
    
TextDrawBackgroundColor(contar255);
    
TextDrawFont(contar1);
    
TextDrawSetProportional(contar1);
    
TextDrawSetShadow(contar0);
    return 
1;
}
COMMAND:cnn(playeridparams[])
{
    new 
stringg[60],tempo ,SS[266],textotipo;
      if (
sscanf(params"s[64]dd"stringg,tempo,textotipo)) return SendClientMessage(playerid0xFF0000AA"Use: /cnn [Mensagem] [Tempo] [Tipo de texto]");
       if(!
IsPlayerAdmin(playerid)) return SendClientMessage(playerid0xFF0000AA"Vocк nгo й um administrador rcon");
    
SetTimer("settimequalquer"tempofalse);
       
TextDrawShowForAll(contar);
       
TextDrawFont(contartextotipo);
    
format(SSsizeof(SS), "~r~# ~w~%s ~r~#"stringg);
    
TextDrawSetString(contar,SS);
    return 
1;
}
forward settimequalquer();
public 
settimequalquer()
{
    
TextDrawHideForAll(contar);
    return 
1;
}
stock ConverterTexto(texto[])
{
    new 
string[256];
    for(new 
0texto[i]; ++i)
    {
        
string[i] = texto[i];
        switch(
string[i])
        {
            case 
0xC0 .. 0xC3string[i] -= 0x40;            case 0xC7 .. 0xC9string[i] -= 0x42;            case 0xD2 .. 0xD5string[i] -= 0x44;            case 0xD9 .. 0xDCstring[i] -= 0x47;            case 0xE0 .. 0xE3string[i] -= 0x49;
            case 
0xE7 .. 0xEFstring[i] -= 0x4B;            case 0xF2 .. 0xF5string[i] -= 0x4D;            case 0xF9 .. 0xFCstring[i] -= 0x50;            case 0xC40xE4string[i] = 0x83;            case 0xC60xE6string[i] = 0x84;            case 0xD60xF6string[i] = 0x91;            case 0xD10xF1string[i] = 0xEC;            case 0xDFstring[i] = 0x96;            case 0xBFstring[i] = 0xAF;
        }
    }
    return 
string;

Reply


Messages In This Thread
GameTextForAll - by DeusGrego - 07.12.2017, 00:58
Re: GameTextForAll - by Whoo - 07.12.2017, 01:04
Re: GameTextForAll - by WalterSantos - 07.12.2017, 17:23
Re: GameTextForAll - by DeusGrego - 07.12.2017, 17:27
Re: GameTextForAll - by Gguiz - 07.12.2017, 18:06
Re: GameTextForAll - by SnowBorn - 07.12.2017, 18:10
Re: GameTextForAll - by PT - 07.12.2017, 18:20
Re: GameTextForAll - by Marllun - 07.12.2017, 20:50
Re: GameTextForAll - by Poseidon4625 - 07.12.2017, 23:21

Forum Jump:


Users browsing this thread: 4 Guest(s)