10.08.2012, 19:22
pawn Код:
CMD:cuffed(playerid, params[])
{
if(AccInfo[playerid][LoggedIn] == 1)
{
if(AccInfo[playerid][Level] >= 2)
{
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_CUFFED);
SetPlayerAttachedObject(playerid, 0, 19418, 6, -0.011000, 0.028000, -0.022000, -15.600012, -33.699977, -81.700035, 0.891999, 1.000000, 1.168000);
}
}
else SendClientMessage(playerid, COLOR_RED, "You cannot perform this command!");
return 1;
}
CMD:uncuff(playerid, params[])
{
if(AccInfo[playerid][LoggedIn] == 1)
{
if(AccInfo[playerid][Level] >= 2)
{
for(new i = 0; i < MAX_PLAYER_ATTACHED_OBJECTS; i++)
}
{
if(IsPlayerAttachedObjectSlotUsed(playerid, i)) RemovePlayerAttachedObject(playerid, i);
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
}
else SendClientMessage(playerid, COLOR_RED, "You cannot perform this command!");
return 1;
}

