29.04.2012, 11:47
I just made a script but my character does not perform the animation. Handcuffs are formed correctly.
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(player, SPECIAL_ACTION_CUFFED);
SetPlayerAttachedObject(player, 0, 19418, 6, -0.011000, 0.028000, -0.022000, -15.600012, -33.699977, -81.700035, 0.891999, 1.000000, 1.168000);
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;
}