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;




All times are GMT -4. The time now is 02:18.

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