18.02.2013, 11:57
Quote:
/dance 1-3 with ZCMD. I know how to make the animation, but don't know how to make the /dance 1, /dance 2, /dance 3.
|
pawn Code:
CMD:dance(playerid, params[])
{
new style;
if(sscanf(params, "d", style)) return SendClientMessage(playerid, 0xFF000000, "USAGE: /dance (style 1-4)");
if(style < 1 || style > 4) return SendClientMessage(playerid, 0xFF000000, "Invalid dance style.");
if(style == 1) SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DANCE1);
if(style == 2) SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DANCE2);
if(style == 3) SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DANCE3);
if(style == 4) SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DANCE4);
return 1;
}