Guest User

Untitled

a guest
May 22nd, 2012
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. if(!strcmp(cmd, "/cuff", true))
  2. {
  3. cmd = strtok(cmdtext, idx);
  4. if(!strlen(cmd)) return SendClientMessage(playerid, 0xFFDE00FF, "Usage: /Cuff {51FF00}[ID]");
  5. new id = strval(cmd);
  6. if(!IsPlayerConnected(id)) return SendClientMessage(playerid, 0xFF0000AA,"The player is offline or you mistyped the ID.");
  7. if(playerid == id) return SendClientMessage(playerid, 0x00E2FFFF, "You cannot cuff yourself, {FF0000}stupid{00E2FF}.");
  8. cmd = strrest(cmdtext, idx);
  9. if(strlen(cmd)) return SetPlayerSpecialAction(id, SPECIAL_ACTION_CUFFED), SetPlayerAttachedObject(id, 0, 19418, 6, -0.011000, 0.028000, -0.022000, -15.600012, -33.699977, -81.700035, 0.891999, 1.000000, 1.168000);
  10. return 1;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment