https://wiki.bzflag.org/index.php?title=Bz_HostBanUser&feed=atom&action=historyBz HostBanUser - Revision history2024-03-28T09:14:50ZRevision history for this page on the wikiMediaWiki 1.26.3https://wiki.bzflag.org/index.php?title=Bz_HostBanUser&diff=8061&oldid=prevSigonasr2: Create API Function Page. Include Example.2011-10-19T08:30:05Z<p>Create API Function Page. Include Example.</p>
<p><b>New page</b></p><div>{{apicall<br />
| name = bz_HostBanUser<br />
| returns = Whether or not the ban was executed successfully.<br />
| returntype = bool<br />
| description = Sets up a new Host ban Rule in the ban list.<br />
| param1 = bannedByIndex<br />
| param1type = int<br />
| param1desc = The player ID that is banning the IP Address. '''NOTE:''' This has to be a player that is currently on the server, so at least one player must be present for a ban to be created.<br />
| param2 = hostmask<br />
| param2type = const char*<br />
| param2desc = The Hosting address of the player to be banned. Host bans use wildcard (*) character also, such as *.myhost.biz<br />
| param3 = duration<br />
| param3type = int<br />
| param3desc = The amount of time in minutes to ban the host.<br />
| param4 = reason<br />
| param4type = const char*<br />
| param4desc = The reason that is displayed to the banned user upon failure to join.<br />
}}<br />
<br />
===Example===<br />
bz_HostBanUser(0,"*.myhost.biz",3600,"This host abused the server.")</div>Sigonasr2