Results 1 to 1 of 1
  1. #1

    ProconRulz: Watchlist with admin informer

    I always missed this feature on Adkats Plugin so i wrote a short rule for ProconRulz to implement that

    Code:
    #######################################
    #
    # Watchlist and admin informer
    # by [RSB]xDarkZerO_ATx
    #
    #######################################
    
    ### debug
    On Say;Admin;Text /iswl;Targetplayer;If %ini_watchlist_%t%% == 1;PlayerSay %t% is on the Watchlist
    
    ### add player to watchlist
    On Say;Admin;Text /wla;Targetplayer;Set %ini_watchlist_%t%% 1;AdminSay %t% is now on the Watchlist
    
    ### remove player from watchlist
    On Say;Admin;Text /wlr;Targetplayer;Set %ini_watchlist_%t%% 0;Set %server_watchlist_%p%% 0;AdminSay %t% is removed from the Watchlist
    
    ### on spawn check if player is on watchlist
    On Join;If %ini_watchlist_%p%% == 1;Set %server_watchlist_%p%% 1
    On Spawn;PlayerOnce;If %ini_watchlist_%p%% == 1;Set %server_watchlist_%p%% 1
    On Spawn;PlayerCount 1;If %server_watchlist_%p%% == 1;Say /report %p% WATCHLIST PLAYER JOINED!;Say /mark %p%;AdminSay WATCHLIST PLAYER %p% JOINED!;Set %server_watchlist_%p%% 0
    tried and should be working
    but needs Adkats for now, will be working on more settings for this

    /wla "unique part of name" = add a player to the watchlist
    /wlr "unique part of name" = remove player from watchlist
    /iswl "unique part of name" = check if player is on watchlist

    this will trigger an adminsay, mark for leave notification and a report on the player if he joins/spawns (made it on spawn cause joining sometimes fails or players join multiple times)

    if you find any bugs post them here please, will be watching this and also adding more stuff and code enhancements
    for now it works but i have to test it some more
    Last edited by DarkZerO_AT; 24-03-2016 at 13:27. Reason: fixed a bug


 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •