An SQL ban that does not overload the database. It precharges the database in a table when opening the server or adding / removing a ban.
- Download the .Zip from this repository.
- Extract it with your favorite program.
- Copy the project to your ressource folder. 4.Don't forget to import the .sql file to your database.
- Add "start FiveM-BanSql" in your
server.cfg
- ban id days reason ( Allows ban a connected player )
- "id" is the player's number in the list
- "days" must be a number to say how many days it will be ban. (0 days mean permanent)
- "reason" Ability to register why he is banished. Attention if there is no reason the player will see: "You are banned for: unknown reason"
- example /ban 3 1 Troll (Will give ban player # 3 for 1 days with Troll reason)
- banoffline days name ( Allows ban a offline player )
- "days" must be a number to say how many days it will be ban. (0 days mean permanent)
- "name" is the player's steam name
- example /banoffline 3 Alex Garcio (Will ask you to entry ban:reason to continu) 2.1 ***reason (reason)
- "reason" Ability to register why he is banished.
- example /reason reason (Will ban player you have entry before for X days and the reason)
- unban "Steam Name"
- Deban the player matching the written name.
- Example ban:unban Alex Garcio (Will remove from the ban list the player)
- **banreload ** (reload the BanList and the BanListHistory)
- Can be used if you edit directly in your database.
- banhistory option (Allows you to view the ban history of a player offline or online)
- "option"
- (Name of a player) To display all the banns of a player
- 1 To display only the first ban
- 2 To display only the second ban
- 3 ect ......
- 4 ect ......
- Example /banhistory Alex Garcio (Go to display all the list of player's bans)
- Async
- Esx (Optional)
- Alex Garcio https://github.com/RedAlex
- Alain Proviste https://github.com/EagleOnee
Un ban SQL qui ne surcharge pas la base de donnée. Il précharge la base de données dans une table lors de l'ouverture du serveur ou à l'ajout/retrait d'un ban.
- Téléchargez le .Zip
- Extractez-le avec votre programme favori.
- Copiez le projet dans votre dossier ressource.
- N'oubliez pas d'importer le .sql a votre base de données.
- Ajoutez "start FiveM-BanSql" dans votre
server.cfg
- ban id jours raison ( Permet de ban un joueur connecté )
- "id" correspond au chiffre du joueur dans la liste
- "jours" doit être un chiffre pour dire combien de jours il va etre ban. (0 jours veux dire permanent)
- "raison" Possibilité d'inscrire pourquoi il est bani. Attention si il n'y a pas de raison le joueur va voir : "Vous etes banni pour : Raison Inconnue"
- exemple /ban 3 1 Troll (Va donner bannir le joueur #3 pour 1 jours avec la raison Troll)
- **banoffline jours nom ( Vous permet de ban un jours hors ligne )
- "jours" doit être un chiffre pour dire combien de jours il va etre ban. (0 jours veux dire permanent)
- "nom" correspond au nom steam du joueur
- example:addoff 3 Alex Garcio (Va vous demander de faire ban:reason pour continuer) 2.1 ***reason (reason)
- "reason" Possibilité d'inscrire pourquoi il est bani.
- example /reason reason (Va donner bannir le joueur que vous avez entré plus tot pour la raison entrer ici)
- ban:unban "Nom Steam"
- Déban le joueur correcpondant au nom écrit.
- Exemple unban Alex Garcio (Va enlever de la liste de ban le joueur)
- banreload ( Recharge la BanList et la BanListHistory )
- Peut etre utilisé si vous modifiez directement dans votre base de données.
- **banhistory option ** ( Permet d'afficher l'historique de ban d'un joueur hors ligne ou en ligne )
- "option"
-
(Nom Steam) Pour afficher tout les bans d'un joueur
-
1 Pour afficher seulement le premier ban
-
2 Pour afficher seulement le deuxième ban
-
3 ect......
-
4 ect......
- Exemple /banhistory Alex Garcio (Va afficher toute la liste des bans du joueur)
- Async
- Esx (Optionel)
- Alex Garcio https://github.com/RedAlex
- Alain Proviste https://github.com/EagleOnee