SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Português/Portuguese

Reply
 
Thread Tools Display Modes
Old 26/12/2010, 07:25 PM   #1
Power_GamerX
Huge Clucker
 
Join Date: Nov 2010
Posts: 282
Reputation: 0
Default [ajuda] ajuda pff ?? Plix

pessoal to querendo faser assim quando o player da ORG digita /faseratentado aparece em um dialog assim
DP
Aero
Predio

ai quando o cara selecionavam ex DP aparecia assim:

Ex: Power_Break e os As-Farc Irao Faser Atentado Ao DP (aero,predio)

entenderam eu tentei faser ake mais nao quer dar serto blz ??
quem conseguir me ajudar Brigado

Uso Gm: Elite Xtreme Role player
vlw
Power_GamerX is offline   Reply With Quote
Old 26/12/2010, 07:38 PM   #2
[Ips]Guh
Gangsta
 
[Ips]Guh's Avatar
 
Join Date: Apr 2010
Location: Brazil
Posts: 854
Reputation: 62
Default Re: [ajuda] ajuda pff ?? Plix

Cara faiz uma base,assim na mao acho meio dificil de vc arrumar...
[Ips]Guh is offline   Reply With Quote
Old 26/12/2010, 07:40 PM   #3
CyNiC
High-roller
 
Join Date: Jan 2009
Location: Brazil
Posts: 1,410
Reputation: 203
Default Re: [ajuda] ajuda pff ?? Plix

Como criar dialogs.
__________________
My scripts
Brazucas'Server
CyNiC is offline   Reply With Quote
Old 26/12/2010, 07:54 PM   #4
Power_GamerX
Huge Clucker
 
Join Date: Nov 2010
Posts: 282
Reputation: 0
Default Re: [ajuda] ajuda pff ?? Plix

só quero que aparece a menssagem só nao presia ser dialog cara pode ser qualquer coisa
Power_GamerX is offline   Reply With Quote
Old 26/12/2010, 08:01 PM   #5
-GooGle-
Huge Clucker
 
-GooGle-'s Avatar
 
Join Date: Dec 2010
Posts: 269
Reputation: 6
Default Re: [ajuda] ajuda pff ?? Plix

ta ae, adapte:
pawn Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
    new string00[128];
    new sendername[MAX_PLAYER_NAME];
    GetPlayerName(playerid, sendername, sizeof(sendername));
    if(strcmp(cmdtext, "/atentadodp", true) == 0) {
        format(string00,sizeof(string00),"%s vai fazer atentando na dp",sendername);
        SendClientMessageToAll(0xF60000AA,string00);
        return 1;
    }
    if(strcmp(cmdtext, "/atentadoaero",true) == 0) {
        format(string00,sizeof(string00),"%s vai fazer atentando no aero",sendername);
        SendClientMessageToAll(0xF60000AA,string00);
        return 1;
    }
    if(strcmp(cmdtext, "/atentadopredio", true) == 0) {
        format(string00,sizeof(string00),"%s vai fazer atentando no predio",sendername);
        SendClientMessageToAll(0xF60000AA,string00);
        return 1;
    }
    return 0;
}
-GooGle- is offline   Reply With Quote
Old 26/12/2010, 08:25 PM   #6
DeNeR
Big Clucker
 
DeNeR's Avatar
 
Join Date: Oct 2010
Posts: 57
Reputation: 0
Default Re: [ajuda] ajuda pff ?? Plix

pawn Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/faseratentado ", cmdtext, true, 10) == 0)
    {
        ShowPlayerDialog(playerid,666,DIALOG_STYLE_LIST,"Menu Atentado","DP \n Aero \n Predio","OK","Fechar");
        return 1;
    }
pawn Code:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 666){
    if(response){
        new name[MAX_PLAYER_NAME];
        GetPlayerName(playerid, name, sizeof(name));

        if(listitem == 0){
        new string[128];
        GetPlayerName(playerid, name, sizeof(name));
        format(string, sizeof(string), "%s e AsFarc irão atacar a DP", name);
        SendClientMessageToAll(0xFF0000AA, string);
        }
        if(listitem == 1){
        new string[128];
        GetPlayerName(playerid, name, sizeof(name));
        format(string, sizeof(string), "%s e AsFarc irão atacar o Aero", name);
        SendClientMessageToAll(0xFF0000AA, string);
        }
        if(listitem == 2){
        new string[128];
        GetPlayerName(playerid, name, sizeof(name));
        format(string, sizeof(string), "%s e AsFarc irão atacar o Predio", name);
        SendClientMessageToAll(0xFF0000AA, string);
        }
    }
    else{
    }
}
    return 1;
}

seria isso brother??
se tiver algo errado avisa ae fiz rapidão
__________________
"Eu pensei que tinha amigos, mas no fim morremos sozinhos".
DeNeR is offline   Reply With Quote
Old 26/12/2010, 09:05 PM   #7
Power_GamerX
Huge Clucker
 
Join Date: Nov 2010
Posts: 282
Reputation: 0
Default Re: [ajuda] ajuda pff ?? Plix

vlw brigadao =D
Power_GamerX is offline   Reply With Quote
Old 26/12/2010, 09:42 PM   #8
DeNeR
Big Clucker
 
DeNeR's Avatar
 
Join Date: Oct 2010
Posts: 57
Reputation: 0
Default Re: [ajuda] ajuda pff ?? Plix

nada brother tamo ae pra isso
__________________
"Eu pensei que tinha amigos, mas no fim morremos sozinhos".
DeNeR is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ajuda Plix Cmd de sublider Homer_Tihuana Português/Portuguese 0 08/10/2010 04:59 PM
[AJUDA] Criação de Organizações Pesso ajuda por favor de vocês Gabriel6 Português/Portuguese 17 23/08/2010 09:41 PM
[AJUDA] Ajuda Alugns Comandos Aki ? Podem Ajuda eu e Alguns tbm pedro Português/Portuguese 7 06/05/2010 06:12 PM
help plix? Flo_White Help Archive 4 23/02/2009 09:50 PM


All times are GMT. The time now is 01:10 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.