Advertisement
Guest User

Untitled

a guest
Feb 21st, 2018
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.60 KB | None | 0 0
  1. else if (!strcmp(nom, "defoncer", true))
  2. {
  3. static id = -1;
  4. if (PlayerData[playerid][pFactionRank] < 3) return SendClientMessageEx(playerid, COLOR_ERROR, "Vous n'avez pas la permission d'utiliser cette commande (R3).");
  5. if(PlayerData[playerid][pKickDoor]) return SendClientMessageEx(playerid, COLOR_ERROR, "Vous êtes déjà entrain de défoncer une porte.");
  6.  
  7. if ((id = House_Nearest(playerid)) != -1)
  8. {
  9. if (!HouseData[id][houseLocked])
  10. return SendClientMessageEx(playerid, COLOR_ERROR, "Cette maison est déjà dévérouillée");
  11.  
  12. //ShowPlayerFooter(playerid, "Tentative ~r~en cours..~w~");
  13. ApplyAnimation(playerid, "POLICE", "Door_Kick", 4.0, 0, 0, 0, 0, 0);
  14.  
  15. PlayerData[playerid][pKickDoor] = true;
  16.  
  17. SendNearbyMessage(playerid, 15.0, COLOR_PURPLE, "%s donne plusieurs coups dans la porte, afin de l'ouvrir.", ReturnName(playerid, 1));
  18. SetTimerEx("KickHouse", 3000, false, "dd", playerid, id);
  19. }
  20. else if ((id = Business_Nearest(playerid)) != -1)
  21. {
  22. if (!BusinessData[id][bizLocked])
  23. return SendClientMessageEx(playerid, COLOR_ERROR, "Ce business est déjà déverouillé.");
  24.  
  25. //ShowPlayerFooter(playerid, "Tentative ~r~en cours..");
  26. ApplyAnimation(playerid, "POLICE", "Door_Kick", 4.0, 0, 0, 0, 0, 0);
  27.  
  28. PlayerData[playerid][pKickDoor] = true;
  29.  
  30. SendNearbyMessage(playerid, 15.0, COLOR_PURPLE, "%s donne plusieurs coups dans la porte, afin de l'ouvrir.", ReturnName(playerid, 1));
  31. SetTimerEx("KickBusiness", 3000, false, "dd", playerid, id);
  32. }
  33. else SendClientMessageEx(playerid, COLOR_ERROR, "Vous n'êtes pas près d'une porte.");
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement