[Pedido] Trasforme SendClientMessage para Strins
#1

Ola a todos, gostaria que em vez de que os comandos aparecessem no chat, eles aparecessem em uma janela separada. Trasforme SendClientMessage para Strins
pawn Код:
if(strcmp(cmd, "/ah", true) == 0 || strcmp(cmd, "/ajudahelper", true) == 0 || strcmp(cmd, "/helperajuda", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
                SendClientMessage(playerid, COLOR_WHITE, "°  °  °  °  °  °  °  °[ Ajuda Helper ]°  °  °  °  °  °  °  °");
            if (PlayerInfo[playerid][pHelper] >= 1)
            {
                SendClientMessage(playerid, TEAM_CYAN_COLOR, "Helper 1 == /ha /h /avh /irh");
            }
            if (PlayerInfo[playerid][pHelper] >= 2)
            {
                SendClientMessage(playerid, COLOR_LIGHTRED,"Helper 2 == /congelarh  /descongelarh /kickh");
            }
            if (PlayerInfo[playerid][pHelper] >= 3)
            {
                SendClientMessage(playerid, COLOR_LIGHTBLUE,"Helper 3 == /desbugarh /trazerh");
            }
        }
        return 1;
@edit
faзa como este
pawn Код:
if (strcmp("/projetos", cmdtext, true, 10) == 0)
        {
       new Projetos[200];
       strins(Projetos,"{E0FFFF}Atualizaзгo {FFFF00}v1.4 \n",strlen(Projetos));
       strins(Projetos,"{E0FFFF}Na proxima atualizaзгo pretendo arrumar a {FFFF00}concecionaria {E0FFFF}ao lado da prefeitura \n",strlen(Projetos));
       strins(Projetos,"Data Prevista: {FFFF00}21-01-2015 \n",strlen(Projetos));
       ShowPlayerDialog(playerid,225, DIALOG_STYLE_MSGBOX, "Projetos ",Projetos, "Ok", "Fechar");
       return 1;
    }
Reply
#2

Use Showplayerdialog no lugar de SendClientMessage olha na wiki se for isso.
Reply
#3

Quote:
Originally Posted by Marquito
Посмотреть сообщение
Ola a todos, gostaria que em vez de que os comandos aparecessem no chat, eles aparecessem em uma janela separada. Trasforme SendClientMessage para Strins
pawn Код:
if(strcmp(cmd, "/ah", true) == 0 || strcmp(cmd, "/ajudahelper", true) == 0 || strcmp(cmd, "/helperajuda", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
                SendClientMessage(playerid, COLOR_WHITE, "°  °  °  °  °  °  °  °[ Ajuda Helper ]°  °  °  °  °  °  °  °");
            if (PlayerInfo[playerid][pHelper] >= 1)
            {
                SendClientMessage(playerid, TEAM_CYAN_COLOR, "Helper 1 == /ha /h /avh /irh");
            }
            if (PlayerInfo[playerid][pHelper] >= 2)
            {
                SendClientMessage(playerid, COLOR_LIGHTRED,"Helper 2 == /congelarh  /descongelarh /kickh");
            }
            if (PlayerInfo[playerid][pHelper] >= 3)
            {
                SendClientMessage(playerid, COLOR_LIGHTBLUE,"Helper 3 == /desbugarh /trazerh");
            }
        }
        return 1;
@edit
faзa como este
pawn Код:
if (strcmp("/projetos", cmdtext, true, 10) == 0)
        {
       new Projetos[200];
       strins(Projetos,"{E0FFFF}Atualizaзгo {FFFF00}v1.4 \n",strlen(Projetos));
       strins(Projetos,"{E0FFFF}Na proxima atualizaзгo pretendo arrumar a {FFFF00}concecionaria {E0FFFF}ao lado da prefeitura \n",strlen(Projetos));
       strins(Projetos,"Data Prevista: {FFFF00}21-01-2015 \n",strlen(Projetos));
       ShowPlayerDialog(playerid,225, DIALOG_STYLE_MSGBOX, "Projetos ",Projetos, "Ok", "Fechar");
       return 1;
    }
Eu li direito? Vocк estб nos mandando? E cade o pedido educado?
Meu caro amigo, sei que йs novato mas nгo й assim que se pede ajuda, se vocк jб tem um feito, qual a dificuldade de fazer outro? Basta fazer da mesma forma, assim como ZeZin disse
Reply
#4

Sу transformar para Dialog amigo

https://sampwiki.blast.hk/wiki/ShowPlayerDialog

use DIALOG_STYLE_MSGBOX no seu caso.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)