I've tested with cuffed person. He can pick up hands and run away.. I don't konw what to do else.. I'll show you my cuff script:
Код:
if(!strcmp(cmdtext, "/cuff", true,4))
{
if(playerDB[playerid][specialybe]!=1){SendClientMessage(playerid,Color,"* This command only for cops"); return 1;}
if(cmdtext[4]==0){SendClientMessage(playerid,melyna,"* Cuff/uncuff player: /cuff [partofname]"); return 1;}
new vardas[MAX_PLAYER_NAME];
strmid(vardas,cmdtext[5],0,MAX_PLAYER_NAME);
new id = GetPlayeridMid(vardas);
if (id == INVALID_PLAYER_ID){ SendClientMessage(playerid, Color, "* Wrong name."); return 1;}
if (id == playerid){ SendClientMessage(playerid, Color, "* You cant cuff/uncuff yourself"); return 1;}
new Float:Coo[3];
GetPlayerPos(id,Coo[0],Coo[1],Coo[2]);
if(!PlayerToPoint(3, playerid, Coo[0],Coo[1],Coo[2])){SendClientMessage(playerid, Color, "* Player too far..."); return 1;}
new msg[128],police[MAX_PLAYER_NAME];
GetPlayerName(playerid,police,sizeof(police));
GetPlayerName(id,vardas,sizeof(vardas));
if(playerDB[id][cuffed])
{
playerDB[id][cuffed]=false;
TogglePlayerControllable(id,false);
format(msg,sizeof(msg),"You've cuffed %s.",vardas);
SendClientMessage(playerid,Color,msg);
format(msg,sizeof(msg),"You've been cuffed by%s.",police);
SendClientMessage(id,Color,msg);
}else{
playerDB[id][cuffed]=true;
TogglePlayerControllable(id,true);
format(msg,sizeof(msg),"You've uncuffed %s.",vardas);
SendClientMessage(playerid,Color,msg);
format(msg,sizeof(msg),"You've been uncuffed by %s .",police);
SendClientMessage(id,Color,msg);
}
return 1;
}
I hope this will help for you to help me