forward AntiCuffAbuse();...public AntiCuffAbuse()
{
for (new i = 0; i < MAX_PLAYERS; i++)
{
if(cuffed[i] == 1 && IsPlayerConnected(i))
{
cuffed[i] =0;
TogglePlayerControllable(i, 1);
StopLoopingAnim(i);
new pname[30];
new string[100];
GetPlayerName(i, pname, 24);
format(string, sizeof(string), "Les menottes de %s(%d) ont été retirées par notre système Anti-Abuse.",pname,i);
SendClientMessageToAll(COLOR_DODGERBLUE, string);
}
}
}... if(GetPlayerState(giveplayerid) == PLAYER_STATE_ONFOOT) {
SendClientMessage(giveplayerid, 0xA9A9A9AA, "|_Menotté_|");
format(string, sizeof(string), "%s(%d) vous a mis des menottes aux poignets. Utilisez /breakcuffs pour tenter une évasion",oname, playerid);
SendClientMessage(giveplayerid, COLOR_DODGERBLUE, string);
TogglePlayerControllable(giveplayerid, 0);
cuffed[giveplayerid] =1;
LoopingAnim(giveplayerid, "ped", "cower", 3.0, 1, 0, 0, 0, 0); // Taking Cover
SetTimer("AntiCuffAbuse", 30000,0);
SendClientMessage(playerid, 0xA9A9A9AA, "|_Suspect Menotté_|");
format(string, sizeof(string), "Vous avez mis des menottes à %s(%d). Utilisez /search (id) pour rechercher des objets illégaux", pname, giveplayerid);
SendClientMessage(playerid, COLOR_DODGERBLUE, string);
format(string, sizeof(string), "NE PARTEZ PAS EN LAISSANT UN SUSPECT MENOTTÉ. VOUS SEREZ KICKÉ SI VOUS LE FAITES.", pname, giveplayerid);
SendClientMessage(playerid, COLOR_DODGERBLUE, string);
}