Raised This Month: $ Target: $400
 0% 

Flash teleport


Post New Thread Reply   
 
Thread Tools Display Modes
Author
nynCuKaH
Member
Join Date: Apr 2012
Location: void
Plugin ID:
3326
Plugin Version:
1.1
Plugin Category:
General Purpose
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Teleports player/admin/bot to where ever their flash bang detonates at.
    Old 10-26-2012 , 17:33   Flash teleport
    Reply With Quote #1

    Description:
    Teleports player/admin/bot to where ever their flash bang detonates at.

    Cvars
    sm_flashwarp - 1 // Enable/disable plugin?
    sm_flashwarp_admin - 0 // Only admins can use flash teleport?
    sm_flashwarp_bot - 0 // Bots can use flash-teleport?
    AutoExecConfig - cfg/sourcemod/flash_teleport.cfg

    Attached Files
    File Type: sp Get Plugin or Get Source (flash_teleport.sp - 1076 views - 2.4 KB)
    __________________

    Last edited by nynCuKaH; 11-17-2015 at 07:39. Reason: optimization code
    nynCuKaH is offline
    Mitchell
    ~lick~
    Join Date: Mar 2010
    Old 10-26-2012 , 22:54   Re: Flash teleport
    Reply With Quote #2

    better description;
    teleports an admin to where ever their flash bang detonates at.
    Mitchell is offline
    nynCuKaH
    Member
    Join Date: Apr 2012
    Location: void
    Old 10-27-2012 , 02:19   Re: Flash teleport
    Reply With Quote #3

    Quote:
    Originally Posted by Mitchell View Post
    better description;
    teleports an admin to where ever their flash bang detonates at.
    Ok
    My english bad.
    __________________
    nynCuKaH is offline
    wanted2411
    Senior Member
    Join Date: Jun 2012
    Old 10-27-2012 , 07:36   Re: Flash teleport
    Reply With Quote #4

    Very bad code. Some includes are no need for this plugin. May be moderators remove this theard ? *facepalm*
    wanted2411 is offline
    MasterOfTheXP
    Veteran Member
    Join Date: Aug 2011
    Location: Cloudbank
    Old 10-27-2012 , 09:13   Re: Flash teleport
    Reply With Quote #5

    The code looks fine. Hell, it looks better than mine! But yeah, you don't need...pretty much any of those includes. If you're only gonna use one stock from SMLib, considering just yoinking it and placing it directly into the plugin. I'm sure Berni won't mind. Just include SourceMod and SDKTools, and it'll compile on the forums, no hassle. Pow-zoop. Plugin done. Off I go.

    Oh, and...you don't need to check if someone is root or any other flag. If someone has root access, they have all flags.
    __________________
    Plugins / My Steam / TF2 Sandbox (plugin beta testing!)
    MasterOfTheXP is offline
    Glite
    Senior Member
    Join Date: Sep 2011
    Location: Ukraine
    Old 10-27-2012 , 10:10   Re: Flash teleport
    Reply With Quote #6

    LOL. http://pastebin.com/RaKGA7W3
    Remove this from here as fast as possible.

    Last edited by Glite; 10-27-2012 at 10:10.
    Glite is offline
    wanted2411
    Senior Member
    Join Date: Jun 2012
    Old 10-27-2012 , 11:31   Re: Flash teleport
    Reply With Quote #7

    I need to ban this user! He is a thief! It's not first time while he steals other plugins and switch copyrightes in yourself. ( Translate by me. Without using g.translate ^^ )
    wanted2411 is offline
    Roundcat
    Senior Member
    Join Date: Feb 2012
    Old 10-27-2012 , 13:44   Re: Flash teleport
    Reply With Quote #8

    how can this be for 'any' if relies on 'flash bangs'?
    __________________
    I know not my ar*e from its elbow.
    Roundcat is offline
    GsiX
    gee, six eggs
    Join Date: Aug 2012
    Location: Land Below The Wind
    Old 10-27-2012 , 13:46   Re: Flash teleport
    Reply With Quote #9

    Quote:
    Originally Posted by Roundcat View Post
    how can this be for 'any' if relies on 'flash bangs'?
    Good point...
    __________________
    If i happen to insulted you unintentionally,
    it was me and Google Translate who did it.
    GsiX is offline
    DarthNinja
    SourceMod Plugin Approver
    Join Date: Mar 2009
    Location: PreThinkHook()
    Old 11-03-2012 , 03:21   Re: Flash teleport
    Reply With Quote #10

    In order for this plugin to be approvable, you need to:
    • Credit the original author in:
      • The thread title
      • The OP
      • The plugin myinfo/author line
    • Remove all of the extraneous #includes. The only legitimately needed one is sdktools.
    • Clean up the if statement on line 36:
      • Manual flag checks should not be used, use CheckCommandAccess instead.
      • Check the logic of the statement. Currently it can return true when it is obviously intended to return false.
    • List the public cvar in the post header.



    Quote:
    Originally Posted by MasterOfTheXP View Post
    The code looks fine. Hell, it looks better than mine!
    Quoted for posterity.
    __________________

    Last edited by DarthNinja; 11-03-2012 at 14:27.
    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 15:11.


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