i have that in my old gamemode, you can have them. here are a they, change what you want:
Код:
// === [Animations] ===
if(strcmp(cmd, "/animations", true) == 0 || strcmp(cmd, "/anims", true) == 0)
{
SendClientMessage(playerid, COLOR_CYAN, "=============================== Animations ===============================");
SendClientMessage(playerid, COLOR_WHITE, "/phone, /handsup, /drunk, /bomb, /laugh, /chat, /slapass /dance, /taichi, /bitchslap, /balls, /kiss");
SendClientMessage(playerid, COLOR_WHITE, "/crossarms, /lay, /hide, /vomit, /eat, /wave, /deal, /crack, /smoke, /groundsit, /dead, /fucku, /robman");
return 1;
}
if(strcmp(cmd, "/getarrested", true) == 0)
{
if(gFreeze[playerid] == 0)
{
LoopingAnim(playerid,"ped", "ARRESTgun", 4.0, 0, 1, 1, 1, -1);
gLoopingAnim[playerid] = 1;
}
else
{
SendClientMessage(playerid, COLOR_RED, "Applying animations while frozen is not allowed!");
return 1;
}
return 1;
}
if(strcmp(cmd, "/robman", true) == 0)
{
if(gFreeze[playerid] == 0)
{
LoopingAnim(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 1, 0, 0, 0, 0);
gLoopingAnim[playerid] = 1;
}
else
{
SendClientMessage(playerid, COLOR_RED, "Applying animations while frozen is not allowed!");
return 1;
}
return 1;
}
if(strcmp(cmd, "/fucku", true) == 0)
{
if(gFreeze[playerid] == 0)
{
OnePlayAnim(playerid,"PED","fucku",4.0,0,0,0,0,0);
gLoopingAnim[playerid] = 1;
}
else
{
SendClientMessage(playerid, COLOR_RED, "Applying animations while frozen is not allowed!");
}
return 1;
}
if(strcmp(cmd, "/dead", true) == 0)
{
if(gFreeze[playerid] == 0)
{
LoopingAnim(playerid,"PED","dead",4.1,0,1,1,1,1);
gLoopingAnim[playerid] = 1;
}
else
{
SendClientMessage(playerid, COLOR_RED, "Applying animations while frozen is not allowed!");
}
return 1;
}
if(strcmp(cmd, "/groundsit", true) == 0)
{
if(gFreeze[playerid] == 0)
{
LoopingAnim(playerid,"BEACH", "ParkSit_M_loop", 4.0, 1, 0, 0, 0, 0);
gLoopingAnim[playerid] = 1;
}
else
{
SendClientMessage(playerid, COLOR_RED, "Applying animations while frozen is not allowed!");
}
return 1;
}
if(strcmp(cmd, "/kiss", true) == 0)
{
if(gFreeze[playerid] == 0)
{
OnePlayAnim(playerid,"PED","kiss",4.1,0,1,1,1,1);
gLoopingAnim[playerid] = 1;
}
else
{
SendClientMessage(playerid, COLOR_RED, "Applying animations while frozen is not allowed!");
}
return 1;
}
if(strcmp(cmd, "/balls", true) == 0)
{
if(gFreeze[playerid] == 0)
{
LoopingAnim(playerid,"MISC","balls",4.1,0,1,1,1,1);
gLoopingAnim[playerid] = 1;
}
else
{
SendClientMessage(playerid, COLOR_RED, "Applying animations while frozen is not allowed!");
}
return 1;
}
if(strcmp(cmd, "/bitchslap", true) == 0)
{
if(gFreeze[playerid] == 0)
{
OnePlayAnim(playerid,"MISC","bitchslap",4.1,0,1,1,1,1);
gLoopingAnim[playerid] = 1;
}
else
{
SendClientMessage(playerid, COLOR_RED, "Applying animations while frozen is not allowed!");
}
return 1;
}
if(strcmp(cmd, "/taichi", true) == 0)
{
if(gFreeze[playerid] == 0)
{
LoopingAnim(playerid,"PARK","Tai_Chi_Loop",4.0,1,0,0,0,0);
gLoopingAnim[playerid] = 1;
}
else
{
SendClientMessage(playerid, COLOR_RED, "Applying animations while frozen is not allowed!");
}
return 1;
}
// === [Handsup] ===
if(strcmp(cmd, "/handsup", true) == 0 || strcmp(cmd, "/surrender", true) == 0 || strcmp(cmd, "/sur", true) == 0)
{
if(gFreeze[playerid] == 0)
{
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
gLoopingAnim[playerid] = 1;
return 1;
}
else
{
SendClientMessage(playerid, COLOR_RED, "Applying animations while frozen is not allowed!");
return 1;
}
}
// === [Phone animations] ===
if(strcmp(cmd, "/phone", true) == 0 || strcmp(cmd, "/cellphone", true) == 0)
{
if(gFreeze[playerid] == 0)
{
if(gPhone[playerid] == 0)
{
gPhone[playerid] = 1;
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USECELLPHONE);
gLoopingAnim[playerid] = 1;
return 1;
}
else
{
gPhone[playerid] = 0;
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_STOPUSECELLPHONE);
gLoopingAnim[playerid] = 1;
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_RED, "Applying animations while frozen is not allowed!");
return 1;
}
}
// === [Drunk] ===
if(strcmp(cmd, "/drunk", true) == 0)
{
if(gFreeze[playerid] == 0)
{
LoopingAnim(playerid,"PED","WALK_DRUNK",4.0,1,1,1,1,0);
gLoopingAnim[playerid] = 1;
return 1;
}
else
{
SendClientMessage(playerid, COLOR_RED, "Applying animations while frozen is not allowed!");
return 1;
}
}
// === [Bomb] ===
if (strcmp("/bomb", cmdtext, true) == 0)
{
if(gFreeze[playerid] == 0)
{
ClearAnimations(playerid);
OnePlayAnim(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
gLoopingAnim[playerid] = 1;
return 1;
}
else
{
SendClientMessage(playerid, COLOR_RED, "Applying animations while frozen is not allowed!");
return 1;
}
}
// === [Laugh] ===
if (strcmp("/laugh", cmdtext, true) == 0)
{
if(gFreeze[playerid] == 0)
{
OnePlayAnim(playerid, "RAPPING", "Laugh_01", 4.0, 0, 0, 0, 0, 0);
gLoopingAnim[playerid] = 1;
return 1;
}
else
{
SendClientMessage(playerid, COLOR_RED, "Applying animations while frozen is not allowed!");
return 1;
}
}
// === [Crossarms] ===
if (strcmp("/crossarms", cmdtext, true) == 0)
{
if(gFreeze[playerid] == 0)
{
LoopingAnim(playerid, "COP_AMBIENT", "Coplook_loop", 4.0, 0, 1, 1, 1, -1);
gLoopingAnim[playerid] = 1;
return 1;
}
else
{
SendClientMessage(playerid, COLOR_RED, "Applying animations while frozen is not allowed!");
return 1;
}
}
// === [Lay] ===
if (strcmp("/lay", cmdtext, true, 6) == 0)
{
if(gFreeze[playerid] == 0)
{
LoopingAnim(playerid,"BEACH", "bather", 4.0, 1, 0, 0, 0, 0);
gLoopingAnim[playerid] = 1;
return 1;
}
else
{
SendClientMessage(playerid, COLOR_RED, "Applying animations while frozen is not allowed!");
return 1;
}
}
// === [Hide] ===
if (strcmp("/hide", cmdtext, true, 3) == 0)
{
if(gFreeze[playerid] == 0)
{
LoopingAnim(playerid, "ped", "cower", 3.0, 1, 0, 0, 0, 0);
gLoopingAnim[playerid] = 1;
return 1;
}
else
{
SendClientMessage(playerid, COLOR_RED, "Applying animations while frozen is not allowed!");
return 1;
}
}
// === [Vomit] ===
if (strcmp("/vomit", cmdtext, true) == 0)
{
if(gFreeze[playerid] == 0)
{
OnePlayAnim(playerid, "FOOD", "EAT_Vomit_P", 3.0, 0, 0, 0, 0, 0);
gLoopingAnim[playerid] = 1;
return 1;
}
else
{
SendClientMessage(playerid, COLOR_RED, "Applying animations while frozen is not allowed!");
return 1;
}
}
// === [Wave] ===
if (strcmp("/wave", cmdtext, true) == 0)
{
if(gFreeze[playerid] == 0)
{
LoopingAnim(playerid, "ON_LOOKERS", "wave_loop", 4.0, 1, 0, 0, 0, 0);
gLoopingAnim[playerid] = 1;
return 1;
}
else
{
SendClientMessage(playerid, COLOR_RED, "Applying animations while frozen is not allowed!");
return 1;
}
}
// === [Slapass] ===
if (strcmp("/slapass", cmdtext, true) == 0)
{
if(gFreeze[playerid] == 0)
{
OnePlayAnim(playerid, "SWEET", "sweet_ass_slap", 4.0, 0, 0, 0, 0, 0);
gLoopingAnim[playerid] = 1;
return 1;
}
else
{
SendClientMessage(playerid, COLOR_RED, "Applying animations while frozen is not allowed!");
return 1;
}
}
// === [Deal] ===
if (strcmp("/deal", cmdtext, true) == 0)
{
if(gFreeze[playerid] == 0)
{
OnePlayAnim(playerid, "DEALER", "DEALER_DEAL", 4.0, 0, 0, 0, 0, 0);
gLoopingAnim[playerid] = 1;
return 1;
}
else
{
SendClientMessage(playerid, COLOR_RED, "Applying animations while frozen is not allowed!");
return 1;
}
}
// === [Crack] ===
if (strcmp("/crack", cmdtext, true, 6) == 0)
{
if(gFreeze[playerid] == 0)
{
LoopingAnim(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
gLoopingAnim[playerid] = 1;
return 1;
}
else
{
SendClientMessage(playerid, COLOR_RED, "Applying animations while frozen is not allowed!");
return 1;
}
}
// === [Smoke] ===
if (strcmp("/smoke", cmdtext, true, 4) == 0)
{
if(gFreeze[playerid] == 0)
{
LoopingAnim(playerid, "SMOKING", "F_smklean_loop", 4.0, 1, 0, 0, 0, 0);
gLoopingAnim[playerid] = 1;
return 1;
}
else
{
SendClientMessage(playerid, COLOR_RED, "Applying animations while frozen is not allowed!");
return 1;
}
}
// === [Chat] ===
if(strcmp(cmd, "/chat", true) == 0)
{
if(gFreeze[playerid] == 0)
{
OnePlayAnim(playerid,"PED","IDLE_CHAT",4.0,0,0,0,0,0);
gLoopingAnim[playerid] = 1;
return 1;
}
else
{
SendClientMessage(playerid, COLOR_RED, "Applying animations while frozen is not allowed!");
return 1;
}
}
// === [Dance] ===
if(strcmp(cmd, "/dance", true) == 0)
{
new dancestyle;
if(gFreeze[playerid] == 0)
{
tmp = strtok(cmdtext, idx);
dancestyle = strval(tmp);
if(!strlen(tmp) || dancestyle < 1 || dancestyle > 4)
{
SendClientMessage(playerid,COLOR_RED,"USAGE: /dance [1-4]");
return 1;
}
if(dancestyle == 1)
{
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1);
gLoopingAnim[playerid] = 1;
}
else if(dancestyle == 2)
{
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE2);
gLoopingAnim[playerid] = 1;
}
else if(dancestyle == 3)
{
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE3);
gLoopingAnim[playerid] = 1;
}
else if(dancestyle == 4)
{
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE4);
gLoopingAnim[playerid] = 1;
}
return 1;
}
else
{
SendClientMessage(playerid, COLOR_RED, "Applying animations while frozen is not allowed!");
return 1;
}
}