Raised This Month: $12 Target: $400
 3% 

Friendly Mode Mod.


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Wazman
AlliedModders Donor
Join Date: Oct 2012
Location: Unknown place ????
Plugin ID:
3612
Plugin Version:
Plugin Category:
Fun Stuff
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    This Plugin Allows A User to enter a Friendly Buddha Mode.
    Old 04-10-2013 , 02:31   Friendly Mode Mod.
    Reply With Quote #1

    Quote:

    original version was dyl0n here's the post> http://forums.alliedmods.net/showthread.php?t=194840

    ddhoward's version of this mod can be found >here<
    (btw, requires sdkhooks to compile)
    anyways......
    //what the mod is
    it's a perfect way to end god mode abuse, for example, if you run a server that has god mode as a donator perk. You can use the friendly mod instead, now no donator can abuse their invincibility.

    //installing the mod
    simply drag and drop the .smx file into the plugins directory in "addons"
    then load the plugin in through rcon or restart the server.

    //how to use the mod
    cvars
    Quote:
    sm_friendly_blockweps 1/0 //blocks weapon from being used
    sm_friendly_remember 1/0 //keeps friendly mode on after suicide
    type !friendly in chat or sm_friendly in console to activate the mode.
    By default this mod is attached to the admin flag ban. If you want it attached to another flag, just enter your override.cfg, and add
    Quote:
    "sm_friendly" "what ever flag"
    //web compiler won't work, i already compiled the mod for you guys.

    edit: Yeah sorry i uploaded this years ago when i was just a teen, sorry its not original work i was kinda trolling, this is update as of 2021 october 4th . Hope everyone is having a great experience with source mod im so impressed its been around for so long. Keep up the good times and good mods :d
    i dont really know jack about writing code or source mods for that matter but had a lot of fun running servers!
    Attached Files
    File Type: sp Get Plugin or Get Source (friendly.sp - 605 views - 4.8 KB)
    File Type: smx friendly.smx (5.6 KB, 1025 views)

    Last edited by Wazman; 10-04-2021 at 15:16. Reason: Added New Version Of Plugin
    Wazman is offline
    Skyy
    AlliedModders Donor
    Join Date: Jan 2010
    Location: Toronto, Canada
    Old 04-10-2013 , 02:50   Re: Friendly Mode Mod.
    Reply With Quote #2

    1. Sdktools is included in sourcemod, so no one has to download it separately.
    2. You've posted 3 identical threads, with the source in one, the description in another, and the third being complete garbage. If the duplicate posts were accidental, they would most likely contain the same data in each post.
    with how poor this code is, it's no wonder the original author didn't sign it.
    Skyy is offline
    Wazman
    AlliedModders Donor
    Join Date: Oct 2012
    Location: Unknown place ????
    Old 04-10-2013 , 04:07   Re: Friendly Mode Mod.
    Reply With Quote #3

    1, Those other two were posted by mistake, I didn't know how to delete a thread. So I just deleted what was written in them.
    2, I know the scripting is bit off, but it's free for anyone to edit, all I did was post the original because it worked ok on my own server.
    Also, No need for you to be such a hard ass on me. sheesh.

    Last edited by Wazman; 04-10-2013 at 04:09.
    Wazman is offline
    Dispenz0r
    Senior Member
    Join Date: May 2011
    Old 04-10-2013 , 11:04   Re: Friendly Mode Mod.
    Reply With Quote #4

    L 04/10/2013 - 173:18: [SM] Native "SDKHook" reported: Entity -2037569534 is invalid
    L 04/10/2013 - 173:18: [SM] Displaying call stack trace for plugin "friendly.smx":
    L 04/10/2013 - 173:18: [SM] [0] Line 76, C:\server\orangebox\tf\addons\sourcemod\scrip ting\friendly.sp::OnEntityCreated()
    L 04/10/2013 - 173:18: [SM] Native "SDKHook" reported: Entity -2124077053 is invalid
    L 04/10/2013 - 173:18: [SM] Displaying call stack trace for plugin "friendly.smx":
    L 04/10/2013 - 173:18: [SM] [0] Line 76, C:\server\orangebox\tf\addons\sourcemod\scrip ting\friendly.sp::OnEntityCreated()
    L 04/10/2013 - 173:18: [SM] Native "SDKHook" reported: Entity -2090432508 is invalid
    L 04/10/2013 - 173:18: [SM] Displaying call stack trace for plugin "friendly.smx":
    L 04/10/2013 - 173:18: [SM] [0] Line 76, C:\server\orangebox\tf\addons\sourcemod\scrip ting\friendly.sp::OnEntityCreated()
    L 04/10/2013 - 173:18: [SM] Native "SDKHook" reported: Entity -2112137211 is invalid
    L 04/10/2013 - 173:18: [SM] Displaying call stack trace for plugin "friendly.smx":
    L 04/10/2013 - 173:18: [SM] [0] Line 76, C:\server\orangebox\tf\addons\sourcemod\scrip ting\friendly.sp::OnEntityCreated()
    L 04/10/2013 - 173:18: [SM] Native "SDKHook" reported: Entity -2068768762 is invalid
    L 04/10/2013 - 173:18: [SM] Displaying call stack trace for plugin "friendly.smx":
    L 04/10/2013 - 173:18: [SM] [0] Line 76, C:\server\orangebox\tf\addons\sourcemod\scrip ting\friendly.sp::OnEntityCreated()
    L 04/10/2013 - 173:18: [SM] Native "SDKHook" reported: Entity -2015864825 is invalid
    L 04/10/2013 - 173:18: [SM] Displaying call stack trace for plugin "friendly.smx":
    L 04/10/2013 - 173:18: [SM] [0] Line 76, C:\server\orangebox\tf\addons\sourcemod\scrip ting\friendly.sp::OnEntityCreated()
    L 04/10/2013 - 173:18: [SM] Native "SDKHook" reported: Entity -2072467448 is invalid
    Dispenz0r is offline
    Wazman
    AlliedModders Donor
    Join Date: Oct 2012
    Location: Unknown place ????
    Old 04-10-2013 , 11:31   Re: Friendly Mode Mod.
    Reply With Quote #5

    Quote:
    Originally Posted by Dispenz0r View Post
    L 04/10/2013 - 173:18: [SM] Native "SDKHook" reported: Entity -2037569534 is invalid
    L 04/10/2013 - 173:18: [SM] Displaying call stack trace for plugin "friendly.smx":
    L 04/10/2013 - 173:18: [SM] [0] Line 76, C:\server\orangebox\tf\addons\sourcemod\scrip ting\friendly.sp::OnEntityCreated()
    L 04/10/2013 - 173:18: [SM] Native "SDKHook" reported: Entity -2124077053 is invalid
    L 04/10/2013 - 173:18: [SM] Displaying call stack trace for plugin "friendly.smx":
    L 04/10/2013 - 173:18: [SM] [0] Line 76, C:\server\orangebox\tf\addons\sourcemod\scrip ting\friendly.sp::OnEntityCreated()
    L 04/10/2013 - 173:18: [SM] Native "SDKHook" reported: Entity -2090432508 is invalid
    L 04/10/2013 - 173:18: [SM] Displaying call stack trace for plugin "friendly.smx":
    L 04/10/2013 - 173:18: [SM] [0] Line 76, C:\server\orangebox\tf\addons\sourcemod\scrip ting\friendly.sp::OnEntityCreated()
    L 04/10/2013 - 173:18: [SM] Native "SDKHook" reported: Entity -2112137211 is invalid
    L 04/10/2013 - 173:18: [SM] Displaying call stack trace for plugin "friendly.smx":
    L 04/10/2013 - 173:18: [SM] [0] Line 76, C:\server\orangebox\tf\addons\sourcemod\scrip ting\friendly.sp::OnEntityCreated()
    L 04/10/2013 - 173:18: [SM] Native "SDKHook" reported: Entity -2068768762 is invalid
    L 04/10/2013 - 173:18: [SM] Displaying call stack trace for plugin "friendly.smx":
    L 04/10/2013 - 173:18: [SM] [0] Line 76, C:\server\orangebox\tf\addons\sourcemod\scrip ting\friendly.sp::OnEntityCreated()
    L 04/10/2013 - 173:18: [SM] Native "SDKHook" reported: Entity -2015864825 is invalid
    L 04/10/2013 - 173:18: [SM] Displaying call stack trace for plugin "friendly.smx":
    L 04/10/2013 - 173:18: [SM] [0] Line 76, C:\server\orangebox\tf\addons\sourcemod\scrip ting\friendly.sp::OnEntityCreated()
    L 04/10/2013 - 173:18: [SM] Native "SDKHook" reported: Entity -2072467448 is invalid
    I'll try to re write another version where that error won't appear.
    Wazman is offline
    thetwistedpanda
    Good Little Panda
    Join Date: Sep 2008
    Old 04-10-2013 , 11:34   Re: Friendly Mode Mod.
    Reply With Quote #6

    Just add a entity > 0 check in that function.
    __________________
    thetwistedpanda is offline
    Wazman
    AlliedModders Donor
    Join Date: Oct 2012
    Location: Unknown place ????
    Old 04-10-2013 , 11:56   Re: Friendly Mode Mod.
    Reply With Quote #7

    How Do I do that again? Something like this?
    Quote:
    new ent = 0;

    while ((ent = FindEntityByClassname(ent, "logic_auto")) != 0)
    {

    new ref = EntIndexToEntRef(ent);

    }
    Wazman is offline
    DeadFuze
    Junior Member
    Join Date: Mar 2013
    Location: Somewhere.
    Old 04-10-2013 , 16:40   Re: Friendly Mode Mod.
    Reply With Quote #8

    friendly.sp(30) : warning 217: loose indentation
    friendly.sp(37) : warning 217: loose indentation
    friendly.sp(6 : warning 217: loose indentation
    friendly.sp(117) : warning 213: tag mismatch
    friendly.sp(11 : warning 217: loose indentation
    friendly.sp(126) : warning 219: local variable "weapon" shadows a variable at a preceding level
    friendly.sp(136) : warning 213: tag mismatch

    ...

    Quote:
    Originally Posted by BAILOPAN
    Check warning. If your plugin has a warning when compiling, it won't be approved. This includes deprecated functions.
    Edit: No public Plugin:myinfo?

    Last edited by DeadFuze; 04-10-2013 at 17:09.
    DeadFuze is offline
    ddhoward
    Veteran Member
    Join Date: May 2012
    Location: California
    Old 04-11-2013 , 03:11   Re: Friendly Mode Mod.
    Reply With Quote #9

    Here is the original thread.
    http://forums.alliedmods.net/showthread.php?t=194840
    ddhoward is offline
    Sreaper
    髪を用心
    Join Date: Nov 2009
    Old 04-11-2013 , 11:39   Re: Friendly Mode Mod.
    Reply With Quote #10

    Quote:
    Originally Posted by ddhoward View Post
    This ^

    You can credit Dyl0n as the original plugin author as he made the majority of this plugin.

    Last edited by Sreaper; 04-11-2013 at 11:40.
    Sreaper is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 17:36.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode