Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command(cuff, playerid, params[])
- {
- new id, string[128];
- if(sscanf(params, "u", id))
- {
- SendClientMessage(playerid, WHITE, "SYNTAX: /cuff [playerid]");
- }
- else
- {
- if(Groups[Player[playerid][Group]][CommandTypes] == 1 || Groups[Player[playerid][Group]][CommandTypes] == 4)
- {
- if(Player[id][Tazed] == 1)
- {
- if(GetDistanceBetweenPlayers(playerid, id) < 7)
- {
- Player[id][Cuffed] = 1;
- Player[id][Tazed] = 0;
- format(string, sizeof(string), "* %s has cuffed %s.", GetName(playerid), GetName(id));
- NearByMessage(playerid, NICESKY, string);
- format(string, sizeof(string), "You have cuffed %s.", GetName(id));
- SendClientMessage(playerid, WHITE, string);
- format(string, sizeof(string), "You have been cuffed by %s.", GetName(playerid));
- SendClientMessage(id, WHITE, string);
- RemovePlayerAttachedObject(id, 9);
- SetPlayerAttachedObject(id, 9, 19418, 6, -0.011000, 0.028000, -0.022000, -15.600012, -33.699977, -81.700035, 0.891999, 1.000000, 1.168000);
- SetPlayerSpecialAction(id, SPECIAL_ACTION_CUFFED);
- }}}}return 1;}
Advertisement
Add Comment
Please, Sign In to add comment