core.plugins.clans.sv_init
- Servercityrp.clans.announce(clan, text)Source ☍
-
Parameters
- clanany
- textany
- Servercityrp.clans.applyIdentity(ply, clan, rank) → booleanSource ☍
-
Applies a clan membership to a player, or clears their clan fields when it cannot be resolved. The clan goes missing two ways:
loadallclansis still filling, or the row outlived its clan.Parameters
- plyPlayerThe player to apply the membership to.
- clannumberClan id from the membership row.
- ranknumberRank id from the membership row.
Returns
- booleanWhether the clan and its rank both resolved.
- Servercityrp.clans.clearClan(clan)Source ☍
-
Removes a clan from memory and strips it off every online member. Deleting the database rows alone leaves the clan live in
cityrp.clans.clansand still set on everyone in it, so/clan infokeeps answering for a clan that no longer exists.Parameters
- clannumberClan id being removed.
- Servercityrp.clans.commands.create(player, clanname)Source ☍
-
Parameters
- playerany
- clannameany
- Servercityrp.clans.commands.leave(player)Source ☍
-
Parameters
- playerany
- Servercityrp.clans.commands.setleader(player, arguments)Source ☍
-
Parameters
- playerany
- argumentsany
- Servercityrp.clans.commands.setrank(player, arguments)Source ☍
-
Parameters
- playerany
- argumentsany
- Servercityrp.clans.kick(player, tsteamid, tname)Source ☍
-
Parameters
- playerany
- tsteamidany
- tnameany
- Servercityrp.clans.loadclan(clan)Source ☍
-
Parameters
- clanany
- Servercityrp.clans.loadplayers(clan)Source ☍
-
Parameters
- clanany
- Servercityrp.clans.radio(ply, args)Source ☍
-
Sends a clan radio message to every other online member of the sender's clan. The parameter is
ply, notplayer, which would shadow the libraryplayer.Iterator()needs.Parameters
- plyPlayerThe player sending the message.
- argsstring[]Command arguments, joined to form the message body.
- Servercityrp.clans.setrank(player, tsteamid, tname, rank, leader)Source ☍
-
Parameters
- playerany
- tsteamidany
- tnameany
- rankany
- leaderany
- Servercityrp.clansSource ☍
- Servercityrp.clans.clansSource ☍
- Servercityrp.clans.commandsSource ☍
- Servercityrp.clans.defaultranksSource ☍
- Servercityrp.clans.defaultranks.1Source ☍
- Servercityrp.clans.defaultranks.2Source ☍
- Servercityrp.clans.defaultranks.3Source ☍
- Servercityrp.clans.defaultranks.4Source ☍
- Servercityrp.clans.defaultranks.5Source ☍
- Servercityrp.clans.deleteSource ☍
- Servercityrp.clans.playersSource ☍
- Servercityrp.clans.undoSource ☍
- ServermodelsSource ☍