17.02.2013, 18:56
PHP Code:
CMD:dance(playerid, params[])
{
new anim;
if(sscanf(params, "i", anim)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /dance [1-4]");
if(anim < 1 || anim > 4) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /dance [1-4]");
switch(anim)
{
case 1: SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DANCE1);
case 2: SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DANCE2);
case 3: SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DANCE3);
case 4: SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DANCE4);
}
SetPlayerChatBubble(playerid,"Starts Dancing",0xFFFFFFF,30.0,2500);
return 1;
}