Quote:
Originally Posted by inferno211
Someone help me?
|
Bro the cuffed animation was added in 0.3e it won't work if you are using SA-MP version < 0.3e. So you should upgrade to 0.3e to be able to use this.
And by the way your code must be like this:
pawn Код:
#include <a_samp>
#include <zcmd>
CMD:skuj(playerid, params[])
{
if(!IsNumeric(params) || isnull(params))
return SendClientMessage(playerid, -1, "Użyj: /skuj <id>");
new player = strval(params);
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_CUFFED);//here you missed 'id' from playerid
SetPlayerAttachedObject(playerid, 0, 19418, 6, -0.011000, 0.028000, -0.022000, -15.600012, -33.699977, -81.700035, 0.891999, 1.000000, 1.168000);//here you missed 'id' from playerid
return 1;
}
stock IsNumeric(const string[])
{
for (new i = 0, j = strlen(string); i < j; i++)
{
if (string[i] > '9' || string[i] < '0') return 0;
}
return 1;
}