SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 24/08/2010, 06:13 PM   #1
duany123
Huge Clucker
 
duany123's Avatar
 
Join Date: May 2010
Posts: 280
Reputation: 0
Thumbs up [DUVIDA]Uma Duvida Só Ajuda Aqui Pf ..

Olá A Todos Denovo Eu Aqui .. Galera Consegui Criar Um Menu De Teleporte De 5 Pistas Ok Deu Tudo Certo Com A Ajuda Do Gustavob .. Mais Eu Queria Criar Outro Menu Em Dialog Com Outra Categoria ...

Tipo Aquela Outra Dialog Era Das Pistas Oficiais De Drift .. Quero Agora Fazer Um De Diversao ..

/bar
/balada
/cassino

So Que Em Menu Dialog ... Eu Tentei Fazer Mais Quando Faço O Comando Não Leva A Nenhum Lugar Tipo O Comando Ta Correto Não Sei Pq Não Vai As Coordenadas Estão Lá ETC ..

Por Favor Me Expliquem Bem Explicado Obrigado !
duany123 is offline   Reply With Quote
Old 24/08/2010, 06:19 PM   #2
BiieL
High-roller
 
BiieL's Avatar
 
Join Date: May 2010
Location: Fim de Mundo
Posts: 1,236
Reputation: 2
Default Re: [DUVIDA]Uma Duvida Só Ajuda Aqui Pf ..

bota aqui o code de tudo, da Dialog
__________________
BiieL is offline   Reply With Quote
Old 24/08/2010, 06:21 PM   #3
duany123
Huge Clucker
 
duany123's Avatar
 
Join Date: May 2010
Posts: 280
Reputation: 0
Default Re: [DUVIDA]Uma Duvida Só Ajuda Aqui Pf ..

Code:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    new pname[MAX_PLAYER_NAME];
    new string[256];

    if(dialogid == TPD)
    {
    if(response)
    {
    if(listitem == 0) // TPD 1
    {
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
       if(IsPlayerInAnyVehicle(playerid))
       {
       new VehicleID;
       VehicleID = GetPlayerVehicleID(playerid);
       SetVehiclePos(VehicleID,-2418.4846,-614.8561,132.2391);
       SetVehicleZAngle(GetPlayerVehicleID(playerid), 35.9913);
       GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
       format(string, sizeof(string), "%s Foi Fazer Drift Em TPD1 ( /tpd1 )", pname);
       SendClientMessageToAll(0xFF9900AA, string);
       SetPlayerInterior(playerid,0);
       }
       else
       {
       GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
       format(string, sizeof(string), "%s Foi Fazer Drift Em TPD1 ( /tpd1 )", pname);
       SendClientMessageToAll(0xFF9900AA, string);
       SetPlayerInterior(playerid,0);
       SetPlayerPos(playerid,-2418.4846,-614.8561,132.2391);
       SetPlayerFacingAngle(playerid, 35.9913);
       ResetPlayerWeapons(playerid);
       }
    }
    if(listitem == 1) // TPD 2
    {
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
       if(IsPlayerInAnyVehicle(playerid))
       {
       new VehicleID;
       VehicleID = GetPlayerVehicleID(playerid);
       SetVehiclePos(VehicleID,-302.7378,1532.6254,75.0172);
       SetVehicleZAngle(GetPlayerVehicleID(playerid), 181.0729);
       GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
       format(string, sizeof(string), "%s Foi Fazer Drift Em TPD2 ( /tpd2 )", pname);
       SendClientMessageToAll(0xFF9900AA, string);
       SetPlayerInterior(playerid,0);
       }
       else
       {
        GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
       format(string, sizeof(string), "%s Foi Fazer Drift Em TPD2 ( /tpd2 )", pname);
       SendClientMessageToAll(0xFF9900AA, string);
       SetPlayerInterior(playerid,0);
       SetPlayerPos(playerid,-302.7378,1532.6254,75.0172);
       SetPlayerFacingAngle(playerid, 181.0729);
       ResetPlayerWeapons(playerid);
       }
    }
    if(listitem == 2) // TPD 3
    {
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
       if(IsPlayerInAnyVehicle(playerid))
       {
       new VehicleID;
       VehicleID = GetPlayerVehicleID(playerid);
       SetVehiclePos(VehicleID,1260.8165,-2055.7664,59.0758);
       SetVehicleZAngle(GetPlayerVehicleID(playerid), 267.3261);
       GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
       format(string, sizeof(string), "%s Foi Fazer Drift Em TPD2 ( /tpd2 )", pname);
       SendClientMessageToAll(0xFF9900AA, string);
       SetPlayerInterior(playerid,0);
       }
       else
       {
        GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
       format(string, sizeof(string), "%s Foi Fazer Drift Em TPD2 ( /tpd2 )", pname);
       SendClientMessageToAll(0xFF9900AA, string);
       SetPlayerInterior(playerid,0);
       SetPlayerPos(playerid,1260.8165,-2055.7664,59.0758);
       SetPlayerFacingAngle(playerid, 267.3261);
       ResetPlayerWeapons(playerid);
       }
    }
    if(listitem == 3) // TPD 4
    {
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
       if(IsPlayerInAnyVehicle(playerid))
       {
       new VehicleID;
       VehicleID = GetPlayerVehicleID(playerid);
       SetVehiclePos(VehicleID,2325.9778,1404.4043,42.4779);
       SetVehicleZAngle(GetPlayerVehicleID(playerid), 1.6687);
       GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
       format(string, sizeof(string), "%s Foi Fazer Drift Em TPD2 ( /tpd2 )", pname);
       SendClientMessageToAll(0xFF9900AA, string);
       SetPlayerInterior(playerid,0);
       }
       else
       {
        GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
       format(string, sizeof(string), "%s Foi Fazer Drift Em TPD2 ( /tpd2 )", pname);
       SendClientMessageToAll(0xFF9900AA, string);
       SetPlayerInterior(playerid,0);
       SetPlayerPos(playerid,2325.9778,1404.4043,42.4779);
       SetPlayerFacingAngle(playerid, 1.6687);
       ResetPlayerWeapons(playerid);
       }
    }
    if(listitem == 4) // TPD 5
    {
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
       if(IsPlayerInAnyVehicle(playerid))
       {
       new VehicleID;
       VehicleID = GetPlayerVehicleID(playerid);
       SetVehiclePos(VehicleID,2242.7576,1963.9232,31.4417);
       SetVehicleZAngle(GetPlayerVehicleID(playerid), 271.7270);
       GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
       format(string, sizeof(string), "%s Foi Fazer Drift Em TPD3 ( /tpd3 )", pname);
       SendClientMessageToAll(0xFF9900AA, string);
       SetPlayerInterior(playerid,0);
       }
       else
       {
       GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
       format(string, sizeof(string), "%s Foi Fazer Drift Em TPD3 ( /tpd3 )", pname);
       SendClientMessageToAll(0xFF9900AA, string);
       SetPlayerInterior(playerid,0);
       SetPlayerPos(playerid,2242.7576,1963.9232,31.4417);
       SetPlayerFacingAngle(playerid, 271.7270);
       ResetPlayerWeapons(playerid);
       }
    }
    }
    }
    }
Ta Ae A Dialog Inteira ..
duany123 is offline   Reply With Quote
Old 25/08/2010, 06:53 PM   #4
duany123
Huge Clucker
 
duany123's Avatar
 
Join Date: May 2010
Posts: 280
Reputation: 0
Default Re: [DUVIDA]Uma Duvida Só Ajuda Aqui Pf ..

Ajuda Ae Galera ? Pf
duany123 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
koe galera do mau mais uma duvida aqui lucas_mdr1235 Português/Portuguese 7 21/08/2010 04:05 PM
[Duvida]Duvida No Script Aadmin andersongr98 Português/Portuguese 8 08/07/2010 12:56 AM
[Duvida]ajuda com check point tshadow Português/Portuguese 4 30/04/2010 07:34 PM
Ajuda ae, acho que é uma duvida interessante... Joaquim_Blakman Português/Portuguese 5 18/02/2010 04:58 PM
[DUVIDA] Me ajuda, por favor galera (Resolvido) Miic Português/Portuguese 2 14/02/2010 02:43 PM


All times are GMT. The time now is 02:24 AM.


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