Results 1 to 3 of 3
  1. #1

    Proconrulez need your help with code

    Hey!I have one question to you.I have bf3 server and i will players can write in chat,and report messages so all can see/ admin.Who take kills in RU/US base.Will this player name shall shows in chat.And who reported this.When admin not in server,show messages !votekick.I hope this works/Blaze

  2. #2
    Senior Member
    Join Date
    Oct 2015
    Location
    Germany
    Posts
    285
    hi,
    here is your code
    it works fine for bf4. i hope for bf3 also

    chat command: !redzone <playername>

    Code:
    ####       REPORT !redzone         #################
    # Check if admin are online
    On Spawn; PlayerFirst; Admin; if %tmpadminreg% <> 1;
        if %tmpadminreg% <> 1; if %server_global_a01[%online_admin_1%]% == 0; Set %server_global_a01[%online_admin_1%]% %p%; Set %tmpadminreg% 1
        if %tmpadminreg% <> 1; if %server_global_a02[%online_admin_2%]% == 0; Set %server_global_a02[%online_admin_2%]% %p%; Set %tmpadminreg% 1
        if %tmpadminreg% <> 1; if %server_global_a03[%online_admin_3%]% == 0; Set %server_global_a03[%online_admin_3%]% %p%; Set %tmpadminreg% 1
    On Leave; Admin; if %tmpadminreg% == 1;
        if %server_global_a01[%online_admin_1%]% == %p%; Set %server_global_a01[%online_admin_1%]% 0; Set %tmpadminreg% 0
        if %server_global_a02[%online_admin_2%]% == %p%; Set %server_global_a02[%online_admin_2%]% 0; Set %tmpadminreg% 0
        if %server_global_a03[%online_admin_3%]% == %p%; Set %server_global_a03[%online_admin_3%]% 0; Set %tmpadminreg% 0	
    
    # Report function - chat command: !redzone <playername>
    On Say;Text !redzone,!basekill;
        Set %server_redzonekiller% none; TargetPlayer; Set %server_redzonekiller% %t%; Set %tmp_admin% YES
        If %server_redzonekiller% != none; PlayerSay REPORT %server_redzonekiller% for kill in enemy base (redzone). Thanks %p% for your report!; 
        if %server_global_a01[%online_admin_1%]% == 0; if %server_global_a02[%online_admin_2%]% == 0; if %server_global_a03[%online_admin_3%]% == 0; Set %tmp_admin% NO
        If %server_redzonekiller% != none; if %tmp_admin% <> YES; Say You can use !votekick to kick %server_redzonekiller%; Log ^b^8REPORT %p%^0^n for kill in enemy base (redzone)  -  Reported by %p%  -  Admin online: ^b^8NO^0^n; Say /^b^8REPORT %p% for kill in enemy base (redzone)^0^n  -  Reported by %p%  -  Admin online: ^b^8NO^0^n; 
        If %server_redzonekiller% != none; if %tmp_admin% == YES; Log ^b^8REPORT %p%^0^n for kill in enemy base (redzone)  -  Reported by %p%  -  Admin online: ^b^2YES^0^n; Say /^b^8REPORT %p% for kill in enemy base (redzone)^0^n  -  Reported by %p%  -  Admin online: ^b^2YES^0^n; 
        If %server_redzonekiller% == none;PlayerSay ERROR: Playername not found. Just type ANY UNIQUE part of the name e.g. !redzone <playername>
    ####       REPORT END         #################

  3. #3
    Thanx dude

 

 

Posting Permissions

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