//cuff if(strcmp(cmd, "/cuff", true) == 0) { new tmp[256]; new giveplayerid; tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_LGREEN, "Usage: /cuff [Player ID]"); return 1; } giveplayerid = strval(tmp); if(jailed[giveplayerid]==0) { if (gTeam[playerid] == TEAM_COP) { if (IsPlayerConnected(giveplayerid)) { GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "You have been Handcuffed by officer %s!", sendername, playerid); SendClientMessage(giveplayerid, COLOR_RED, string); format(string, sizeof(string), "%s has been Handcuffed by officer %s!", giveplayer, giveplayerid, sendername, playerid); SendClientMessageToAll(COLOR_LIGHTBLUE, string); printf(string); TogglePlayerControllable(giveplayerid,0); return 1; }else{ format(string, sizeof(string), "id %d is not an active player.", giveplayerid); SendClientMessage(playerid, COLOR_YELLOW, string); } }else{ format(string, sizeof(string), "You Are Not official Police!!", giveplayerid); SendClientMessage(playerid, COLOR_YELLOW, string); } }else{ format(string, sizeof(string), "This person is already cuffed!", giveplayerid); SendClientMessage(playerid, COLOR_YELLOW, string); } return 1; } if(strcmp(cmd, "/uncuff", true) == 0) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_LGREEN, "Usage: /uncuff [Player ID]"); return 1; } giveplayerid = strval(tmp); if(jailed[giveplayerid]==0) { if (gTeam[playerid] == TEAM_COP) { if (IsPlayerConnected(giveplayerid)) { GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "You have been uncuffed by officer %s (ID:%d)!", sendername, playerid); SendClientMessage(giveplayerid, COLOR_LGREEN, string); format(string, sizeof(string), "%s (ID:%d) has been uncuffed by officer %s (ID:%d)", giveplayer, giveplayerid, sendername, playerid); SendClientMessageToAll(COLOR_LGREEN, string); printf(string); SetCameraBehindPlayer(giveplayerid); TogglePlayerControllable(giveplayerid,1); return 1; }else{ format(string, sizeof(string), "id %d is not an active player.", giveplayerid); SendClientMessage(playerid, COLOR_YELLOW, string); } }else{ format(string, sizeof(string), "You Are Not Official Police!!!", giveplayerid); SendClientMessage(playerid, COLOR_RED, string); } }else{ format(string, sizeof(string), "This person is Not cuffed!!", giveplayerid); SendClientMessage(playerid, COLOR_YELLOW, string); } return 1; }