SA-MP Forums Archive
[Ajuda] Cуdigos de Creditos - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Cуdigos de Creditos (/showthread.php?tid=467125)



Cуdigos de Creditos - dreiklol - 01.10.2013

Alguйm Tem Um Cуdigo De /Crйditos Que Eu Posso Colocar Na GM E Que Cubra A Tela Toda
Por Que Quero Colocar Muita Coisa Se Alguйm Pode Me Ajuda.


OBS: Quero Colocar Na GameMode NГo Nos Objetos BLZ


Re: Cуdigos de Creditos - arakuta - 01.10.2013

Vai ter que por crйditos do /creditos... Fail.


Re: Cуdigos de Creditos - ThuuGLif3 - 01.10.2013

pawn Код:
if( !strcmp( cmdtext, "/creditos" ))
    {
        SendClientMessage( playerid, 0xFFFFFFAA, "••••••••••••••••••••••••••••••••[ Crйditos ]••••••••••••••••••••••••••••••••" );
        SendClientMessage( playerid, 0xFFFFFFAA, "~ Aqui sua Mensagem !" );
        SendClientMessage( playerid, 0xFFFFFFAA, "••••••••••••••••••••••••••••••••[ Crйditos ]••••••••••••••••••••••••••••••••" );
        return 1;
    }
[

Caso quiser em Dialog avise-me



Re: Cуdigos de Creditos - HatedS - 01.10.2013

Um /creditos diferente e.e'
No topo da GM

pawn Код:
#define DIALOG_CREDITOS 1
Comando em ZCMD [Bota em qualquer lugar da GM]

pawn Код:
CMD:creditos(playerid, params[])
{
    ShowPlayerDialog(playerid, DIALOG_CREDITOS, DIALOG_STYLE_LIST, "Crйditos do servidor", "Scripters\nDonos\nMapers", "Selecionar", "Fechar");
    return 1;
}
OU ...

Comando strcmp, bota dentro do callback (public OnPlayerCommandText)

pawn Код:
if (strcmp("/creditos", cmdtext, true, 10) == 0)
    {
        ShowPlayerDialog(playerid, DIALOG_CREDITOS, DIALOG_STYLE_LIST, "Crйditos do servidor", "Scripters\nDonos\nMapers", "Selecionar", "Fechar");
        return 1;
    }
em public OnDialogResponse :

pawn Код:
if(dialogid == DIALOG_CREDITOS)
    {
        if(response)
        {
            if(listitem == 0)
            {
                ShowPlayerDialog(playerid, ID, DIALOG_STYLE_MSGBOX, "Scripters", "dreiklol", "Okay", "Close");
            }
            if(listitem == 1)
            {
                ShowPlayerDialog(playerid, ID, DIALOG_STYLE_MSGBOX, "Donos", "dreiklol", "Okay", "Close");
            }
            if(listitem == 2)
            {
                ShowPlayerDialog(playerid, ID, DIALOG_STYLE_MSGBOX, "Mapers", "dreiklol", "Okay", "Close");
            }
        }
    }
Obs : /creditos em Dialog ...


Re: Cуdigos de Creditos - dreiklol - 01.10.2013

Onde Fica ''callback''
Sou Novo Em Pawno.



Re: Cуdigos de Creditos - HatedS - 01.10.2013

Quote:
Originally Posted by dreiklol
Посмотреть сообщение
Onde Fica ''callback''
Sou Novo Em Pawno.
Exemplo CallBack й isso :

pawn Код:
public OnGameModeInit()
{
    return 1;
}
Os Publics que tem na GM '-'


Re: Cуdigos de Creditos - powerths - 01.10.2013

PHP код:
if(strcmp(cmd"/creditos"true) == 0)
{
if(
IsPlayerConnected(playerid))
{
new 
string4[1500];
strcat(string4,">>>CREDITOS<<< ");
strcat(string4,">>>CREDITOS<<< ");
strcat(string4,">>>CREDITOS<<< ");
strcat(string4,">>>CREDITOS<<< ");
strcat(string4,">>>CREDITOS<<< ");
strcat(string4,">>>CREDITOS<<< ");
strcat(string4,">>>CREDITOS<<< ");
strcat(string4,">>>CREDITOS<<< ");
strcat(string4,">>>CREDITOS<<< ");
strcat(string4,">>>CREDITOS<<< ");
strcat(string4,">>>CREDITOS<<< ");
strcat(string4,">>>CREDITOS<<< ");
strcat(string4,">>>CREDITOS<<< ");
strcat(string4,">>>CREDITOS<<< ");
strcat(string4,">>>CREDITOS<<< ");
strcat(string4,">>>CREDITOS<<< ");
strcat(string4,">>>CREDITOS<<< ");
ShowPlayerDialog(playerid100DIALOG_STYLE_MSGBOX"Creditos"string4"OK""");
}
return 
1;




Re: Cуdigos de Creditos - HatedS - 01.10.2013

Quote:
Originally Posted by powerths
Посмотреть сообщение
PHP код:
if(strcmp(cmd"/creditos"true) == 0)
{
if(
IsPlayerConnected(playerid))
{
new 
string4[1500];
strcat(string4,">>>CREDITOS<<< ");
strcat(string4,">>>CREDITOS<<< ");
strcat(string4,">>>CREDITOS<<< ");
strcat(string4,">>>CREDITOS<<< ");
strcat(string4,">>>CREDITOS<<< ");
strcat(string4,">>>CREDITOS<<< ");
strcat(string4,">>>CREDITOS<<< ");
strcat(string4,">>>CREDITOS<<< ");
strcat(string4,">>>CREDITOS<<< ");
strcat(string4,">>>CREDITOS<<< ");
strcat(string4,">>>CREDITOS<<< ");
strcat(string4,">>>CREDITOS<<< ");
strcat(string4,">>>CREDITOS<<< ");
strcat(string4,">>>CREDITOS<<< ");
strcat(string4,">>>CREDITOS<<< ");
strcat(string4,">>>CREDITOS<<< ");
strcat(string4,">>>CREDITOS<<< ");
ShowPlayerDialog(playerid100DIALOG_STYLE_MSGBOX"Creditos"string4"OK""");
}
return 
1;

pawn Код:
if (strcmp("/creditos", cmdtext, true, 10) == 0)
    {
        new string4[1500];
        strcat(string4,">>>CREDITOS<<< ");
        strcat(string4,">>>CREDITOS<<< ");
        strcat(string4,">>>CREDITOS<<< ");
        strcat(string4,">>>CREDITOS<<< ");
        strcat(string4,">>>CREDITOS<<< ");
        strcat(string4,">>>CREDITOS<<< ");
        strcat(string4,">>>CREDITOS<<< ");
        strcat(string4,">>>CREDITOS<<< ");
        strcat(string4,">>>CREDITOS<<< ");
        strcat(string4,">>>CREDITOS<<< ");
        strcat(string4,">>>CREDITOS<<< ");
        strcat(string4,">>>CREDITOS<<< ");
        strcat(string4,">>>CREDITOS<<< ");
        strcat(string4,">>>CREDITOS<<< ");
        strcat(string4,">>>CREDITOS<<< ");
        strcat(string4,">>>CREDITOS<<< ");
        strcat(string4,">>>CREDITOS<<< ");
        ShowPlayerDialog(playerid, 100, DIALOG_STYLE_MSGBOX, "Creditos", string4, "OK", "");
        return 1;
    }
    return 0;
}



Re: Cуdigos de Creditos - PT - 01.10.2013

HatedS

vc sabe que fala?

@ Topic
pawn Код:
// topo
#define Dia_Creditos 123

// comando
if (strcmp("/creditos", cmdtext, true, 10) == 0)
{
    new pt[100];
    strcat(pt,"mensagem");
    strcat(pt,".... ");
    strcat(pt,".... ");
    strcat(pt,".... ");
    ShowPlayerDialog(playerid, Dia_Creditos, DIALOG_STYLE_MSGBOX, "Creditos", pt, "OK", "");
    return 1;
}



Re: Cуdigos de Creditos - dreiklol - 02.10.2013

Quote:
Originally Posted by HatedS
Посмотреть сообщение
Um /creditos diferente e.e'
No topo da GM

pawn Код:
#define DIALOG_CREDITOS 1
Comando em ZCMD [Bota em qualquer lugar da GM]

pawn Код:
CMD:creditos(playerid, params[])
{
    ShowPlayerDialog(playerid, DIALOG_CREDITOS, DIALOG_STYLE_LIST, "Crйditos do servidor", "Scripters\nDonos\nMapers", "Selecionar", "Fechar");
    return 1;
}
OU ...

Comando strcmp, bota dentro do callback (public OnPlayerCommandText)

pawn Код:
if (strcmp("/creditos", cmdtext, true, 10) == 0)
    {
        ShowPlayerDialog(playerid, DIALOG_CREDITOS, DIALOG_STYLE_LIST, "Crйditos do servidor", "Scripters\nDonos\nMapers", "Selecionar", "Fechar");
        return 1;
    }
em public OnDialogResponse :

pawn Код:
if(dialogid == DIALOG_CREDITOS)
    {
        if(response)
        {
            if(listitem == 0)
            {
                ShowPlayerDialog(playerid, ID, DIALOG_STYLE_MSGBOX, "Scripters", "dreiklol", "Okay", "Close");
            }
            if(listitem == 1)
            {
                ShowPlayerDialog(playerid, ID, DIALOG_STYLE_MSGBOX, "Donos", "dreiklol", "Okay", "Close");
            }
            if(listitem == 2)
            {
                ShowPlayerDialog(playerid, ID, DIALOG_STYLE_MSGBOX, "Mapers", "dreiklol", "Okay", "Close");
            }
        }
    }
Obs : /creditos em Dialog ...








Mano O Seu Funfo Direitinho Eu Que Nгo Tava Colocando Certo O Seu Massa Gostei Vlw Ai.