AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   Sunglasses (https://forums.alliedmods.net/showthread.php?t=69452)

SAMURAI16 04-04-2008 15:44

Sunglasses
 
1 Attachment(s)
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
.


bl4nk 04-04-2008 18:19

Re: Sunglasses
 
My eyes! The goggles do nothing!

SAMURAI16 04-05-2008 00:19

Re: Sunglasses
 
What you mean do nothing ?

hip_hop_x 04-05-2008 19:55

Re: Sunglasses
 
bl4nk: the Sunglasses doesn't change the view, they prevent you getting flashed.
Gj Samurai!

Peoples Army 04-06-2008 15:42

Re: Sunglasses
 
8)gj samaurai

Box Cutter 04-06-2008 16:00

Re: Sunglasses
 
I believe bl4nk was just quoting the line from that Simpsons episode. Which was freaking hilarious lol

bl4nk 04-06-2008 22:04

Re: Sunglasses
 
http://video.google.com/videoplay?do...72322501560444

SAMURAI16 04-07-2008 05:22

Re: Sunglasses
 
oh :)

bombjack 10-23-2008 16:48

Re: Sunglasses -bug?
 
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

Lebson506th 10-23-2008 18:37

Re: Sunglasses
 
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;



nonick 12-25-2008 07:02

Re: Sunglasses
 
Then i load this plugin, players can't write in chat....plugin buging.. :/

Fyren 12-25-2008 12:21

Re: Sunglasses
 
The "return Plugin_Handled" at the bottom of the chat hook sound be Plugin_Continue.

nonick 12-25-2008 18:04

Re: Sunglasses
 
I find "return Plugin_Handled" string, but I dont understand, what do next?

Fyren 12-26-2008 07:02

Re: Sunglasses
 
From:
PHP Code:

        had_sunglasses[id] = true;
        
g_used_count[id]++;
    }
    
    return 
Plugin_Handled;
        


To:
PHP Code:

        had_sunglasses[id] = true;
        
g_used_count[id]++;
    }
    
    return 
Plugin_Continue;
        



nonick 12-26-2008 15:33

Re: Sunglasses
 
Thank you man ;) It's work.

Deeznutzkill 12-28-2008 22:09

Re: Sunglasses
 
How would I edit the sp. file to make it so instead of "say sunglasses" it would be a silent console command like SM_sunglasses, and only admins or, a special admin group can use it?

ottobohn 06-27-2009 14:23

Re: Sunglasses
 
Can you have it so you need "reserved" slot to purchase these?

Deathshot 07-08-2009 23:58

Re: Sunglasses
 
When I add this addon to my server it rejects me from entering. When I take it off it allows me in the server.

gaissi 01-29-2010 09:04

Re: Sunglasses
 
2 Attachment(s)
So,

I changed the part at the .sp file, for all which don't want change the file by herself.

Have fun.

Greetings,

gaissi

cssnik 05-05-2011 13:16

Re: Sunglasses
 
Working now?


All times are GMT -4. The time now is 16:53.

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