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

[TF2] Respawner + Team Changer


Post New Thread Reply   
 
Thread Tools Display Modes
Author
gameguysz
Member
Join Date: Aug 2011
Location: USA
Plugin ID:
2679
Plugin Version:
0.1
Plugin Category:
Admin Commands
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Allows root admins to respawn any player or change there teams
    Old 11-22-2011 , 20:06   [TF2] Respawner + Team Changer
    Reply With Quote #1

    [TF2] sm_rsptc
    v:0.3


    NOTE:
    This is my first plugin ever! I didn't really have any idea what to make until i needed something like this on my server. I'm sure there is already a plugin that does this and maybe there's not but this plugin was really just made for me to learn/practice pawn, so give me errors or advice please!! And also no rude comments Like i said im new tot his.

    Description:
    Simply just allows Admins with ROOT access to the server to change any players team or respawn someone who is dead or you just want to mess with them and move them to the beginning via chat or Cvars.

    Commands:
    !respawn or /respawn: to respawn any player who is dead or alive. [Usage: !respawn <name>]
    !move or /move: used to move a player to a given team. [Usage: !move <name> <0/1/2/3> "1 = Spectators, 2 = red, 3 = Blue"

    Installation:
    Put sm_rsptc.smx into /addons/sourcemod/plugins and reboot your server or type "sm plugins load sm_rsptc" into your console or rcon. Downloads:
    Located in attachments

    PS: Again if you guys have any helpful advice or if something is wrong with the plugin or i should change something then please tell me! I want to learn and this is the first plugin i wrote from scratch. :]


    Change Log:

    0.3
    • Fixed Re-spawning Acknowledgement
    • Fixed Move Player Team Acknowledgement
    0.2:
    • Fixed re-spawning error
    • Fixed Replying to users and or admins

    Working On:
    1. Making tag commands
    2. Making it more appealing to Darth
    Attached Files
    File Type: sp Get Plugin or Get Source (sm_rsptc.sp - 1754 views - 1.8 KB)
    File Type: smx sm_rsptc.smx (4.1 KB, 3754 views)

    Last edited by gameguysz; 11-23-2011 at 13:45.
    gameguysz is offline
    Drixevel
    AlliedModders Donor
    Join Date: Sep 2009
    Location: Somewhere headbangin'
    Old 11-22-2011 , 22:53   Re: [TF2] Respawn/Change Team
    Reply With Quote #2

    Well besides me telling you that there's tons of plugins that do this exact functionality, looks good to me but I wouldn't know code-wise.

    PS: Why would you want to move someone to not connected...?

    Last edited by Drixevel; 11-22-2011 at 22:53.
    Drixevel is offline
    gameguysz
    Member
    Join Date: Aug 2011
    Location: USA
    Old 11-22-2011 , 22:57   Re: [TF2] Respawn/Change Team
    Reply With Quote #3

    Oh Zero isnt actually in there i just copied the teams id #s from the API
    gameguysz is offline
    DarthNinja
    SourceMod Plugin Approver
    Join Date: Mar 2009
    Location: PreThinkHook()
    Old 11-22-2011 , 23:48   Re: [TF2] Respawn/Change Team
    Reply With Quote #4

    Here are a few things:
    • Your plugin name "sm_rsptc" isn't descriptive.
    • Your "if (args != 1)" is incorrect and will makes the spawn function do nothing.
    • Please indent your code.
    • You should use ProcessTargetString instead of FindTarget so that users can use @me, @team, etc.
    • This is just ridiculous, I shouldn't have to tell you why:
      PHP Code:
      new Team;
      if (
      args >= && GetCmdArg(2arg2sizeof(arg2)) && !IsClientReplay(target2))
      {
          if (
      StringToInt(arg2) == 1)
          {
              
      Team 1;
          }
          if (
      StringToInt(arg2) == 2)
          {
              
      Team 2;
          }
          if (
      StringToInt(arg2) == 3)
          {
              
      Team 3;
          }



    Also as said above, there are already a number of plugins that respawn/move players. How does this plugin improve on those?
    __________________
    DarthNinja is offline
    Drixevel
    AlliedModders Donor
    Join Date: Sep 2009
    Location: Somewhere headbangin'
    Old 11-23-2011 , 00:16   Re: [TF2] Respawn/Change Team
    Reply With Quote #5

    Does this plugin work when you try to use tags like @all, @red, or @ blue? The other respawn plugins I've used in the past don't do so.
    Drixevel is offline
    gameguysz
    Member
    Join Date: Aug 2011
    Location: USA
    Old 11-23-2011 , 00:22   Re: [TF2] Respawn/Change Team
    Reply With Quote #6

    like i said on main thread.

    Quote:
    Originally Posted by gameguysz View Post
    NOTE:
    This is my first plugin ever! I didn't really have any idea what to make until i needed something like this on my server. I'm sure there is already a plugin that does this and maybe there's not but this plugin was really just made for me to learn/practice pawn, so give me errors or advice please!! And also no rude comments Like i said im new tot his.

    I'm learning, this wasn't intended to be better than everything else but to just let me get out there you know? I know there are plenty of things wrong with this script like i said again above im learning and i would love advice but you could be a bit nicer <_< Its not like i said This was the best plugin ever or anything of that sort i actually said there are plenty of other plugins like this


    Also, "sm_rsptc = SourceMod_ReSPawnTeamChanger. Its just way shorter

    Last edited by gameguysz; 11-23-2011 at 00:25.
    gameguysz is offline
    gameguysz
    Member
    Join Date: Aug 2011
    Location: USA
    Old 11-23-2011 , 00:23   Re: [TF2] Respawn/Change Team
    Reply With Quote #7

    Quote:
    Originally Posted by r3dw3r3w0lf View Post
    Does this plugin work when you try to use tags like @all, @red, or @ blue? The other respawn plugins I've used in the past don't do so.

    ill take that into consideration :]
    gameguysz is offline
    Drixevel
    AlliedModders Donor
    Join Date: Sep 2009
    Location: Somewhere headbangin'
    Old 11-23-2011 , 00:31   Re: [TF2] Respawn/Change Team
    Reply With Quote #8

    Quote:
    Originally Posted by gameguysz View Post
    like i said on main thread.



    I'm learning, this wasn't intended to be better than everything else but to just let me get out there you know? I know there are plenty of things wrong with this script like i said again above im learning and i would love advice but you could be a bit nicer <_< Its not like i said This was the best plugin ever or anything of that sort i actually said there are plenty of other plugins like this


    Also, "sm_rsptc = SourceMod_ReSPawnTeamChanger. Its just way shorter
    He wasn't trying to be mean, he's a moderator and he was just pointing out the problems to why this plugin hasn't been approved yet.

    Also, to add to the information, plugins are designed to be modules and plugins that have the same functionality and/or a plugin that's two of the same plugin will get it unapproved because it's not the point quoted in my terms from asherkin.

    http://forums.alliedmods.net/showthread.php?t=57142

    Last edited by Drixevel; 11-23-2011 at 00:37.
    Drixevel is offline
    gameguysz
    Member
    Join Date: Aug 2011
    Location: USA
    Old 11-23-2011 , 00:47   Re: [TF2] Respawn/Change Team
    Reply With Quote #9

    Quote:
    Originally Posted by r3dw3r3w0lf View Post
    He wasn't trying to be mean, he's a moderator and he was just pointing out the problems to why this plugin hasn't been approved yet.

    Also, to add to the information, plugins are designed to be modules and plugins that have the same functionality and/or a plugin that's two of the same plugin will get it unapproved because it's not the point quoted in my terms from asherkin.

    http://forums.alliedmods.net/showthread.php?t=57142

    OHHH OKAY :] well i don't care if this gets approved i guess since there are better ones you know. I dont think i should of posted it on here since this section if for like real plugins you know

    And i under stand Darth its just kinda a bummer when your trying to learn something or get good at something and someone disapproves XD
    gameguysz is offline
    DarthNinja
    SourceMod Plugin Approver
    Join Date: Mar 2009
    Location: PreThinkHook()
    Old 11-23-2011 , 00:47   Re: [TF2] sm_ReSPawnTeamChanger
    Reply With Quote #10

    Quote:
    Originally Posted by gameguysz View Post
    like i said on main thread.

    I'm learning, this wasn't intended to be better than everything else but to just let me get out there you know? I know there are plenty of things wrong with this script like i said again above im learning and i would love advice but you could be a bit nicer <_< Its not like i said This was the best plugin ever or anything of that sort i actually said there are plenty of other plugins like this


    Also, "sm_rsptc = SourceMod_ReSPawnTeamChanger. Its just way shorter
    Just because you wrote a plugin (to learn) doesn't mean you have to submit it for approval.

    You could use the name "[TF2] Respawner + Team Changer", I think that would be a lot more useful don't you?

    Quote:
    Originally Posted by r3dw3r3w0lf View Post
    Does this plugin work when you try to use tags like @all, @red, or @ blue? The other respawn plugins I've used in the past don't do so.
    No.
    That requires using ProcessTargetString instead of FindTarget
    __________________
    DarthNinja is offline
    Reply



    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 04:45.


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