-
Notifications
You must be signed in to change notification settings - Fork 377
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
57 additions
and
0 deletions.
There are no files selected for viewing
57 changes: 57 additions & 0 deletions
57
docs/translations/id/scripting/functions/ClearBanList.md/ClearBanList.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
--- | ||
title: ClearBanList | ||
description: Membersihkan list ban | ||
tags: ["administration"] | ||
--- | ||
:::warning | ||
|
||
Fungsi ini ditambahkan dalam omp v1.1.0.2612 dan tidak akan berfungsi pada versi sebelumnya! | ||
|
||
::: | ||
|
||
## Deskripsi | ||
|
||
Membersihkan list ban | ||
|
||
## Retunrns | ||
|
||
**true** - Berhasil | ||
**false** - Fungsi gagal dijalankan | ||
|
||
## Contoh | ||
|
||
```c | ||
public OnPlayerCommandText(playerid, cmdtext[]) | ||
{ | ||
if (!strcmp(cmdtext, "/clearbanlist", true)) | ||
{ | ||
if (!IsPlayerAdmin(playerid)) | ||
{ | ||
return 1; | ||
} | ||
|
||
ClearBanList(); | ||
SendClientMessage(playerid, -1, "[SERVER]: Semua list ban telah dibersihkan."); | ||
return 1; | ||
} | ||
return 0; | ||
} | ||
``` | ||
## Catatan | ||
:::tip | ||
Kamu juga dapat melihat list ban di file bans.json | ||
::: | ||
## Fungsi terkait | ||
[BlockIpAddress](BlockIpAddress): Memblokir alamat ip player agar tidak bisa tersambung kedalam server dalam jangka waktu yang ditentukan | ||
[UnBlockIpAddress](UnBlockIpAddress): Membuka blokir alamat ip player | ||
[Ban](Ban): Melarang player untuk bermain di server | ||
[BanEx](BanEx): Melarang player untuk bermain di server dengan alasan khusus | ||
[Kick](Kick): Menendang player dari server | ||
[IsBanned](IsBanned): Memeriksa apakah ip dari player itu diberikan larangan |