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

Ninja


Post New Thread Reply   
 
Thread Tools Display Modes
Author
rodipm
Member
Join Date: Feb 2011
Location: Brazil
Plugin ID:
2479
Plugin Version:
1.0
Plugin Category:
Fun Stuff
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Disappear like a ninja!
    Old 08-06-2011 , 03:30   Ninja
    Reply With Quote #1

    Description:

    This simple and funny plugin can save your live in danger situations.

    This will make some smoke appear where you are and then you become fully invisible (including weapons in your back, grenades and all those stuff) for 5 seconds.

    As a ninja you can not hurt and not be hurt by anyone.

    By default you have 3 ninjas to use during the round, but you can change it with convars and also you can disable it and make it a ninja shop, once shop is avaible players won't gain any ninja at round start, they'll have to buy it. the cost of ninja is changable too!

    Commands:

    !ninja
    !ninja_buy
    !ninja_give <name or #userid> <quantity> - Admin only

    Cvars:

    ninja_quant - 3 by default - Quantity of ninja a player will recieve every round start;

    ninja_shop - 0 by default - If this is set to 1 ninja_quant will be ignored, and players will have to buy their own ninjas;

    ninja_cost - 500 by default- This cvar only works if ninja_shop is 1, this will be the cost of ninjas;

    Includes:

    rpmlib (sourcemod, cstrike, sdktools)
    sdkhooks

    Instructions:

    Download the ninja.smx file and put it at cstrike/addons/sourcemod/plugins
    then on console(rcon) sm plugins load ninja

    Notes:

    While you are a ninja you can get weapons in the floor bcause it won't appear in your body, also i did a simple protector that won't let invisible dropped weapons in the floor.
    So don't be afraid to become visible if you switch weapon or get some in the floor!

    Thanks to irc guys.

    If you find any problem please comment!

    RpM
    Attached Files
    File Type: inc RpMlib.inc (15.5 KB, 592 views)
    File Type: smx ninja.smx (8.4 KB, 610 views)
    File Type: sp Get Plugin or Get Source (ninja.sp - 583 views - 5.7 KB)

    Last edited by rodipm; 08-06-2011 at 05:06.
    rodipm is offline
    sinblaster
    Grim Reaper
    Join Date: Feb 2010
    Location: Australia
    Old 08-06-2011 , 19:39   Re: Ninja
    Reply With Quote #2

    looks kind of interesting
    __________________
    Happy Happy Joy Joy

    sinblaster is offline
    TnTSCS
    AlliedModders Donor
    Join Date: Oct 2010
    Location: Undisclosed...
    Old 11-04-2011 , 23:23   Re: Ninja
    Reply With Quote #3

    LoL - damnit... I wasted my time waiting at the airport writing a plugin very similar to this one...

    I thought I had seen that someone wanted it - not that someone had written it

    gj on plugin - I haven't tested yours yet though.
    TnTSCS is offline
    rodipm
    Member
    Join Date: Feb 2011
    Location: Brazil
    Old 11-05-2011 , 02:32   Re: Ninja
    Reply With Quote #4

    rrsrsrsrsrs, that things happens. hope you enjoy it!
    rodipm is offline
    dbmiller5
    Senior Member
    Join Date: Jun 2011
    Old 11-17-2011 , 00:36   Re: Ninja
    Reply With Quote #5

    Can this be converted to work with TF2?? I might be willing to pay.

    Last edited by dbmiller5; 11-18-2011 at 17:16.
    dbmiller5 is offline
    alex123pavlov
    Member
    Join Date: Jun 2018
    Location: Moscow
    Old 06-27-2018 , 20:26   Re: Ninja
    Reply With Quote #6

    Gives here such error message
    Attached Images
    File Type: jpg 123123.JPG (50.0 KB, 324 views)
    alex123pavlov is offline
    Psyk0tik
    Veteran Member
    Join Date: May 2012
    Location: Homeless
    Old 06-28-2018 , 00:59   Re: Ninja
    Reply With Quote #7

    Those aren't error messages. The compiler is just telling you that the code is using FindSendPropOffs which is deprecated in your version of SM. You could edit the source code and change FindSendPropOffs to FindSendPropInfo, and then recompile.
    __________________
    Psyk0tik is offline
    alex123pavlov
    Member
    Join Date: Jun 2018
    Location: Moscow
    Old 06-29-2018 , 04:55   Re: Ninja
    Reply With Quote #8

    Quote:
    Originally Posted by Crasher_3637 View Post
    Those aren't error messages. The compiler is just telling you that the code is using FindSendPropOffs which is deprecated in your version of SM. You could edit the source code and change FindSendPropOffs to FindSendPropInfo, and then recompile.
    I use sm 1.8, explain in more detail how to solve a problem.
    alex123pavlov is offline
    djded
    Member
    Join Date: Jul 2019
    Location: Czech Republic
    Old 12-17-2020 , 19:18   Re: Ninja
    Reply With Quote #9

    nice plugin! Thanks
    djded is offline
    djded
    Member
    Join Date: Jul 2019
    Location: Czech Republic
    Old 01-03-2021 , 13:15   Re: Ninja
    Reply With Quote #10

    have a lot same errors, after every usage ninja ((( But all plugin funktions are working fine (invis,smoke)

    Code:
    L 01/03/2021 - 19:35:09: [SM] Blaming: ninja.smx
    L 01/03/2021 - 19:35:09: [SM] Call stack trace:
    L 01/03/2021 - 19:35:09: [SM]   [0] SetEntProp
    L 01/03/2021 - 19:35:09: [SM]   [1] Line 308, C:\Users\User\Desktop\sourcemod 1.9\scripting\include\entity_prop_stocks.inc::SetEntityRenderMode
    L 01/03/2021 - 19:35:09: [SM]   [2] Line 205, C:\Users\User\Desktop\sourcemod 1.9\scripting\ninja.sp::Drop
    L 01/03/2021 - 19:44:58: Error log file session closed.
    Can help me somebody?

    Last edited by djded; 01-03-2021 at 16:53.
    djded 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 00:17.


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