09.04.2011, 02:29
pawn Код:
#include <a_samp>
#define FILTERSCRIPT
#define DIALOG_ANIMES 1547
public OnFilterScriptInit()
{
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext,"/Animes", true) == 0)
{
ShowPlayerDialog(playerid, DIALOG_ANIMES, DIALOG_STYLE_LIST, "Animes:", "Ficar De 4 \nRape\nFuder-Se\nObservar\nFicar Bebado\nAbaixar-Se\nAgaixar\nVomitar\nFumar\nFumar Baseado\nSentar\nRender-Se\nPegar Telefone\nGuardar Telefone\nPlantar Bomba\nConvercar", "Aplicar", "Cancelar");
return 1;
}
return 0;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_ANIMES)
{
if(response)
{
if(listitem == 0)
{
ApplyAnimation ( playerid , "FINALE" , "FIN_Land_Car" , 4.1 , 0 , 1 , 1 , 1 , 1 ) ;
}
if(listitem == 1)
{
ApplyAnimation ( playerid , "ON_LOOKERS" , "wave_loop" , 4.0 , 1 , 0 , 0 , 0 , 0 ) ;
}
if(listitem == 2)
{
ApplyAnimation ( playerid , "PED" , "fucku" , 4.0 , 0 , 0 , 0 , 0 , 0 ) ;
}
if(listitem == 3)
{
ApplyAnimation ( playerid , "BAR" , "dnk_stndF_loop" , 4.0 , 1 , 0 , 0 , 0 , 0 ) ;
}
if(listitem == 4)
{
ApplyAnimation ( playerid , "PED" , "WALK_DRUNK" , 4.0 , 1 , 1 , 1 , 1 , 0 ) ;
}
if(listitem == 5)
{
ApplyAnimation ( playerid , "BEACH" , "bather" , 4.0 , 1 , 0 , 0 , 0 , 0 ) ;
}
if(listitem == 6)
{
ApplyAnimation ( playerid , "ped" , "cower" , 3.0 , 1 , 0 , 0 , 0 , 0 ) ;
}
if(listitem == 7)
{
ApplyAnimation ( playerid , "FOOD" , "EAT_Vomit_P" , 3.0 , 0 , 0 , 0 , 0 , 0 ) ;
}
if(listitem == 8)
{
ApplyAnimation ( playerid , "SMOKING" , "M_smklean_loop" , 4.0 , 1 , 0 , 0 , 0 , 0 ) ;
}
if(listitem == 9)
{
ApplyAnimation ( playerid , "SMOKING" , "F_smklean_loop" , 4.0 , 1 , 0 , 0 , 0 , 0 ) ;
}
if(listitem == 10)
{
ApplyAnimation ( playerid , "BEACH" , "ParkSit_M_loop" , 4.0 , 1 , 0 , 0 , 0 , 0 ) ;
}
if(listitem == 11)
{
SetPlayerSpecialAction(playerid, 10);
}
if(listitem == 12)
{
SetPlayerSpecialAction(playerid, 11);
}
if(listitem == 13)
{
ClearAnimations(playerid);
ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
}
if(listitem == 14)
{
ApplyAnimation(playerid, "PED", "IDLE_CHAT", 4.0, 0, 0, 0, 0, 0);
}
}
}
return 1;
}