Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //=============================================================================
- //=============================================================================
- /* FILTERSCRIPT FEITO POR Ozzy
- Contém sistema de Animações em Dialog !
- Mantenha os créditos.
- http://forum.sa-mp.com/showthread.php?t=359121
- * 12/07/2012 */
- //
- //=============================================================================
- //=============================================================================
- /* INCLUDES */
- #include a_samp
- #include zcmd
- #if defined FILTERSCRIPT
- // _____________________________________________________________________________
- #else
- #endif
- public OnFilterScriptInit()
- {
- print("\n________________________________________________");
- print(" Filterscript de Animações Feito por Ozzy");
- print(" Filterscript de Animações Carregado Com SUCESSO");
- print("\n________________________________________________");
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(response)
- {
- switch(dialogid == 15)
- {
- case 1:
- {
- switch(listitem)
- {
- case 0: /* Primeiro Item */
- {
- ApplyAnimation(playerid, "PED", "WALK_DRUNK", 4.0, 1, 1, 1, 1, 0);
- }
- case 1:
- {
- ClearAnimations(playerid);
- ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
- }
- case 2:
- {
- ApplyAnimation(playerid, "ped", "ARRESTgun", 4.0, 0, 1, 1, 1, -1);
- }
- case 3:
- {
- ApplyAnimation(playerid, "RAPPING", "Laugh_01", 4.0, 0, 0, 0, 0, 0);
- }
- case 4:
- {
- ApplyAnimation(playerid, "SHOP", "ROB_Shifty", 4.0, 0, 0, 0, 0, 0);
- }
- case 5:
- {
- ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 1, 0, 0, 0, 0);
- }
- case 6:
- {
- ApplyAnimation(playerid, "COP_AMBIENT", "Coplook_loop", 4.0, 0, 1, 1, 1, -1);
- }
- case 7:
- {
- ApplyAnimation(playerid, "BEACH", "bather", 4.0, 1, 0, 0, 0, 0);
- }
- case 8:
- {
- ApplyAnimation(playerid, "ped", "cower", 3.0, 1, 0, 0, 0, 0);
- }
- case 9:
- {
- ApplyAnimation(playerid, "FOOD", "EAT_Vomit_P", 3.0, 0, 0, 0, 0, 0);
- }
- case 10:
- {
- ApplyAnimation(playerid, "FOOD", "EAT_Burger", 3.0, 0, 0, 0, 0, 0);
- }
- case 11: /* Último Item 11 */
- {
- ClearAnimations(playerid);
- }
- case 12: /* Último item */
- {
- ShowPlayerDialog(playerid, 16, DIALOG_STYLE_LIST, "{FF0000}2 Lista de Animações", "{FF4500}Cobrar\n {63B8FF}Overdose\n {FF4500}Fumar\n {63B8FF}Fumar Beack\n {FF4500}Sentar\n {63B8FF}Conversar\n {FF4500}Foda-se\n {63B8FF}Taichi\n {FF4500}Observar\n {63B8FF}Rap\n {FF4500}Passar a Mão\n Parar Anim\n {FFFFE0}Voltar", "Selecionar", "Cancelar");
- }
- }
- }
- }
- switch(dialogid == 16)/* Dialogo de ID 16, feito no item 11 "Segunda Lista" */
- {
- case 1://
- {
- switch(listitem)
- {
- case 0: /* Item 1 */
- {
- ApplyAnimation(playerid, "DEALER", "DEALER_DEAL", 4.0, 0, 0, 0, 0, 0);
- }
- case 1:
- {
- ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
- }
- case 2:
- {
- ApplyAnimation(playerid, "SMOKING", "M_smklean_loop", 4.0, 1, 0, 0, 0, 0);
- }
- case 3:
- {
- ApplyAnimation(playerid, "SMOKING", "F_smklean_loop", 4.0, 1, 0, 0, 0, 0);
- }
- case 4:
- {
- ApplyAnimation(playerid, "BEACH", "ParkSit_M_loop", 4.0, 1, 0, 0, 0, 0);
- }
- case 5:
- {
- ApplyAnimation(playerid, "PED", "IDLE_CHAT", 4.0, 0, 0, 0, 0, 0);
- }
- case 6:
- {
- ApplyAnimation(playerid, "PED", "fucku", 4.0, 0, 0, 0, 0, 0);
- }
- case 7:
- {
- ApplyAnimation(playerid, "PARK", "Tai_Chi_Loop", 4.0, 1, 0, 0, 0, 0);
- }
- case 8:
- {
- ApplyAnimation(playerid, "BAR", "dnk_stndF_loop", 4.0, 1, 0, 0, 0, 0);
- }
- case 9:
- {
- ApplyAnimation(playerid, "ON_LOOKERS", "wave_loop", 4.0, 1, 0, 0, 0, 0);
- }
- case 10:
- {
- ClearAnimations(playerid);
- ApplyAnimation(playerid, "SWEET", "sweet_ass_slap", 4.0, 0, 0, 0, 0, 0);
- }
- case 11: /* Último Item 11 */
- {
- ClearAnimations(playerid);
- }
- case 12: /* Último Item 11 */
- {
- ShowPlayerDialog(playerid, 15, DIALOG_STYLE_LIST, "{FF0000}Lista de Animações", "{FF4500}Bebado\n {63B8FF}Bomba\n {FF4500}Apontar\n {63B8FF}Merda\n {FF4500}Marcarar-se\n {63B8FF}Roubar\n {FF4500}Cruzarb\n {63B8FF}Deitar\n {FF4500}Abaixar\n {63B8FF}Vomitar\n {FF4500}Comer\n Parar Anim\n {FFFFE0}Proxima Lista", "Selecionar", "Sair");
- }
- }
- }
- }
- }
- return 1;
- }
- CMD:animes(playerid, params[])
- {
- ShowPlayerDialog(playerid, 15, DIALOG_STYLE_LIST, "{FF0000}Lista de Animações", "{FF4500}Bebado\n {63B8FF}Bomba\n {FF4500}Apontar\n {63B8FF}Merda\n {FF4500}Marcarar-se\n {63B8FF}Roubar\n {FF4500}Cruzarb\n {63B8FF}Deitar\n {FF4500}Abaixar\n {63B8FF}Vomitar\n {FF4500}Comer\n Parar Anim\n {FFFFE0}Proxima Lista", "Selecionar", "Sair");
- return 1;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- if(newkeys == 131072 && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
- {
- ClearAnimations(playerid);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement