10.11.2013, 22:50
pawn Код:
#include <sscanf2>
#include <zcmd>
#define SCM SendClientMessage
#define COLOR_ERROR 0x808080FF
CMD:dance(playerid,params[])
{
new style;
if(sscanf(params,"d",style)) return SCM(playerid,COLOR_ERROR,"Usage: /dance [1-4]");
if(style<1||style>4) return SCM(playerid,COLOR_ERROR,"Use a style between 1 and 4.");
SetPlayerSpecialAction(playerid, style+4);
return 1;
}
HERE the zcmd https://sampforum.blast.hk/showthread.php?tid=91354