04.09.2013, 09:36
This will work
pawn Код:
CMD:dance(playerid, params[])
{
new id;
if(id == 1)
{
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1);// Dancing Styles
}
else if(id == 2)
{
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE2);// Dancing Styles
}
else if(id == 3)
{
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE3);// Dancing Styles
}
else if(id == 4)
{
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE4);// Dancing Styles
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /an dance [ID]");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "1,2,3,4");
}
return 1;
}