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

Sunglasses


Post New Thread Reply   
 
Thread Tools Display Modes
Author
SAMURAI16
BANNED
Join Date: Sep 2006
Plugin ID:
342
Plugin Version:
0.1
Plugin Category:
Fun Stuff
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Who buy sunglasses won't be flashed
    Old 04-04-2008 , 15:44   Sunglasses
    Reply With Quote #1

    Sunglasses

    Author :
    SAMURAI
    Version :
    0.1

    Plugins Details:
    Players can buy sunglasses and they won't be flashed.

    Command:
    say sunglasses

    Cvars:
    sunglasses_price (default 1100$) - Set sunglasses price
    sunglasses_msg_mode (default 1)
    1 - After client connect to server, see a advert message to know about sunglasses
    2 - On every round appear that advert message
    sunglasses_mode (default 1)
    1 - Player buy sunglasses and on current round won't be flashed. On next round he don't have sunglasses anymore
    2 - Player buy sunglasses and can use it on current round for a limited times (Set value by cvar sunglasses_max ) . On next round he don't have sunglasses anymore
    sunglasses_max (default 4) - Set how many times a client can use sunglasses in a round. Works only if sunglasses_mode is 2
    .

    Attached Files
    File Type: sp Get Plugin or Get Source (sunglasses.sp - 3381 views - 4.5 KB)

    Last edited by SAMURAI16; 12-29-2008 at 03:45.
    SAMURAI16 is offline
    Send a message via MSN to SAMURAI16
    bl4nk
    SourceMod Developer
    Join Date: Jul 2007
    Old 04-04-2008 , 18:19   Re: Sunglasses
    Reply With Quote #2

    My eyes! The goggles do nothing!
    bl4nk is offline
    SAMURAI16
    BANNED
    Join Date: Sep 2006
    Old 04-05-2008 , 00:19   Re: Sunglasses
    Reply With Quote #3

    What you mean do nothing ?
    SAMURAI16 is offline
    Send a message via MSN to SAMURAI16
    hip_hop_x
    Senior Member
    Join Date: Apr 2006
    Old 04-05-2008 , 19:55   Re: Sunglasses
    Reply With Quote #4

    bl4nk: the Sunglasses doesn't change the view, they prevent you getting flashed.
    Gj Samurai!
    hip_hop_x is offline
    Send a message via MSN to hip_hop_x Send a message via Yahoo to hip_hop_x
    Peoples Army
    SourceMod Donor
    Join Date: Mar 2007
    Old 04-06-2008 , 15:42   Re: Sunglasses
    Reply With Quote #5

    gj samaurai
    Peoples Army is offline
    Box Cutter
    SourceMod Donor
    Join Date: Dec 2006
    Location: Arizona
    Old 04-06-2008 , 16:00   Re: Sunglasses
    Reply With Quote #6

    I believe bl4nk was just quoting the line from that Simpsons episode. Which was freaking hilarious lol
    Box Cutter is offline
    bl4nk
    SourceMod Developer
    Join Date: Jul 2007
    Old 04-06-2008 , 22:04   Re: Sunglasses
    Reply With Quote #7

    http://video.google.com/videoplay?do...72322501560444
    bl4nk is offline
    SAMURAI16
    BANNED
    Join Date: Sep 2006
    Old 04-07-2008 , 05:22   Re: Sunglasses
    Reply With Quote #8

    oh
    SAMURAI16 is offline
    Send a message via MSN to SAMURAI16
    bombjack
    Junior Member
    Join Date: Aug 2006
    Old 10-23-2008 , 16:48   Re: Sunglasses -bug?
    Reply With Quote #9

    This plugin rejects players from entering our server. It only says reason:"." If I remove the code below it all works:

    Code:
    public bool:OnClientConnect(client)
    {
        had_sunglasses[client] = false;
        g_used_count[client] = 0;
    }

    any ideas?

    another possible bug: If you don't buy sunglasses, run out of buying area and then goes back, it's not possible to buy sunglasses anymore
    bombjack is offline
    Lebson506th
    Veteran Member
    Join Date: Jul 2008
    Old 10-23-2008 , 18:37   Re: Sunglasses
    Reply With Quote #10

    It needs to have "return true;" at the end of that function, like so:

    PHP Code:
    public bool:OnClientConnect(client)
    {
        
    had_sunglasses[client] = false;
        
    g_used_count[client] = 0;

        return 
    true;

    __________________
    My Plugins
    Spray Tracer by Nican, maintained by me
    Simple TK Manager
    DoD:S Admin Weapons

    Links
    Resistance and Liberation (A HL2 Multiplayer Modification)
    Lebson506th 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 08:40.


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