28.05.2015, 12:19
pawn Код:
CMD:restrain(playerid, params[])
{
new pName[128], name[128];
new id;
GetPlayerName(playerid, pName, sizeof(pName));
GetPlayerName(id, name, sizeof(name));
if(!sscanf(params,"u",id))
{
SetPlayerSpecialAction(id, SPECIAL_ACTION_CUFFED);
TogglePlayerControllable(id, 0);
}
else
{
SendClientMessage(playerid, COLOR_RED, "USAGE: /restrain [playerid]");
}
return 1;
}