if( !strcmp( cmdtext, "/creditos" ))
{
SendClientMessage( playerid, 0xFFFFFFAA, "••••••••••••••••••••••••••••••••[ Crйditos ]••••••••••••••••••••••••••••••••" );
SendClientMessage( playerid, 0xFFFFFFAA, "~ Aqui sua Mensagem !" );
SendClientMessage( playerid, 0xFFFFFFAA, "••••••••••••••••••••••••••••••••[ Crйditos ]••••••••••••••••••••••••••••••••" );
return 1;
}
#define DIALOG_CREDITOS 1
CMD:creditos(playerid, params[])
{
ShowPlayerDialog(playerid, DIALOG_CREDITOS, DIALOG_STYLE_LIST, "Crйditos do servidor", "Scripters\nDonos\nMapers", "Selecionar", "Fechar");
return 1;
}
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;
}
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");
}
}
}
public OnGameModeInit()
{
return 1;
}
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(playerid, 100, DIALOG_STYLE_MSGBOX, "Creditos", string4, "OK", "");
}
return 1;
}
PHP код:
|
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;
}
// 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;
}
Um /creditos diferente e.e'
No topo da GM pawn Код:
pawn Код:
Comando strcmp, bota dentro do callback (public OnPlayerCommandText) pawn Код:
pawn Код:
|