All pastes #1906211 Raw Edit

[FS]Tele-Cidades

public text v1 · immutable
#1906211 ·published 2010-07-22 19:48 UTC
rendered paste body
//*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
//FilterScript Feito Por: [GangstA]Kasura.
//Nome: [FS] Tele-Cidades v1.0 [DIALOG]
//MSN: guerra-mortal@hotmail.com
//*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
//Favor NÃO REMOVA OS CRÉDITOS.
//Permitida Modificação e Estudo.
//*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
#include <a_samp>

#define Telar 1001

//Comando de Tele-Cidades
public OnPlayerCommandText(playerid, cmdtext[])
{
	if(strcmp(cmdtext, "/tele-city", true) == 0)
	{
		ShowPlayerDialog(playerid, Telar, DIALOG_STYLE_LIST, "Teleporte Menu By: [GangstA]Kasura", "Las Venturas\nSan Fierro\nLos Santos", "Teleportar", "Cancelar");
     // ShowPlayerDialog(playerid, Telar, DIALOG_STYLE_LIST, "Teleporte Menu By: [GangstA]Kasura", "Las Venturas\nSan Fierro\nLos Santos\nBayside", "Teleportar", "Cancelar");
		return 1;
	}
	return 0;
}

//Funções do Dialog
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	if(dialogid == Telar)
	{
 		if(response)
		{
		    switch (listitem)
		    {
		        case 0:
		        {
		            SetPlayerInterior(playerid, 0);
		            SetPlayerPos(playerid, 2056.8997,840.5262,6.7286);    // Posição do Teleporte
                    GameTextForPlayer(playerid," Seja bem vindo a Las Venturas",2500,3); // Aparece MSG de Boas vindas
		        }
		        case 1:
		        {
		            SetPlayerInterior(playerid, 0);
		            SetPlayerPos(playerid, -1957.3660,292.4756,35.4688);   // Posição do Teleporte
                    GameTextForPlayer(playerid," Seja bem vindo a San Fierro",2500,3); // Aparece MSG de Boas vindas
		        }
		        case 2:
		        {
		            SetPlayerInterior(playerid, 0);
		            SetPlayerPos(playerid, 2316.8679,-1527.5527,25.3438);  // Posição do Teleporte
                    GameTextForPlayer(playerid," Seja bem vindo ao Los Santos",2500,3); // Aparece MSG de Boas vindas
		        }
          		/*case 3:
		        {
		            SetPlayerInterior(playerid, 0);
		            SetPlayerPos(playerid, -2872.7000,2712.6001,275.2690);  // Posição do Teleporte
                    GameTextForPlayer(playerid," Seja bem vindo ao Bayside",2500,3); // Aparece MSG de Boas vindas
		        }*/
		    }
	  	}
    }
    return 0;
}