MuffinMonster

zcmd

Apr 27th, 2014
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.53 KB | None | 0 0
  1. CMD:box(playerid)
  2. {
  3.     ApplyAnimation(playerid,"CARRY","crry_prtial",4.1,1,1,1,1,1);
  4.     SetPlayerAttachedObject(playerid, 0, 1271, 1, 0.41, 0.57, 0);
  5.     return 1;
  6. }
  7. CMD:removebox(playerid)
  8. {
  9.     if (IsPlayerAttachedObjectSlotUsed(playerid, 0) == 1)
  10.     {
  11.         RemovePlayerAttachedObject(playerid, 0);
  12.         SendClientMessage(playerid, COLOR_GREEN, "You've dropped the box!");
  13.         ClearAnimations(playerid);
  14.         return 1;
  15.     }
  16.     else
  17.     {
  18.         SendClientMessage(playerid, COLOR_GREEN, "You're not holding a box!");
  19.         return 1;
  20.     }
  21. }
Add Comment
Please, Sign In to add comment