[Tutorial] Como Por efeitos e bandanas
#1

Bom, esse tutorial vai ser para algumas pessoas que nгo sabem colocar efeitos e bandanas.Vai ser rбpido e vou tentar o mбximo explicar.

Lб no inicio do GM vocк coloca a seguinte definiзгo

Код HTML:
#define Dialog_Bandana 
#define Dialog_Efeitos
Agora vamos em OnPlayerCommandText funciona para criar nossos comandos.

Код HTML:
 if(strcmp("/bandana", cmd, true) == 0)
{
    ShowPlayerDialog(playerid,Dialog_Bandana,DIALOG_STYLE_LIST,"Bandanas","Bandana 1\nBandana 2\nBandana 3\nBandana 4\nBandana 5\nBandana 6\nBandana 7\nBandana 8\nBandana 9\nBandana 10\nRemover Bandana","Ok","Fechar");
	return 1;
}
Код HTML:
 if(strcmp("/efeitos", cmd, true) == 0)
{
    ShowPlayerDialog(playerid, Dialog_Efeitos, DIALOG_STYLE_LIST, "{FF00FF}Escolha seu efeito e divirta-se", "{FF0000}Remover efeito\nTartaruga\nBomba de gasolina\nBola\nTelevisгo\nCaveira\nM4\nEspada\nExtintor\nParaquedas\nExplosivo\nBandeira Green\nParaquedas aberto\nClaridade\nDildo frente\nDildo atrбs\nCoraзгo\n", "Ok", "Cancelar");
    return 1;
}
Agora iremos ir para OnDialogResponse estб funзгo й clara para o dialogo do player como definimos la em cima

Код HTML:
         if(dialogid == Dialog_Efeitos)
    {
        if(response)
		{
			if(listitem == 0){RemovePlayerAttachedObject(playerid,1);SendClientMessage(playerid, Vermelho, "[INFO]: Acessуrio removido");return 1;}
			if(listitem == 1){SetPlayerAttachedObject(playerid,1, 1609, 1, 0.0, 0.0, 0.0, 90.0, 0.0, -90.0);} //TARTARUGA
			if(listitem == 2){SetPlayerAttachedObject(playerid,1, 1244, 1, -0.2, 0.1, 0.0, 0.0, 87.0, 90.0);} //BOMBA DE GASOLINA
			if(listitem == 3){SetPlayerAttachedObject(playerid,1, 1598, 2, 0.2, 0.0, 0.0, 0.0, 0.0, 0.0);} //BOLA
			if(listitem == 4){SetPlayerAttachedObject(playerid,1, 1518, 2, 0.2, 0.0, -0.04, 0.0, 100.0, 180.0);} //TELEVISГO
			if(listitem == 5){SetPlayerAttachedObject(playerid,1, 1254, 2, 0.1, 0.01, 0.0, 0.0, 90.0, 0.0);} //CAVEIRA
			if(listitem == 6){SetPlayerAttachedObject(playerid,1, 356, 1, -0.2, -0.15, 0.0, 0.0, 24.0, 0.0);} //M4
			if(listitem == 7){SetPlayerAttachedObject(playerid,1, 3028, 1, 0.3, -0.15, -0.03, 0.0, 120, 0.0);} //ESPADA
			if(listitem == 8){SetPlayerAttachedObject(playerid,1, 366, 1, 0.4, -0.25, 0.0, 0.0, 160.0, 0.0);} //EXTINTOR
			if(listitem == 10){SetPlayerAttachedObject(playerid,1, 1252, 1, 0.1, -0.2, 0.0, 0.0, 90.0, 0.0);} //EXPLOSIVO
			if(listitem == 11){SetPlayerAttachedObject(playerid,1, 2914, 1, 0.0, 0.0, 0.17, 180.0, 90.0, 0.0);} //BANDEIRA VERDE
			if(listitem == 12){SetPlayerAttachedObject(playerid,1, 3131, 1, -0.2, 0.15, 0.0, 0.0, 90.0, 0.0);} //PARAQUEDAS (ABERTO)
			if(listitem == 13){SetPlayerAttachedObject(playerid,1, 354, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);} //CLARIDADE (HYDRA FLARE)
			if(listitem == 14){SetPlayerAttachedObject(playerid,1, 321, 1, -0.24, 0.6, -0.07, 90.0, 0.0, 0.0);} //DILDO FRENTE
			if(listitem == 15){SetPlayerAttachedObject(playerid,1, 323, 1, -0.7, -0.2, 0.0, -90.0, 50.0, 0.0);} //DILDO ATRБS
			if(listitem == 16){SetPlayerAttachedObject(playerid,1, 1240, 1, 0.15, 0.17, 0.06, 0.0, 90.0, 0.0);} //CORAЗГO
		}
		return 1;
	}
Mas logo apуs termos colocado Daremos um espaзo para colocar nosso Dialog Bandana

Код HTML:
//Dialog Bandana
	if(dialogid==Dialog_Bandana)
    {
	    if(response){
			if(listitem==0){SetPlayerAttachedObject( playerid, 0, 18917, 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754);}
			if(listitem==1){SetPlayerAttachedObject( playerid, 0, 18913, 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754);}
			if(listitem==2){SetPlayerAttachedObject( playerid, 0, 18916, 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754);}
			if(listitem==3){SetPlayerAttachedObject(playerid, 0, 18915, 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754);}
			if(listitem==4){SetPlayerAttachedObject(playerid, 0, 18912 , 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754);}
			if(listitem==5){SetPlayerAttachedObject(playerid, 0, 18911 , 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754);}
			if(listitem==6){SetPlayerAttachedObject( playerid, 0, 18914, 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754);}
			if(listitem==7){SetPlayerAttachedObject(playerid, 0, 18918, 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754);}
			if(listitem==8){SetPlayerAttachedObject(playerid, 0, 18920 , 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754);}
			if(listitem==9){SetPlayerAttachedObject(playerid, 0, 18919 , 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754);}
			if(listitem==10){for(new i;i<5;i++) RemovePlayerAttachedObject(playerid,i);}
		}
		return 1;
 }
Resultado final :Bandana Efeitos

Obrigada! a todos que viram, bom esse foi um dos meus primeiros tutorial eu nгo devo ter ido muito bem,mas aceito criticas xD!!
Reply
#2

Obs : Troque o nome do seu comando 2 ali, para '/efeitos' ou entrara em conflito com o outro cmd.

ObsІ : Coloque em [*pawn] codigo [/pawn*] da prуxima, sem os *
Reply
#3

Ok irei fazer isso
Reply
#4

Vc precisa definir um valor para os dialogID's.
De preferкncia um numero nгo utilizado em outros FS, como 0 ou 1, muito utilizado em sistemas de login/register.
Use a caixa com highlight para PAWN.

pawn Код:
 
pawn Код:
#define LOGIN_D (257)
#define REGISTER_D (258)
Reply
#5

Quando eu vejo umas bostas dessas, sinto vontade de nunca mais voltar nesse fуrum.
Reply
#6

Me explique esta tua revolta Jovem?Algum problema...
Reply
#7

Quote:
Originally Posted by SampSampa
Посмотреть сообщение
Quando eu vejo umas bostas dessas, sinto vontade de nunca mais voltar nesse fуrum.
Na sua lista de postagens nгo hб projetos parceiro
nem algo que ajude nem que seja ao minimo alguem ..

@tуpico ..
Estude um pouco mais tudo que deseja explicar em seu "Tutorial " Rapaz..
porйm boa iniciativa ..
Reply
#8

Quote:
Originally Posted by TR0J4N
Посмотреть сообщение
Me explique esta tua revolta Jovem?Algum problema...
Acho que isso responde sua pergunta:
http://pt.wikipedia.org/wiki/Tutorial
http://www.priberam.pt/dlpo/tutorial
http://www.dicionarioinformal.com.br/tutorial/
http://www.dicio.com.br/tutorial/
http://www.infopedia.pt/lingua-portu...ghZ1f17U+5Zg__
http://dicionario.babylon.com/tutorial/
http://www.dicionarioweb.com.br/tutorial/
http://www.achando.info/tutorial

Quote:
Originally Posted by Sky_.
Посмотреть сообщение
Na sua lista de postagens nгo hб projetos parceiro
nem algo que ajude nem que seja ao minimo alguem ..
Vocк ja me ajudou quando tinha meu servidor e sou grato por isso, mas eu nгo tenho o dever de ajudar ninguem aqui nгo. Se alguйm quer ajudar, que faзa direito, nгo isso que ele fez, isso vai apenas dificultar o aprendizado de muitos programadores.
Reply
#9

Cara, se era pra ser realmente grosseiro nгo precisaria nem comentar, tipo der ser como vocк perde tempo escrevendo isso!! boa sorte
Reply
#10

Quote:
Originally Posted by SampSampa
Посмотреть сообщение
Vocк ja me ajudou quando tinha meu servidor e sou grato por isso, mas eu nгo tenho o dever de ajudar ninguem aqui nгo. Se alguйm quer ajudar, que faзa direito, nгo isso que ele fez, isso vai apenas dificultar o aprendizado de muitos programadores.
Sim, eu n me recordo, porйm certeza eu tenho que nгo te tratei com se quer o minimo de ignorвncia, pois sabia que estava ali para aprender ..
como ele man ... vc sabe que errou ao postar aquilo ... mбs ele nгo vai guardar raiva , sabe porque? porque eu vocк e todos ja sofremos isso й mania de Brasileiro...

Quote:
Originally Posted by TR0J4N
Посмотреть сообщение
Cara, se era pra ser realmente grosseiro nгo precisaria nem comentar, tipo der ser como vocк perde tempo escrevendo isso!! boa sorte
Todos ja fomos novatos como vocк, porйm alguns esquecem desse fato e resolvem ganhar postagens humilhando tуpicos semelhantes a isso !!


estude: switch
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)