Hallo wieso macht er die animation nicht .. muss die iwoanders definiert werden oder wie??
ocmd:cuff(playerid,params[])
{
new pID;
if(sscanf(params,"u",pID))return SendClientMessage(playerid,BLAU,"/cuff [playerid]");
if(isPlayerInFrakt(playerid,1))
{
new Float:cx,Float:cy,Float:cz;
GetPlayerPos(playerid,cx,cy,cz);
for(new i = 0; i< MAX_PLAYERS; i++)
if(IsPlayerInRangeOfPoint(i,2.0,cx,cy,cz))
{
TogglePlayerControllable(pID,0);
SetPlayerSpecialAction(pID,SPECIAL_ACTION_CUFFED);
SetPlayerAttachedObject(pID, 0, 19418, 6, -0.011000, 0.028000, -0.022000, -15.600012, -33.699977, -81.700035, 0.891999, 1.000000, 1.168000);
return 1;
}
}
return 1;
}