07.09.2011, 23:22
(
Последний раз редактировалось ApolloRJ; 08.09.2011 в 01:02.
)
pawn Код:
#include <a_samp>
#define FILTERSCRIPT
#if defined FILTERSCRIPT
#define dcmd(%1,%2,%3) if (!strcmp((%3)[1], #%1, true, (%2)) && ((((%3)[(%2) + 1] == '\0') && (dcmd_%1(playerid, ""))) || (((%3)[(%2) + 1] == ' ') && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
#define DIALOG_ANI 24
//----------------------------------------------------------------------------//
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" -> Loading...");
print("--------------------------------------\n");
return 1;
}
//----------------------------------------------------------------------------//
public OnFilterScriptExit()
{
return 1;
}
//----------------------------------------------------------------------------//
public OnPlayerConnect(playerid)
{
return 1;
}
//----------------------------------------------------------------------------//
public OnPlayerDisconnect(playerid, reason)
{
return 1;
}
//----------------------------------------------------------------------------//
public OnPlayerSpawn(playerid)
{
return 1;
}
//----------------------------------------------------------------------------//
public OnPlayerCommandText(playerid, cmdtext[])
{
dcmd(ani, 3, cmdtext);
return 0;
}
//----------------------------------------------------------------------------//
dcmd_ani(playerid, params[])
{
#pragma unused params
ShowPlayerDialog(playerid, DIALOG_ANI, DIALOG_STYLE_LIST, "{FFFF00}Menu {FFFFFF}Animaзхes", "[ Render-se ]\n[ Ligar ]\n[ Desligar ]\n[ Bebado ]\n[ Bomba ]\n[ Apontar ]\n[ Merda ]\n[ Mascararse ]\n[ Roubar ]\n[ Cruzarb ]\n[ Deitar ]\n[ Abaixar ]\n[ Vomitar ]\n[ Comer ]\n[ Rap ]\n[ Passar Amгo ]\n[ Cobrar ]\n[ Overdose ]\n[ Fumar ]\n[ Fumar 2 ]\n[ Sentar ]\n[ Conversar ]\n[ Foda-se ]\n[ Taichi ]\n[ Observar ]", "OK", "Sair");
return true;
}
//----------------------------------------------------------------------------//
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_ANI)
{
if(response)
{
if(listitem == 0)
{
SetPlayerSpecialAction(playerid, 10);
}
if(listitem == 1)
{
SetPlayerSpecialAction(playerid, 11);
}
if(listitem == 2)
{
SetPlayerSpecialAction(playerid, 13);
}
if(listitem == 3)
{
ApplyAnimation(playerid, "PED", "WALK_DRUNK", 4.0, 1, 1, 1, 1, 0);
ApplyAnimation(playerid, "PED", "WALK_DRUNK", 4.0, 1, 1, 1, 1, 0);
}
if(listitem == 4)
{
ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
}
if(listitem == 5)
{
ApplyAnimation(playerid, "ped", "ARRESTgun", 4.0, 0, 1, 1, 1, -1);
ApplyAnimation(playerid, "ped", "ARRESTgun", 4.0, 0, 1, 1, 1, -1);
}
if(listitem == 6)
{
ApplyAnimation(playerid, "RAPPING", "Laugh_01", 4.0, 0, 0, 0, 0, 0);
ApplyAnimation(playerid, "RAPPING", "Laugh_01", 4.0, 0, 0, 0, 0, 0);
}
if(listitem == 7)
{
ApplyAnimation(playerid, "SHOP", "ROB_Shifty", 4.0, 0, 0, 0, 0, 0);
ApplyAnimation(playerid, "SHOP", "ROB_Shifty", 4.0, 0, 0, 0, 0, 0);
}
if(listitem == 8)
{
ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 1, 0, 0, 0, 0);
ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 1, 0, 0, 0, 0);
}
if(listitem == 9)
{
ApplyAnimation(playerid, "COP_AMBIENT", "Coplook_loop", 4.0, 0, 1, 1, 1, -1);
ApplyAnimation(playerid, "COP_AMBIENT", "Coplook_loop", 4.0, 0, 1, 1, 1, -1);
}
if(listitem == 10)
{
ApplyAnimation(playerid, "BEACH", "bather", 4.0, 1, 0, 0, 0, 0);
ApplyAnimation(playerid, "BEACH", "bather", 4.0, 1, 0, 0, 0, 0);
}
if(listitem == 11)
{
ApplyAnimation(playerid, "ped", "cower", 3.0, 1, 0, 0, 0, 0);
ApplyAnimation(playerid, "ped", "cower", 3.0, 1, 0, 0, 0, 0);
}
if(listitem == 12)
{
ApplyAnimation(playerid, "FOOD", "EAT_Vomit_P", 3.0, 0, 0, 0, 0, 0);
ApplyAnimation(playerid, "FOOD", "EAT_Vomit_P", 3.0, 0, 0, 0, 0, 0);
}
if(listitem == 13)
{
ApplyAnimation(playerid, "FOOD", "EAT_Burger", 3.0, 0, 0, 0, 0, 0);
ApplyAnimation(playerid, "FOOD", "EAT_Burger", 3.0, 0, 0, 0, 0, 0);
}
if(listitem == 14)
{
ApplyAnimation(playerid, "ON_LOOKERS", "wave_loop", 4.0, 1, 0, 0, 0, 0);
ApplyAnimation(playerid, "ON_LOOKERS", "wave_loop", 4.0, 1, 0, 0, 0, 0);
}
if(listitem == 15)
{
ApplyAnimation(playerid, "SWEET", "sweet_ass_slap", 4.0, 0, 0, 0, 0, 0);
ApplyAnimation(playerid, "SWEET", "sweet_ass_slap", 4.0, 0, 0, 0, 0, 0);
}
if(listitem == 16)
{
ApplyAnimation(playerid, "DEALER", "DEALER_DEAL", 4.0, 0, 0, 0, 0, 0);
ApplyAnimation(playerid, "DEALER", "DEALER_DEAL", 4.0, 0, 0, 0, 0, 0);
}
if(listitem == 17)
{
ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
}
if(listitem == 18)
{
ApplyAnimation(playerid, "SMOKING", "M_smklean_loop", 4.0, 1, 0, 0, 0, 0);
ApplyAnimation(playerid, "SMOKING", "M_smklean_loop", 4.0, 1, 0, 0, 0, 0);
}
if(listitem == 19)
{
ApplyAnimation(playerid, "SMOKING", "F_smklean_loop", 4.0, 1, 0, 0, 0, 0);
ApplyAnimation(playerid, "SMOKING", "F_smklean_loop", 4.0, 1, 0, 0, 0, 0);
}
if(listitem == 20)
{
ApplyAnimation(playerid, "BEACH", "ParkSit_M_loop", 4.0, 1, 0, 0, 0, 0);
ApplyAnimation(playerid, "BEACH", "ParkSit_M_loop", 4.0, 1, 0, 0, 0, 0);
}
if(listitem == 21)
{
ApplyAnimation(playerid, "PED", "IDLE_CHAT", 4.0, 0, 0, 0, 0, 0);
ApplyAnimation(playerid, "PED", "IDLE_CHAT", 4.0, 0, 0, 0, 0, 0);
}
if(listitem == 22)
{
ApplyAnimation(playerid, "PED", "fucku", 4.0, 0, 0, 0, 0, 0);
ApplyAnimation(playerid, "PED", "fucku", 4.0, 0, 0, 0, 0, 0);
}
if(listitem == 23)
{
ApplyAnimation(playerid, "PARK", "Tai_Chi_Loop", 4.0, 1, 0, 0, 0, 0);
ApplyAnimation(playerid, "PARK", "Tai_Chi_Loop", 4.0, 1, 0, 0, 0, 0);
}
if(listitem == 24)
{
ApplyAnimation(playerid, "BAR", "dnk_stndF_loop", 4.0, 1, 0, 0, 0, 0);
ApplyAnimation(playerid, "BAR", "dnk_stndF_loop", 4.0, 1, 0, 0, 0, 0);
}
}
return 1;
}
//----------------------------------------------------------------------------//
return 0;
}
//----------------------------------------------------------------------------//
#endif
//----------------------------------------------------------------------------//
By ApolloRJ