dcmd_cuff(playerid,params[])
{
new pID;
if(sscanf(params,"u",pID)) return SendClientMessage(playerid,COLOR_RED,"Benutze /cuff (ID/Name)");
if(!IsACop(playerid)) return SendClientMessage(playerid,COLOR_RED,"Du kannst das nicht!");
if(GetDistanceBetweenPlayers(playerid,pID) > 5) return SendClientMessage(playerid,COLOR_RED,"Spieler ist nicht in der Nähe!");
new string[128];
new giveplayer[MAX_PLAYER_NAME];
new sendername[MAX_PLAYER_NAME];
SetPlayerSpecialAction(pID,SPECIAL_ACTION_CUFFED );
//TogglePlayerControllable(pID,0);
GetPlayerName(pID, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s hat dir Handschellen angelegt!", sendername);
SendClientMessage(pID, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "* Du hast %s gefesselt.", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "* %s legt %s Handschellen an, damit er nichtmehr weglaufen kann.", sendername ,giveplayer);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GameTextForPlayer(pID, "~r~Handschellen angelegt!", 2500, 3);
return 1;
}
Sollte so passen