Raised This Month: $135 Target: $400
 33% 

Friendly Mode Mod.


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Wazman
SourceMod Donor
Join Date: Oct 2012
Location: Michigan
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


    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.
    Attached Files
    File Type: sp Get Plugin or Get Source (friendly.sp - 224 views - 4.8 KB)
    File Type: smx friendly.smx (5.6 KB, 560 views)
    __________________
    My Mods
    Add me on steam? ...Also, My Community V


    Last edited by Wazman; 07-23-2013 at 19:45. Reason: Added New Version Of Plugin
    Wazman is offline
    Skyy
    AlliedModders Donor
    Join Date: Jan 2010
    Location: .-. ... -. .- .-
    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
    SourceMod Donor
    Join Date: Oct 2012
    Location: Michigan
    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.
    __________________
    My Mods
    Add me on steam? ...Also, My Community V


    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
    SourceMod Donor
    Join Date: Oct 2012
    Location: Michigan
    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.
    __________________
    My Mods
    Add me on steam? ...Also, My Community V

    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
    SourceMod Donor
    Join Date: Oct 2012
    Location: Michigan
    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);

    }
    __________________
    My Mods
    Add me on steam? ...Also, My Community V

    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
    Location: Source SDK
    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 00:16.


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