ImportBot Posted November 17, 2013 Share Posted November 17, 2013 Originally Posted by exadmin*: Is there any plugin can do this in BF4? Whenever a reserveslot user is joining it'll announce in the chat. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted November 17, 2013 Author Share Posted November 17, 2013 Originally Posted by PapaCharlie9*: Changed title from HOWTO (which is reserved for how-to articles, like HOWTO: Install MySql) to Request. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted November 17, 2013 Author Share Posted November 17, 2013 Originally Posted by LumPenPacK*: It should be possible with Insane Limits: Try this one. (not tested yet) On join First check code Code: List<String> ReservervedSlots = plugin.GetReservedSlotsList(); if (ReservervedSlots.Contains(player.Name)) return true; else return false; Second check codeCode: plugin.SendGlobalMessage(plugin.R("VIP %k_fn% is joining the server.")); plugin.PRoConChat(plugin.R("[VIP Announcer] > VIP %k_fn% is joining the server.")); return false;But this only announces when a VIP is joining, the player will not see this message himself. Do you want also a welcome message? * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted November 18, 2013 Author Share Posted November 18, 2013 Originally Posted by exadmin*: It should be possible with Insane Limits: Try this one. (not tested yet) On join First check expression Code: List<String> ReservervedSlots = plugin.GetReservedSlotsList(); plugin.isInList(player.name, "ReservervedSlots"); Second check codeCode: plugin.SendGlobalMessage(plugin.R("VIP %k_fn% is joining the server.")); plugin.PRoConChat(plugin.R("[VIP Announcer] > VIP %k_fn% is joining the server.")); return false;But this only announces when a VIP is joining, the player will not see this message himself. Do you want also a welcome message?Hey man, I'll try this one and will let you know if it's working. Thanks * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted November 18, 2013 Author Share Posted November 18, 2013 Originally Posted by exadmin*: It should be possible with Insane Limits: Try this one. (not tested yet) On join First check expression Code: List<String> ReservervedSlots = plugin.GetReservedSlotsList(); plugin.isInList(player.name, "ReservervedSlots"); Second check codeCode: plugin.SendGlobalMessage(plugin.R("VIP %k_fn% is joining the server.")); plugin.PRoConChat(plugin.R("[VIP Announcer] > VIP %k_fn% is joining the server.")); return false;But this only announces when a VIP is joining, the player will not see this message himself. Do you want also a welcome message?It's throwing out 4 errors Code: [10:04:57 89] [Insane Limits] Compiling Limit #1 - Reserve Slut - OnJoin [10:04:58 19] [Insane Limits] ERROR: 4 errors compiling Expression [10:04:58 21] [Insane Limits] ERROR: (CS1026, line: 27, column: 81): ) expected [10:04:58 21] [Insane Limits] ERROR: (CS1525, line: 27, column: 82): Invalid expression term ')' [10:04:58 22] [Insane Limits] ERROR: (CS1002, line: 27, column: 91): ; expected [10:04:58 22] [Insane Limits] ERROR: (CS1525, line: 27, column: 91): Invalid expression term ')' * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted November 18, 2013 Author Share Posted November 18, 2013 Originally Posted by k4n30*: I LOL'd at Reserve Slut * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted November 18, 2013 Author Share Posted November 18, 2013 Originally Posted by exadmin*: I LOL'd at Reserve Slut ekkkkk, forgot to edit it out LOL * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted November 18, 2013 Author Share Posted November 18, 2013 Originally Posted by LumPenPacK*: I've just tested this, it should work: First check code Code: List<String> ReservervedSlots = plugin.GetReservedSlotsList(); if (ReservervedSlots.Contains(player.Name)) return true; else return false; Second checkcode Code: plugin.SendGlobalMessage(plugin.R("VIP %k_fn% is joining the server.")); plugin.PRoConChat(plugin.R("[VIP Announcer] > VIP %k_fn% is joining the server.")); return false; * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted November 19, 2013 Author Share Posted November 19, 2013 Originally Posted by exadmin*: I've just tested this, it should work: First check code Code: List<String> ReservervedSlots = plugin.GetReservedSlotsList(); if (ReservervedSlots.Contains(player.Name)) return true; else return false; Second checkcode Code: plugin.SendGlobalMessage(plugin.R("VIP %k_fn% is joining the server.")); plugin.PRoConChat(plugin.R("[VIP Announcer] > VIP %k_fn% is joining the server.")); return false; It's working now. Thanks for the assistance * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted November 23, 2013 Author Share Posted November 23, 2013 Originally Posted by t0p8uzz*: I've just tested this, it should work: First check code Code: List<String> ReservervedSlots = plugin.GetReservedSlotsList(); if (ReservervedSlots.Contains(player.Name)) return true; else return false; Second checkcode Code: plugin.SendGlobalMessage(plugin.R("VIP %k_fn% is joining the server.")); plugin.PRoConChat(plugin.R("[VIP Announcer] > VIP %k_fn% is joining the server.")); return false; Tested and works fine, but wondering if this code can also query the ProCon admin list and use that rather than Reserved Slots so that i can say "admin xxxx" has joined the server as we have admins and reserved slot users * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted November 23, 2013 Author Share Posted November 23, 2013 Originally Posted by LumPenPacK*: Set "use_custom_mist" true Set "new_list" true Scroll down and add all your admins to the new list e.g admin1, admin2, admin3 Rename the list to "AdminList" Modify the second check code Code: if (plugin.isInList(player.Name, "AdminList")) { plugin.SendGlobalMessage(plugin.R("Admin %k_fn% is joining the server.")); plugin.PRoConChat(plugin.R("[Admin Announcer] > Admin %k_fn% is joining the server.")); } else { plugin.SendGlobalMessage(plugin.R("VIP %k_fn% is joining the server.")); plugin.PRoConChat(plugin.R("[VIP Announcer] > VIP %k_fn% is joining the server.")); } return false;NOTE: This code requires that all your admins are on reserved slot list. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted November 23, 2013 Author Share Posted November 23, 2013 Originally Posted by PapaCharlie9*: Set "use_custom_mist" true Set "new_list" true Scroll down and add all your admins to the new list e.g admin1, admin2, admin3 Rename the list to "AdminList" Modify the second check code Code: if (plugin.isInList(player.Name, "AdminList")) { plugin.SendGlobalMessage(plugin.R("Admin %k_fn% is joining the server.")); plugin.PRoConChat(plugin.R("[Admin Announcer] > Admin %k_fn% is joining the server.")); } else { plugin.SendGlobalMessage(plugin.R("VIP %k_fn% is joining the server.")); plugin.PRoConChat(plugin.R("[VIP Announcer] > VIP %k_fn% is joining the server.")); } return false;NOTE: This code requires that all your admins are on reserved slot list.It would be better to use this plugin function: Code: /* This method checks if the currently in-game player with matching name has a Procon account on the Procon instance controlling this game server. Returns False if the name does not match any of the players currently joined to the game server. The canBan value is set to true if the player can temporary ban or permanently ban. */ bool CheckAccount(String name, out bool canKill, out bool canKick, out bool canBan, out bool canMove, out bool canChangeLevel); * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted November 23, 2013 Author Share Posted November 23, 2013 Originally Posted by t0p8uzz*: Set "use_custom_mist" true Set "new_list" true Scroll down and add all your admins to the new list e.g admin1, admin2, admin3 Rename the list to "AdminList" Modify the second check code Code: if (plugin.isInList(player.Name, "AdminList")) { plugin.SendGlobalMessage(plugin.R("Admin %k_fn% is joining the server.")); plugin.PRoConChat(plugin.R("[Admin Announcer] > Admin %k_fn% is joining the server.")); } else { plugin.SendGlobalMessage(plugin.R("VIP %k_fn% is joining the server.")); plugin.PRoConChat(plugin.R("[VIP Announcer] > VIP %k_fn% is joining the server.")); } return false;NOTE: This code requires that all your admins are on reserved slot list.Works perfect, thank you very much indeed - just need to remember to edit that list with admins, or as Papa said above, use the ProCon list but happy as it is now. Thanks a bunch dude! * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted November 24, 2013 Author Share Posted November 24, 2013 Originally Posted by LumPenPacK*: It would be better to use this plugin function: Code: /* This method checks if the currently in-game player with matching name has a Procon account on the Procon instance controlling this game server. Returns False if the name does not match any of the players currently joined to the game server. The canBan value is set to true if the player can temporary ban or permanently ban. */ bool CheckAccount(String name, out bool canKill, out bool canKick, out bool canBan, out bool canMove, out bool canChangeLevel); That's much smarter but I'm not 100% sure how to use this CheckAccount function.The other thing is that in case he uses plugins like AdKats to manage the admin accounts, not every admin has a Procon account My question how to use CheckAccount: Example: Case 1: A Procon account has only "canKill"-privileges. Case 2: A Procon account has all privleges. Code: bool canKill = true; bool allOtherRights = false; CheckAccount("ProconAccountName", out canKill, out allOtherRights, out allOtherRights, out allOtherRights, out allOtherRights);What is CheckAccount returning in Case 1, what in Case 2, true or false? * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted November 24, 2013 Author Share Posted November 24, 2013 Originally Posted by PapaCharlie9*: The out parameters are all output parameters, which means they are return values. You use it like this: Code: bool canKill = false; bool canKick = false; bool canBan = false; bool canMove = false; bool canChangeLevel = false; if (plugin.CheckAccount(player.Name, out bool canKill, out bool canKick, out bool canBan, out bool canMove, out bool canChangeLevel)) { // if (canKill == true) ... the player can admin.kill // if (canKick == true) ... the player can admin.kickPlayer // if (canBan == true) ... the player can ban players // if (canMove == true) ... the player can move players // if (canChangeLevel == true) ... the player can change the map // Or you can just ignore the can... flags and just add the player name to a list inside of here }You are right that admins in AdKats or other external tracking would not show up here. Only Procon accounts. To answer your questions, Case 1: canKill is true, everything else is false, inside the if clause Case 2: all can... values are true inside the if clause * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted January 20, 2014 Author Share Posted January 20, 2014 Originally Posted by jking54*: Set "use_custom_mist" true Set "new_list" true Scroll down and add all your admins to the new list e.g admin1, admin2, admin3 Rename the list to "AdminList" Modify the second check code Code: if (plugin.isInList(player.Name, "AdminList")) { plugin.SendGlobalMessage(plugin.R("Admin %k_fn% is joining the server.")); plugin.PRoConChat(plugin.R("[Admin Announcer] > Admin %k_fn% is joining the server.")); } else { plugin.SendGlobalMessage(plugin.R("VIP %k_fn% is joining the server.")); plugin.PRoConChat(plugin.R("[VIP Announcer] > VIP %k_fn% is joining the server.")); } return false;NOTE: This code requires that all your admins are on reserved slot list.Could one augment this with say a 3rd list for Server Owner? I created a 2nd list called "ServerOwnerList" with only myself on it but it announces me as a VIP and Server Owner, so could sue a bit of help here, thanks. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted January 20, 2014 Author Share Posted January 20, 2014 Originally Posted by LumPenPacK*: Try this one: Code: if (plugin.isInList(player.Name, "ServerOwnerList")) { plugin.SendGlobalMessage(plugin.R("Server Owner %k_fn% is joining the server.")); plugin.PRoConChat(plugin.R("[Server Owner Announcer] > Server Owner %k_fn% is joining the server.")); } else if (plugin.isInList(player.Name, "AdminList")) { plugin.SendGlobalMessage(plugin.R("Admin %k_fn% is joining the server.")); plugin.PRoConChat(plugin.R("[Admin Announcer] > Admin %k_fn% is joining the server.")); } else { plugin.SendGlobalMessage(plugin.R("VIP %k_fn% is joining the server.")); plugin.PRoConChat(plugin.R("[VIP Announcer] > VIP %k_fn% is joining the server.")); } return false; * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted January 20, 2014 Author Share Posted January 20, 2014 Originally Posted by jking54*: Try this one: Code: if (plugin.isInList(player.Name, "ServerOwnerList")) { plugin.SendGlobalMessage(plugin.R("Server Owner %k_fn% is joining the server.")); plugin.PRoConChat(plugin.R("[Server Owner Announcer] > Server Owner %k_fn% is joining the server.")); } else if (plugin.isInList(player.Name, "AdminList")) { plugin.SendGlobalMessage(plugin.R("Admin %k_fn% is joining the server.")); plugin.PRoConChat(plugin.R("[Admin Announcer] > Admin %k_fn% is joining the server.")); } else { plugin.SendGlobalMessage(plugin.R("VIP %k_fn% is joining the server.")); plugin.PRoConChat(plugin.R("[VIP Announcer] > VIP %k_fn% is joining the server.")); } return false; Nice, I actually got it to work before I checked your reply with this code, about the same except not in same order: Code: if (plugin.isInList(player.Name, "AdminList")) { plugin.SendGlobalMessage(plugin.R("Admin %k_fn% is joining the server.")); plugin.PRoConChat(plugin.R("[Admin Announcer] > Admin %k_fn% is joining the server.")); } else if (plugin.isInList(player.Name, "ServerOwnerList")) { plugin.SendGlobalMessage(plugin.R("Server Owner %k_fn% is joining the server.")); plugin.PRoConChat(plugin.R("[Server Owner Announcer] > ServerOwner %k_fn% is joining the server.")); } else { plugin.SendGlobalMessage(plugin.R("VIP %k_fn% is joining the server.")); plugin.PRoConChat(plugin.R("[VIP Announcer] > VIP %k_fn% is joining the server.")); } return false;This is a nice code as one can see the possibilities for say "GuyWhoNeverDonatesToServer" list lol * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted February 15, 2015 Author Share Posted February 15, 2015 Originally Posted by keb2*: How to add a greeting message VIP player? * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted March 1, 2015 Author Share Posted March 1, 2015 Originally Posted by Mamba334*: disregard this post please. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted October 18, 2015 Author Share Posted October 18, 2015 Originally Posted by mambochambo*: Hello Guys- i set up the Announcement like described, i want to add the Players ranking from xpkillers chat, stats logger plugin, that it show, Player "name" is joining with the "Rank" rank "allrank" Is that possible because its too different plugins. I looked in the Cs. file, there is a line for external plugin support_!.... * Restored post. It could be that the author is no longer active. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.