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

[ANY] Player Spawns


Post New Thread Reply   
 
Thread Tools Display Modes
Author
noodleboy347
AlliedModders Donor
Join Date: Mar 2009
Plugin ID:
1919
Plugin Version:
1.12
Plugin Category:
Fun Stuff
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    18 
    Plugin Description:
    Allows players to set and clear their own spawn point
    Old 08-29-2010 , 02:02   [ANY] Player Spawns
    Reply With Quote #1

    Player Spawns

    Description
    Allows players to set and clear their own spawn point. Additionally, admins can set and clear the spawn points of others.

    Commands
    • sm_setspawn - Set your own spawn location.
    • sm_clearspawn - Clear your own spawn location.
    • sm_setplayerspawn <player> - Set spawn location of another player.
    • sm_clearplayerspawn <player> - Clear spawn location of another player.

    Cvars
    • sm_playerspawns_enable <1> - Enables the plugin.
    • sm_playerspawns_version - Plugin version.

    Todo
    • Enable/disable cvar
    • Admin-only cvar

    Notes
    Changelog
    • Version 1.13 [8/9/12]
      -Fixed plugin not working
    • Version 1.12 [9/17/10]
      -Fixed players setting spawn while dead/spectating
    • Version 1.11 [8/29/10]
      -Fixed enable cvar issue
    • Version 1.1 [8/29/10]
      -Added sm_playerspawns_enable
      -Replaced ReplyToCommand with ShowActivity2
    • Version 1.0 [8/28/10]
      -Initial release
    Attached Files
    File Type: sp Get Plugin or Get Source (setspawn.sp - 1842 views - 4.0 KB)

    Last edited by noodleboy347; 08-09-2013 at 12:48.
    noodleboy347 is offline
    Snaggle
    AlliedModders Donor
    Join Date: Jul 2010
    Location: England
    Old 08-29-2010 , 02:44   Re: [ANY] Player Spawns
    Reply With Quote #2

    Works great, thanks for doing this Noodle
    Snaggle is offline
    noodleboy347
    AlliedModders Donor
    Join Date: Mar 2009
    Old 08-29-2010 , 03:41   Re: [ANY] Player Spawns
    Reply With Quote #3

    Glad to hear it
    noodleboy347 is offline
    Afronanny
    Veteran Member
    Join Date: Aug 2009
    Old 08-29-2010 , 14:24   Re: [ANY] Player Spawns
    Reply With Quote #4

    You may want to add a cvar to toggle whether or not players can set their own spawn points. Also consider using ShowActivity2 when an admin sets a player's spawn point, just to make it easier for server owners to deal with any abuse of this.
    Afronanny is offline
    noodleboy347
    AlliedModders Donor
    Join Date: Mar 2009
    Old 08-29-2010 , 16:38   Re: [ANY] Player Spawns
    Reply With Quote #5

    Quote:
    • Version 1.1 [8/29/10]
      -Added sm_playerspawns_enable
      -Replaced ReplyToCommand with ShowActivity2
    noodleboy347 is offline
    Afronanny
    Veteran Member
    Join Date: Aug 2009
    Old 08-29-2010 , 19:57   Re: [ANY] Player Spawns
    Reply With Quote #6

    Check lines 51, 62, 77, 116

    PHP Code:
    if(cEnabled
    should be
    PHP Code:
    if (GetConVarBool(cEnabled)) 

    Last edited by Afronanny; 08-29-2010 at 19:59.
    Afronanny is offline
    noodleboy347
    AlliedModders Donor
    Join Date: Mar 2009
    Old 08-30-2010 , 01:52   Re: [ANY] Player Spawns
    Reply With Quote #7

    Quote:
    Originally Posted by Afronanny View Post
    Check lines 51, 62, 77, 116

    PHP Code:
    if(cEnabled
    should be
    PHP Code:
    if (GetConVarBool(cEnabled)) 
    Derp

    How could I forget that, thanks

    Quote:
    • Version 1.11 [8/29/10]
      -Fixed enable cvar issue
    noodleboy347 is offline
    Afronanny
    Veteran Member
    Join Date: Aug 2009
    Old 08-30-2010 , 17:33   Re: [ANY] Player Spawns
    Reply With Quote #8

    Looks good, have fun
    Afronanny is offline
    L4DHelp
    Member
    Join Date: Dec 2008
    Old 09-17-2010 , 12:38   Re: [ANY] Player Spawns
    Reply With Quote #9

    can someone update this plugin? people on my server are using this in spectator mode to get into enemy bases...
    __________________
    L4DHelp is offline
    noodleboy347
    AlliedModders Donor
    Join Date: Mar 2009
    Old 09-17-2010 , 23:48   Re: [ANY] Player Spawns
    Reply With Quote #10

    Sorry for not doing this earlier, I am indeed a lazy person
    • Version 1.12 [9/17/10]
      -Fixed players setting spawn while dead/spectating
    noodleboy347 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 13:26.


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