SetPlayerAttachedObject(giveplayerid, 0, 19418, 6, -0.011000, 0.028000, -0.022000, -15.600012, -33.699977, -81.700035, 0.891999, 1.000000, 1.168000);
SPECIAL_ACTION_CUFFED
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_CUFFED);
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_CUFFED);
LOL no not ApplyAnimation
its SetPlayerSpecialAction 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;
}
#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;
}
ApplyAnimation(iD, "ped", "cower", 3.0, 1, 0, 0, 0, 0);