ДеНиС_
Новичок
Ко всем: new
Читать рэп:
пожать руку:
Лежать:
Танцевать:
PHP:
new dancestyle;
new animationplayed;
new xxx [32];
PHP:
if(strcmp(cmd, "/rap", true) == 0)
{
xxx = strtok(cmdtext, idx);
animationplayed = strval(xxx);
if(animationplayed < 1 || animationplayed > 6) return SendClientMessage(playerid,0xEFEFF7AA,"/rap [1-6]");
if(animationplayed == 1) ApplyAnimation(playerid,"RAPPING","RAP_A_Loop",4.0,1,0,0,0,0);
else if(animationplayed == 2) ApplyAnimation(playerid,"RAPPING","RAP_C_Loop",4.0,1,0,0,0,0);
else if(animationplayed == 3) ApplyAnimation(playerid,"GANGS","prtial_gngtlkD",4.0,1,0,0,1,1);
else if(animationplayed == 4) ApplyAnimation(playerid,"GANGS","prtial_gngtlkH",4.0,1,0,0,1,1);
else if(animationplayed == 5) ApplyAnimation(playerid,"GANGS","prtial_gngtlkF",4.0,1,0,0,1,1);
else if(animationplayed == 6) ApplyAnimation(playerid,"GANGS","prtial_gngtlkG",4.0,1,0,0,1,1);
return 1;
}
PHP:
if(strcmp(cmd, "/bro", true) == 0)
{
xxx = strtok(cmdtext, idx);
animationplayed = strval(xxx);
if(animationplayed < 1 || animationplayed > 3) return SendClientMessage(playerid,0xEFEFF7AA,"/bro [1-3]");
if(animationplayed == 1) ApplyAnimation(playerid,"GANGS","hndshkaa",4.0, 0, 0, 0, 0, 0,1);
else if(animationplayed == 2) ApplyAnimation(playerid,"GANGS","hndshkfa",4.0, 0, 0, 0, 0, 0,1);
else if(animationplayed == 3) ApplyAnimation(playerid,"GANGS","hndshkfa_swt",4.0, 0, 0, 0, 0, 0,1);
return 1;
}
PHP:
if(strcmp(cmd, "/lay", true) == 0)
{
xxx = strtok(cmdtext, idx);
animationplayed = strval(xxx);
if(animationplayed < 1 || animationplayed > 4) return SendClientMessage(playerid,COLOR_YELLOW2,"/lay [1-4]");
if(animationplayed == 1) ApplyAnimation(playerid,"BEACH", "bather", 4.0, 1, 0, 0, 1, 1,1);
else if(animationplayed == 2) ApplyAnimation(playerid,"BEACH","Lay_Bac_Loop",4.1,0,0,0,1,1,1);
else if(animationplayed == 3) ApplyAnimation(playerid,"BEACH","ParkSit_W_loop",4.1,0,0,0,1,1,1);
else if(animationplayed == 4) ApplyAnimation(playerid,"BEACH","SitnWait_loop_W",4.1,0,0,0,1,1,1);
return 1;
}
PHP:
if(strcmp(cmd, "/dance", true) == 0)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid,0xFF0000FF,"USAGE: /dance [style 1-4]");
dancestyle = strval(tmp);
if(dancestyle < 1 || dancestyle > 4) return SendClientMessage(playerid,0xFF0000FF,"USAGE: /dance [style 1-4]");
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;
}
