Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- else if (!strcmp(nom, "defoncer", true))
- {
- static id = -1;
- if (PlayerData[playerid][pFactionRank] < 3) return SendClientMessageEx(playerid, COLOR_ERROR, "Vous n'avez pas la permission d'utiliser cette commande (R3).");
- if(PlayerData[playerid][pKickDoor]) return SendClientMessageEx(playerid, COLOR_ERROR, "Vous êtes déjà entrain de défoncer une porte.");
- if ((id = House_Nearest(playerid)) != -1)
- {
- if (!HouseData[id][houseLocked])
- return SendClientMessageEx(playerid, COLOR_ERROR, "Cette maison est déjà dévérouillée");
- //ShowPlayerFooter(playerid, "Tentative ~r~en cours..~w~");
- ApplyAnimation(playerid, "POLICE", "Door_Kick", 4.0, 0, 0, 0, 0, 0);
- PlayerData[playerid][pKickDoor] = true;
- SendNearbyMessage(playerid, 15.0, COLOR_PURPLE, "%s donne plusieurs coups dans la porte, afin de l'ouvrir.", ReturnName(playerid, 1));
- SetTimerEx("KickHouse", 3000, false, "dd", playerid, id);
- }
- else if ((id = Business_Nearest(playerid)) != -1)
- {
- if (!BusinessData[id][bizLocked])
- return SendClientMessageEx(playerid, COLOR_ERROR, "Ce business est déjà déverouillé.");
- //ShowPlayerFooter(playerid, "Tentative ~r~en cours..");
- ApplyAnimation(playerid, "POLICE", "Door_Kick", 4.0, 0, 0, 0, 0, 0);
- PlayerData[playerid][pKickDoor] = true;
- SendNearbyMessage(playerid, 15.0, COLOR_PURPLE, "%s donne plusieurs coups dans la porte, afin de l'ouvrir.", ReturnName(playerid, 1));
- SetTimerEx("KickBusiness", 3000, false, "dd", playerid, id);
- }
- else SendClientMessageEx(playerid, COLOR_ERROR, "Vous n'êtes pas près d'une porte.");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement