03.02.2011, 10:34
I'll spend some animations (most used)
pawn Code:
if(strcmp(cmd,"/animlist",true)==0)
{
SendClientMessage(playerid,COR_AMARELO,"Animaзхes BPG");
SendClientMessage(playerid,COR_AMARELO2,"/handsup /drunk /bomb /getarrested /laugh /lookout /robman");
SendClientMessage(playerid,COR_AMARELO2,"/crossarms /deitar /hide /vomitar /comer /wave /taichi /fucku");
SendClientMessage(playerid,COR_AMARELO2,"/deal /crack /fumar /sentar /mijar /chat /dance /punheta /animfood");
SendClientMessage(playerid,COR_AMARELO2,"/animpaul /animcolt /animcrack /animdance /animfinale /animcopa");
SendClientMessage(playerid,COR_AMARELO,"|__________________________________________________________|");
}
if(strcmp(cmd, "/animcopa", true) == 0) {
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid,0xFF0000FF,">Digite /animcopa [1-12]");
return 1;
}
animationplayed = strval(tmp);
if(animationplayed < 1 || animationplayed > 12) {
SendClientMessage(playerid,0xFF0000FF,">Digite /animcopa[1-12]");
return 1;
}
if(animationplayed == 1) {
ApplyAnimation(playerid,"COP_AMBIENT","Copbrowse_in",4.1,0,1,1,1,1);
} else if(animationplayed == 2) {
ApplyAnimation(playerid,"COP_AMBIENT","Copbrowse_loop",4.1,0,1,1,1,1);
} else if(animationplayed == 3) {
ApplyAnimation(playerid,"COP_AMBIENT","Copbrowse_nod",4.1,0,1,1,1,1);
} else if(animationplayed == 4) {
ApplyAnimation(playerid,"COP_AMBIENT","Copbrowse_out",4.1,0,1,1,1,1);
} else if(animationplayed == 5) {
ApplyAnimation(playerid,"COP_AMBIENT","Copbrowse_shake",4.1,0,1,1,1,1);
} else if(animationplayed == 6) {
ApplyAnimation(playerid,"COP_AMBIENT","Coplook_in",4.1,0,1,1,1,1);
} else if(animationplayed == 7) {
ApplyAnimation(playerid,"COP_AMBIENT","Coplook_loop",4.1,0,1,1,1,1);
} else if(animationplayed == 8) {
ApplyAnimation(playerid,"COP_AMBIENT","Coplook_nod",4.1,0,1,1,1,1);
} else if(animationplayed == 9) {
ApplyAnimation(playerid,"COP_AMBIENT","Coplook_out",4.1,0,1,1,1,1);
} else if(animationplayed == 10) {
ApplyAnimation(playerid,"COP_AMBIENT","Coplook_shake",4.1,0,1,1,1,1);
} else if(animationplayed == 11) {
ApplyAnimation(playerid,"COP_AMBIENT","Coplook_think",4.1,0,1,1,1,1);
} else if(animationplayed == 12) {
ApplyAnimation(playerid,"COP_AMBIENT","Coplook_watch",4.1,0,1,1,1,1);
}
return 1;
}
if(strcmp(cmd, "/animfinale", true) == 0) {
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid,0xFF0000FF,">Digite /animfinale [1-15]");
return 1;
}
animationplayed = strval(tmp);
if(animationplayed < 1 || animationplayed > 15) {
SendClientMessage(playerid,0xFF0000FF,">Digite /animfinale [1-15]");
return 1;
}
if(animationplayed == 1) {
ApplyAnimation(playerid,"FINALE","FIN_Climb_In",4.1,0,1,1,1,1);
}else if(animationplayed == 1) {
ApplyAnimation(playerid,"FINALE","FIN_Cop1_ClimbOut2",4.1,0,1,1,1,1);
}else if(animationplayed == 2) {
ApplyAnimation(playerid,"FINALE","FIN_Cop1_Loop",4.1,0,1,1,1,1);
}else if(animationplayed == 3) {
ApplyAnimation(playerid,"FINALE","FIN_Cop1_Stomp",4.1,0,1,1,1,1);
}else if(animationplayed == 4) {
ApplyAnimation(playerid,"FINALE","FIN_Hang_L",4.1,0,1,1,1,1);
}else if(animationplayed == 5) {
ApplyAnimation(playerid,"FINALE","FIN_Hang_Loop",4.1,0,1,1,1,1);
}else if(animationplayed == 6) {
ApplyAnimation(playerid,"FINALE","FIN_Hang_R",4.1,0,1,1,1,1);
}else if(animationplayed == 7) {
ApplyAnimation(playerid,"FINALE","FIN_Hang_L",4.1,0,1,1,1,1);
}else if(animationplayed == 8) {
ApplyAnimation(playerid,"FINALE","FIN_Jump_On",4.1,0,1,1,1,1);
}else if(animationplayed == 9) {
ApplyAnimation(playerid,"FINALE","FIN_Land_Car",4.1,0,1,1,1,1);
}else if(animationplayed == 10) {
ApplyAnimation(playerid,"FINALE","FIN_Land_Die",4.1,0,1,1,1,1);
}else if(animationplayed == 11) {
ApplyAnimation(playerid,"FINALE","FIN_LegsUp",4.1,0,1,1,1,1);
}else if(animationplayed == 12) {
ApplyAnimation(playerid,"FINALE","FIN_LegsUp_L",4.1,0,1,1,1,1);
}else if(animationplayed == 13) {
ApplyAnimation(playerid,"FINALE","FIN_LegsUp_Loop",4.1,0,1,1,1,1);
}else if(animationplayed == 14) {
ApplyAnimation(playerid,"FINALE","FIN_LegsUp_R",4.1,0,1,1,1,1);
}else if(animationplayed == 15) {
ApplyAnimation(playerid,"FINALE","FIN_Let_Go",4.1,0,1,1,1,1);
}
return 1;
}
if(strcmp(cmd, "/animdance", true) == 0) {
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid,0xFF0000FF,">Digite /animdance [1-13]");
return 1;
}
animationplayed = strval(tmp);
if(animationplayed < 1 || animationplayed > 13) {
SendClientMessage(playerid,0xFF0000FF,">Digite /animdance [1-13]");
return 1;
}
if(animationplayed == 1) {
ApplyAnimation(playerid,"DANCING","bd_clap",4.1,0,1,1,1,1);
} else if(animationplayed == 2) {
ApplyAnimation(playerid,"DANCING","bd_clap1",4.1,0,1,1,1,1);
} else if(animationplayed == 3) {
ApplyAnimation(playerid,"DANCING","dance_loop",4.1,0,1,1,1,1);
} else if(animationplayed == 4) {
ApplyAnimation(playerid,"DANCING","DAN_Down_A",4.1,0,1,1,1,1);
} else if(animationplayed == 5) {
ApplyAnimation(playerid,"DANCING","DAN_Left_A",4.1,0,1,1,1,1);
} else if(animationplayed == 6) {
ApplyAnimation(playerid,"DANCING","DAN_Loop_A",4.1,0,1,1,1,1);
} else if(animationplayed == 7) {
ApplyAnimation(playerid,"DANCING","DAN_Right_A",4.1,0,1,1,1,1);
} else if(animationplayed == 8) {
ApplyAnimation(playerid,"DANCING","DAN_Up_A",4.1,0,1,1,1,1);
} else if(animationplayed == 9) {
ApplyAnimation(playerid,"DANCING","dnce_M_a",4.1,0,1,1,1,1);
} else if(animationplayed == 10) {
ApplyAnimation(playerid,"DANCING","dnce_M_b",4.1,0,1,1,1,1);
} else if(animationplayed == 11) {
ApplyAnimation(playerid,"DANCING","dnce_M_c",4.1,0,1,1,1,1);
} else if(animationplayed == 12) {
ApplyAnimation(playerid,"DANCING","dnce_M_d",4.1,0,1,1,1,1);
} else if(animationplayed == 13) {
ApplyAnimation(playerid,"DANCING","dnce_M_e",4.1,0,1,1,1,1);
}
return 1;
}
if(strcmp(cmd, "/animcrack", true) == 0) {
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid,0xFF0000FF,">Digite /animcrack[1-9]");
return 1;
}
animationplayed = strval(tmp);
if(animationplayed < 1 || animationplayed > 9) {
SendClientMessage(playerid,0xFF0000FF,">Digite /animcrack [1-9]");
return 1;
}
if(animationplayed == 1) {
ApplyAnimation(playerid,"CRACK","Bbalbat_Idle_01",4.1,0,1,1,1,1);
}else if(animationplayed == 2) {
ApplyAnimation(playerid,"CRACK","Bbalbat_Idle_02",4.1,0,1,1,1,1);
}else if(animationplayed == 3) {
ApplyAnimation(playerid,"CRACK","crckdeth1",4.1,0,1,1,1,1);
}else if(animationplayed == 4) {
ApplyAnimation(playerid,"CRACK","crckdeth2",4.1,0,1,1,1,1);
}else if(animationplayed == 5) {
ApplyAnimation(playerid,"CRACK","crckdeth3",4.1,0,1,1,1,1);
}else if(animationplayed == 6) {
ApplyAnimation(playerid,"CRACK","crckdeth4",4.1,0,1,1,1,1);
}else if(animationplayed == 7) {
ApplyAnimation(playerid,"CRACK","crckidle1",4.1,0,1,1,1,1);
}else if(animationplayed == 8) {
ApplyAnimation(playerid,"CRACK","crckidle2",4.1,0,1,1,1,1);
}else if(animationplayed == 9) {
ApplyAnimation(playerid,"CRACK","crckidle3",4.1,0,1,1,1,1);
}
return 1;
}
if(strcmp(cmd, "/animfood", true) == 0) {
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid,0xFF0000FF,">Digite /animfood [1-33]");
return 1;
}
animationplayed = strval(tmp);
if(animationplayed < 1 || animationplayed > 33) {
SendClientMessage(playerid,0xFF0000FF,">Digite /animfood [1-33]");
return 1;
}
if(animationplayed == 1) {
ApplyAnimation(playerid,"FOOD","EAT_Burger",4.1,0,1,1,1,1);
}else if(animationplayed == 2) {
ApplyAnimation(playerid,"FOOD","EAT_Chicken",4.1,0,1,1,1,1);
}else if(animationplayed == 3) {
ApplyAnimation(playerid,"FOOD","EAT_Pizza",4.1,0,1,1,1,1);
}else if(animationplayed == 4) {
ApplyAnimation(playerid,"FOOD","EAT_Vomit_P",4.1,0,1,1,1,1);
}else if(animationplayed == 5) {
ApplyAnimation(playerid,"FOOD","EAT_Vomit_SK",4.1,0,1,1,1,1);
}else if(animationplayed == 6) {
ApplyAnimation(playerid,"FOOD","FF_Dam_Bkw",4.1,0,1,1,1,1);
}else if(animationplayed == 7) {
ApplyAnimation(playerid,"FOOD","FF_Dam_Fwd",4.1,0,1,1,1,1);
}else if(animationplayed == 8) {
ApplyAnimation(playerid,"FOOD","FF_Dam_Left",4.1,0,1,1,1,1);
}else if(animationplayed == 9) {
ApplyAnimation(playerid,"FOOD","FF_Dam_Right",4.1,0,1,1,1,1);
}else if(animationplayed == 10) {
ApplyAnimation(playerid,"FOOD","FF_Die_Bkw",4.1,0,1,1,1,1);
}else if(animationplayed == 11) {
ApplyAnimation(playerid,"FOOD","FF_Die_Fwd",4.1,0,1,1,1,1);
}else if(animationplayed == 12) {
ApplyAnimation(playerid,"FOOD","FF_Die_Left",4.1,0,1,1,1,1);
}else if(animationplayed == 13) {
ApplyAnimation(playerid,"FOOD","FF_Die_Right",4.1,0,1,1,1,1);
}else if(animationplayed == 14) {
ApplyAnimation(playerid,"FOOD","FF_Sit_Eat1",4.1,0,1,1,1,1);
}else if(animationplayed == 15) {
ApplyAnimation(playerid,"FOOD","FF_Sit_Eat2",4.1,0,1,1,1,1);
}else if(animationplayed == 16) {
ApplyAnimation(playerid,"FOOD","FF_Sit_Eat3",4.1,0,1,1,1,1);
}else if(animationplayed == 17) {
ApplyAnimation(playerid,"FOOD","FF_Sit_In",4.1,0,1,1,1,1);
}else if(animationplayed == 18) {
ApplyAnimation(playerid,"FOOD","FF_Sit_In_L",4.1,0,1,1,1,1);
}else if(animationplayed == 19) {
ApplyAnimation(playerid,"FOOD","FF_Sit_In_R",4.1,0,1,1,1,1);
}else if(animationplayed == 20) {
ApplyAnimation(playerid,"FOOD","FF_Sit_Look",4.1,0,1,1,1,1);
}else if(animationplayed == 21) {
ApplyAnimation(playerid,"FOOD","FF_Sit_Loop",4.1,0,1,1,1,1);
}else if(animationplayed == 22) {
ApplyAnimation(playerid,"FOOD","FF_Sit_Out_180",4.1,0,1,1,1,1);
}else if(animationplayed == 23) {
ApplyAnimation(playerid,"FOOD","FF_Sit_Out_L_180",4.1,0,1,1,1,1);
}else if(animationplayed == 24) {
ApplyAnimation(playerid,"FOOD","FF_Sit_Out_R_180",4.1,0,1,1,1,1);
}else if(animationplayed == 25) {
ApplyAnimation(playerid,"FOOD","SHP_Thank",4.1,0,1,1,1,1);
}else if(animationplayed == 26) {
ApplyAnimation(playerid,"FOOD","SHP_Tray_In",4.1,0,1,1,1,1);
}else if(animationplayed == 27) {
ApplyAnimation(playerid,"FOOD","SHP_Tray_Lift",4.1,0,1,1,1,1);
}else if(animationplayed == 28) {
ApplyAnimation(playerid,"FOOD","SHP_Tray_Lift_In",4.1,0,1,1,1,1);
}else if(animationplayed == 29) {
ApplyAnimation(playerid,"FOOD","SHP_Tray_Lift_Loop",4.1,0,1,1,1,1);
}else if(animationplayed == 30) {
ApplyAnimation(playerid,"FOOD","SHP_Tray_Lift_Out",4.1,0,1,1,1,1);
}else if(animationplayed == 31) {
ApplyAnimation(playerid,"FOOD","SHP_Tray_Out",4.1,0,1,1,1,1);
}else if(animationplayed == 32) {
ApplyAnimation(playerid,"FOOD","SHP_Tray_Pose",4.1,0,1,1,1,1);
}else if(animationplayed == 33) {
ApplyAnimation(playerid,"FOOD","SHP_Tray_Return",4.1,0,1,1,1,1);
}
return 1;
}
if(strcmp(cmd, "/animcolt", true) == 0) {
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid,0xFF0000FF,">Digite /animcolt [1-7]");
return 1;
}
animationplayed = strval(tmp);
if(animationplayed < 1 || animationplayed > 7) {
SendClientMessage(playerid,0xFF0000FF,">Digite /animcolt [1-7]");
return 1;
}
if(animationplayed == 1) {
ApplyAnimation(playerid,"COLT45","2guns_crouchfire",4.1,0,1,1,1,1);
}else if(animationplayed == 2) {
ApplyAnimation(playerid,"COLT45","colt45_crouchfire",4.1,0,1,1,1,1);
}else if(animationplayed == 3) {
ApplyAnimation(playerid,"COLT45","colt45_crouchreload",4.1,0,1,1,1,1);
}else if(animationplayed == 4) {
ApplyAnimation(playerid,"COLT45","colt45_fire",4.1,0,1,1,1,1);
}else if(animationplayed == 5) {
ApplyAnimation(playerid,"COLT45","colt45_fire_2hands",4.1,0,1,1,1,1);
}else if(animationplayed == 6) {
ApplyAnimation(playerid,"COLT45","colt45_reload",4.1,0,1,1,1,1);
}else if(animationplayed == 7) {
ApplyAnimation(playerid,"COLT45","sawnoff_reload",4.1,0,1,1,1,1);
}
return 1;
}
if(strcmp(cmd, "/animpaul", true) == 0) {
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid,0xFF0000FF,">Digite /animpaul [1-12]");
return 1;
}
animationplayed = strval(tmp);
if(animationplayed < 1 || animationplayed > 12) {
SendClientMessage(playerid,0xFF0000FF,">Digite /animpaul [1-12]");
return 1;
}
if(animationplayed == 1) {
ApplyAnimation(playerid,"PAULNMAC","Piss_in",4.1,0,1,1,1,1);
} else if(animationplayed == 2) {
ApplyAnimation(playerid,"PAULNMAC","Piss_loop",4.1,0,1,1,1,1);
} else if(animationplayed == 3) {
ApplyAnimation(playerid,"PAULNMAC","Piss_out",4.1,0,1,1,1,1);
} else if(animationplayed == 4) {
ApplyAnimation(playerid,"PAULNMAC","PnM_Argue1_A",4.1,0,1,1,1,1);
} else if(animationplayed == 5) {
ApplyAnimation(playerid,"PAULNMAC","PnM_Argue1_B",4.1,0,1,1,1,1);
} else if(animationplayed == 6) {
ApplyAnimation(playerid,"PAULNMAC","PnM_Argue2_A",4.1,0,1,1,1,1);
} else if(animationplayed == 7) {
ApplyAnimation(playerid,"PAULNMAC","PnM_Argue2_B",4.1,0,1,1,1,1);
} else if(animationplayed == 8) {
ApplyAnimation(playerid,"PAULNMAC","PnM_Loop_A",4.1,0,1,1,1,1);
} else if(animationplayed == 9) {
ApplyAnimation(playerid,"PAULNMAC","PnM_Loop_B",4.1,0,1,1,1,1);
} else if(animationplayed == 10) {
ApplyAnimation(playerid,"PAULNMAC","wank_in",4.1,0,1,1,1,1);
} else if(animationplayed == 11) {
ApplyAnimation(playerid,"PAULNMAC","wank_loop",4.1,0,1,1,1,1);
} else if(animationplayed == 12) {
ApplyAnimation(playerid,"PAULNMAC","wank_out",4.1,0,1,1,1,1);
}
return 1;
}
if (strcmp(cmdtext, "/punheta", true)==0) {
ApplyAnimation(playerid,"PAULNMAC", "wank_loop", 1.800001, 1, 0, 0, 1, 600);
SendClientMessage(playerid,COR_DBLUE, "Parabйns Vocк esta batendo punheta");
OnAnimation[playerid] = 1;
return 1;
}
// HANDSUP
if(strcmp(cmd, "/handsup", true) == 0) {
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
return 1;
}
}
// CELLPHONE OUT
if(strcmp(cmd, "/cellout", true) == 0) {
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_STOPUSECELLPHONE);
return 1;
}
// Drunk
if(strcmp(cmd, "/drunk", true) == 0) {
ApplyAnimation(playerid,"PED","WALK_DRUNK",4.0,1,1,1,1,0);
OnAnimation[playerid] = 1;
return 1;
}
// Place a Bomb
if (strcmp("/bomb", cmdtext, true) == 0) {
ClearAnimations(playerid);
ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0); // Place Bomb
OnAnimation[playerid] = 1;
return 1;
}
// Police Arrest
if (strcmp("/getarrested", cmdtext, true, 7) == 0) {
ApplyAnimation(playerid,"ped", "ARRESTgun", 4.0, 0, 1, 1, 1, -1); // Gun Arrest
OnAnimation[playerid] = 1;
return 1;
}
// Laugh
if (strcmp("/laugh", cmdtext, true) == 0) {
ApplyAnimation(playerid, "RAPPING", "Laugh_01", 4.0, 0, 0, 0, 0, 0); // Laugh
OnAnimation[playerid] = 1;
return 1;
}
// Rob Lookout
if (strcmp("/lookout", cmdtext, true) == 0) {
ApplyAnimation(playerid, "SHOP", "ROB_Shifty", 4.0, 0, 0, 0, 0, 0); // Rob Lookout
OnAnimation[playerid] = 1;
return 1;
}
// Rob Threat
if (strcmp("/robman", cmdtext, true) == 0) {
ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 1, 0, 0, 0, 0); // Rob
OnAnimation[playerid] = 1;
return 1;
}
// Arms crossed
if (strcmp("/crossarms", cmdtext, true) == 0) {
ApplyAnimation(playerid, "COP_AMBIENT", "Coplook_loop", 4.0, 0, 1, 1, 1, -1); // Arms crossed
OnAnimation[playerid] = 1;
return 1;
}
// Lay Down
if (strcmp("/deitar", cmdtext, true, 6) == 0) {
ApplyAnimation(playerid,"BEACH", "bather", 4.0, 1, 0, 0, 0, 0); // Lay down
OnAnimation[playerid] = 1;
return 1;
}
// Take Cover
if (strcmp("/hide", cmdtext, true, 3) == 0) {
ApplyAnimation(playerid, "ped", "cower", 3.0, 1, 0, 0, 0, 0); // Taking Cover
OnAnimation[playerid] = 1;
return 1;
}
// Vomit
if (strcmp("/vomitar", cmdtext, true) == 0) {
ApplyAnimation(playerid, "FOOD", "EAT_Vomit_P", 3.0, 0, 0, 0, 0, 0); // Vomit BAH!
return 1;
}
// Eat Burger
if (strcmp("/comer", cmdtext, true) == 0) {
ApplyAnimation(playerid, "FOOD", "EAT_Burger", 3.0, 0, 0, 0, 0, 0); // Eat Burger
OnAnimation[playerid] = 1;
return 1;
}
// Wave
if (strcmp("/wave", cmdtext, true) == 0) {
ApplyAnimation(playerid, "ON_LOOKERS", "wave_loop", 4.0, 1, 0, 0, 0, 0); // Wave
OnAnimation[playerid] = 1;
return 1;
}
// Dealer
if (strcmp("/deal", cmdtext, true) == 0) {
ApplyAnimation(playerid, "DEALER", "DEALER_DEAL", 4.0, 0, 0, 0, 0, 0); // Deal Drugs
return 1;
}
// Crack Dieing
if (strcmp("/crack", cmdtext, true, 6) == 0) {
ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0); // Dieing of Crack
OnAnimation[playerid] = 1;
return 1;
}
// Male Smoking
if (strcmp("/fumar", cmdtext, true, 4) == 0 || strcmp("/smokef", cmdtext, true) == 0) {
ApplyAnimation(playerid,"SMOKING", "M_smklean_loop", 4.0, 1, 0, 0, 0, 0); // Smoke
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_SMOKE_CIGGY);
OnAnimation[playerid] = 1;
return 1;
}
// Sit
if (strcmp("/sentar", cmdtext, true, 4) == 0 || strcmp("/groundsit", cmdtext, true, 4) == 0) {
ApplyAnimation(playerid,"BEACH", "ParkSit_M_loop", 4.0, 1, 0, 0, 0, 0); // Sit
OnAnimation[playerid] = 1;
return 1;
}
// Mijar
if (strcmp("/mijar", cmdtext, true, 4) == 0 || strcmp("/pee", cmdtext, true, 4) == 0) {
SetPlayerSpecialAction(playerid, 68);
return 1;
}
// Idle Chat
if(strcmp(cmd, "/chat", true) == 0) {
ApplyAnimation(playerid,"PED","IDLE_CHAT",4.0,0,0,0,0,0);
OnAnimation[playerid] = 1;
return 1;
}
// Fucku
if(strcmp(cmd, "/fucku", true) == 0) {
ApplyAnimation(playerid,"PED","fucku",4.0,0,0,0,0,0);
OnAnimation[playerid] = 1;
return 1;
}
// TaiChi
if(strcmp(cmd, "/taichi", true) == 0) {
ApplyAnimation(playerid,"PARK","Tai_Chi_Loop",4.0,1,0,0,0,0);
OnAnimation[playerid] = 1;
return 1;
}
// ChairSit
if(strcmp(cmd, "/chairsit", true) == 0) {
ApplyAnimation(playerid,"BAR","dnk_stndF_loop",4.0,1,0,0,0,0);
OnAnimation[playerid] = 1;
return 1;
}
if(strcmp(cmd, "/dance", true) == 0) {
// Get the dance style param
tmp = strtok(cmdtext, idx);
if(!strlen(tmp) || strlen(tmp) > 2) {
SendClientMessage(playerid,0xFF0000FF,"USAGE: /dance [estilos 1-4]");
return 1;
}
dancestyle = strval(tmp);
if(dancestyle < 1 || dancestyle > 4) {
SendClientMessage(playerid,0xFF0000FF,"USAGE: /dance [estilo 1-4]");
return 1;
}
if(dancestyle == 1) {
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1);
} else if(dancestyle == 2) {
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE2);
} else if(dancestyle == 3) {
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE3);
} else if(dancestyle == 4) {
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE4);
}
return 1;
}