30.05.2012, 02:31
this is an example of a cuff command
pawn Код:
YCMD:cuff(playerid, params[], help)
{
if (help) {SendClientMessage(playerid, 0xFF9933FF, "/cuff [playername/id]");}
else
{
new targetid;
if(sscanf(params,"r",targetid)) return SendClientMessage(playerid, 0xFF9933FF, "/cuff [playername/id]");
RemovePlayerAttachedObject(targetid, 9);
SetPlayerAttachedObject(targetid, 9, 19418, 6, -0.011000, 0.028000, -0.022000, -15.600012, -33.699977, -81.700035, 0.891999, 1.000000, 1.168000);
SetPlayerSpecialAction(targetid, SPECIAL_ACTION_CUFFED);
}
return 1;
}