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)
- {
- TogglePlayerControllable(id, false);
- ApplyAnimation(id, "ped", "cower", 1, 1, 0, 0, 0, 0);
- 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);
- TogglePlayerControllable(id, false);
Advertisement
Add Comment
Please, Sign In to add comment