26.12.2012, 03:16
How to add animations using CMD?
COMMAND:piss(playerid, params[])
{
#pragma unused params //This is because, we don't use params on this command
SetPlayerSpecialAction(playerid,68); //SetPlayerSpecialAction, piss is an special action is not an animation
return 1;
}
COMMAND:handsup(playerid, params[])
{
#pragma unused params
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
return 1;
}
if (strcmp("/dance", cmdtext, true, 6) ==0) // 6 because it is the command letters
{
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DAN CE1); //here is our special action
return 1;
}