[Ajuda] Como se faz?
#1

Coloque aos 03:08 esse vнdeo :https://www.youtube.com/watch?=5m5V7...HEXdpXTYkJqWeg
Note que ele usa o comando gm_cfg para mudar o nome da textdraw ingame, gostaria de saber como se faz isso?
eu sei fazer a textdarw normal gostaria de saber fazer assim para poder mudar ingame
Reply
#2

TextDrawSetString
Reply
#3

poderia fazer uma base para min ver ?
Reply
#4

Na prуpria wiki tem uma base...

pawn Код:
new Text:himessage;
 
public OnGameModeInit()
{
    himessage = TextDrawCreate(1.0, 5.6, "Hi, how are you?");
    return 1;
}
 
public OnPlayerConnect(playerid)
{
    new newtext[41], name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, MAX_PLAYER_NAME);
    format(newtext, sizeof(newtext), "Hi %s, how are you?", name);
    TextDrawSetString(himessage, newtext);  
    TextDrawShowForPlayer(playerid, himessage);
    return 1;
}
Reply
#5

Sim como eu vou mudar a textdraw pelo comando ? tipo /mudartext
Reply
#6

pawn Код:
if(Command("/MudarTexto")) return ShowPlayerDialog(playerid, 100, DIALOG_STYLE_INPUT, "TextDraw", "Digite abaixo o texto para a TextDraw", "Alterar", "Cancelar");

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 100)
    {
        if(!response) return 1;
        if(!strlen(inputtext)) return ShowPlayerDialog(playerid, 100, DIALOG_STYLE_INPUT, "TextDraw", "Digite abaixo o texto para a TextDraw", "Alterar", "Cancelar");
        TextDrawSetString(TextDraw, inputtext);
    }
    return 1;
}
Reply
#7

Foi mal eu reviver o tуpico, mais eu uso zcmd eu preciso tipo do /painel ai abre uma dialogpassword pedindo a sneha, acertou a senha loga para a dialog list, errou > kick, alguйm ajuda namoral?
Reply
#8

Quote:
Originally Posted by LeandroSantos
Посмотреть сообщение
Foi mal eu reviver o tуpico, mais eu uso zcmd eu preciso tipo do /painel ai abre uma dialogpassword pedindo a sneha, acertou a senha loga para a dialog list, errou > kick, alguйm ajuda namoral?
Olhe ae, use como base e adapte as suas funзхes https://sampforum.blast.hk/showthread.php?pid=3181637#pid3181637

Caso queira fazer um https://sampwiki.blast.hk/wiki/Dialog_Styles
https://sampforum.blast.hk/showthread.php?tid=277842
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)