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

Glow and Colors [just fun]


Post New Thread Reply   
 
Thread Tools Display Modes
RULEEwasdsa
Junior Member
Join Date: Dec 2008
Old 12-19-2008 , 17:48   Re: Glow and Colors [just fun]
Reply With Quote #21

thanks but, i already did it ( : check my code .
RULEEwasdsa is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 02-05-2009 , 21:37   Re: Glow and Colors [just fun]
Reply With Quote #22

There are a few mistakes and optimizations that can be made, however it is acceptable.

Please post here or PM me if you're interested in those optimizations/changes.

This plugin is redundant but does the job better than the other similar plugins out there.

Approved.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 02-08-2009 , 14:39   Re: Glow and Colors [just fun]
Reply With Quote #23

Changes have been requested via PM.

PHP Code:
new thickness
new a_enable
new d_color
new c4_color
new t_color
new ct_color
new custom_enable 
Consider tagging these with a global variable identifier.

PHP Code:
new HUDSYNC 
This breaks convention for macros and should not be capitalized from front to back.

PHP Code:
new r
new g
new 
These are rather short. Consider adding prefix to them such as "color_".

PHP Code:
set_task(1.0"GlowStart"0
Unnecessary extra typing. The task_id parameter defaults to 0.

PHP Code:
HUDSYNC=CreateHudSyncObj(); 
Inconsistent style. You should either always or never add spaces between operators.

PHP Code:
public client_putinserver(id){
    
set_task(12.0"anuncio"id)
    
    return 
PLUGIN_CONTINUE

Unnecessary return. Inconsistent spacing (you added a space after the function prototype in plugin_init).

PHP Code:
public anuncio(id){
    
printMsg(id);
    
client_print(idprint_chat,"%L",LANG_PLAYER"GLOW_MSG")
    return 
PLUGIN_CONTINUE

Function name is not descriptive. Is this Italian for "announce" or something?

PHP Code:
    new mensaje[500
Extremely expensive. Consider making this static as it is called relatively often. Indescriptive name, unless it's in another language.

PHP Code:
    format(mensaje499"%L"LANG_PLAYER"GLOW_INFO")
    
set_hudmessage 20015000.0050.220.110.00.051.01)
    if(
get_pcvar_num(a_enable) == 1){
        
ShowSyncHudMsg(idHUDSYNCmensaje
    }
    return 
PLUGIN_HANDLED 
Unnecessary check. Just see if it evaluates to true. Unnecessary return.

PHP Code:
public GlowStart(){
    
    
    new 
players[32], pnumid
Inconsistent spacing.

PHP Code:
else if(get_user_team(id) == 1){ 
Poor allocation of resources. Cache the player's team and then check that.

PHP Code:
if(cs_get_user_defuse(id) == 1){ 
You already checked this and the same for user_has_weapon() etc., so merge them together.

PHP Code:
(set_task(0.1"GlowStart"0)) 
Unnecessary brackets.

PHP Code:
return PLUGIN_CONTINUE
Inconsistent styling. Either always or never use semicolons.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
carlos7
New Member
Join Date: Apr 2009
Old 04-09-2009 , 10:51   Re: Glow and Colors [just fun]
Reply With Quote #24

My server does not work because of an error "Reliable channel overflowed" generated by this plugin.

It appears on the console after the error:

"[S2K] CARLOS is joining the Counter-Terrorist Force
Scoring will not start until both teams have players
ML_NOTFOUND: GLOW_MSG
[S2K] CARLOS overflowed "

The problem I think is the GLOW_MSG

Nobody can enter my server because of this error


But nice plugin.
carlos7 is offline
Lchriaz
Senior Member
Join Date: Nov 2008
Location: Venezuelaa - Anzoategui
Old 04-09-2009 , 13:54   Re: Glow and Colors [just fun]
Reply With Quote #25

Can u put 1 screenshot thx
__________________
Mapper level: Mid
Sorry for me inglish
+karmita


Lchriaz is offline
Starsailor
horrible hahah
Join Date: Aug 2008
Location: Buenos Aires
Old 04-09-2009 , 14:31   Re: Glow and Colors [just fun]
Reply With Quote #26

Quote:
Originally Posted by carlos7 View Post
My server does not work because of an error "Reliable channel overflowed" generated by this plugin.

It appears on the console after the error:

"[S2K] CARLOS is joining the Counter-Terrorist Force
Scoring will not start until both teams have players
ML_NOTFOUND: GLOW_MSG
[S2K] CARLOS overflowed "

The problem I think is the GLOW_MSG

Nobody can enter my server because of this error


But nice plugin.

you are missing ml file
__________________
Find my plugins here..

Ex - Spanish Moderator.
Starsailor is offline
Old 05-16-2009, 13:11
crazyeffect
This message has been deleted by crazyeffect. Reason: Newer One
Old 08-08-2009, 09:09
crazyeffect
This message has been deleted by crazyeffect. Reason: Newer One
GmTx
BANNED
Join Date: May 2009
Location: Mountains [BG/Sofia]
Old 08-08-2009 , 15:53   Re: Glow and Colors [just fun]
Reply With Quote #27

Bulgarian
[bg]
GLOW_MSG = Napi6i "/glowinfo" za da razbere6 zna4enieto na vseki cvqt.
GLOW_INFO = Svete6ta sistema:^n4ervetno za Terroristite^nSinio za Counter-Terrorist^nJulto za toq deto nosi bombata^nSvetlo sinio za toq koito ima kit
GmTx is offline
Send a message via Skype™ to GmTx
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 08-08-2009 , 18:28   Re: Glow and Colors [just fun]
Reply With Quote #28

Quote:
Already translated languages:
- English by RULEEwasdsa and crazyeffect
- Dutch by crazyeffect
- Spanish by RULEEwasdsa
- Romanian by rekull
- German by SchlumPF*
- Polish by BeAfraid
- Finnish by SnoW
- Brazilian Portuguese by skiesOFF
- French by koyumu
- Estonian by nbikz
- Swedish by TandborsteN
- Lithuanian by hleV
- Danish by realchamp
- Czech by jab
- Bulgarian by GmTx
http://www.crazyeffect.net/glowmenu.zip
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
Starsailor
horrible hahah
Join Date: Aug 2008
Location: Buenos Aires
Old 08-08-2009 , 19:49   Re: Glow and Colors [just fun]
Reply With Quote #29

Mm, sorry for this crazyeffect, RULEEwasdsa! is my brother and he isnt supporting this plugin.

Thanks for upload/updated txt file
__________________
Find my plugins here..

Ex - Spanish Moderator.
Starsailor is offline
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 08-08-2009 , 20:11   Re: Glow and Colors [just fun]
Reply With Quote #30

That sucks :/

Can you add it?
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
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 20:37.


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