03.05.2015, 00:02
Try this..
pawn Код:
CMD:cuff(playerid, params[]){
new targetid, pName2[MAX_PLAYER_NAME], pName3[MAX_PLAYER_NAME], string[128];
if (sscanf(params, "u", targetid))
return SendClientMessage(playerid, COLOR_SYNTAX, "Syntax: /cuff [playerid]");
if(!IsPlayerConnected(targetid))
return SendClientMessage(playerid, RED, "Invalid Player ID!");
SetPlayerSpecialAction(targetid, SPECIAL_ACTION_CUFFED);
SetPlayerAttachedObject(targetid, 0, 19418, 6, -0.011000, 0.028000, -0.022000, -15.600012, -33.699977, -81.700035, 0.891999, 1.000000, 1.168000);
GameTextForPlayer(targetid,"You have been cuffed",3000,5);
GetPlayerName(playerid, pName2, sizeof(pName2));
GetPlayerName(targetid, pName3, sizeof(pName3));
format(string, sizeof(string), "%s has cuffed %s ", pName2, pName3);
NearbyMessage(playerid, LIGHTBLUE, string);
return 1;
}