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

Colored Spawn v1.2.2


Post New Thread Reply   
 
Thread Tools Display Modes
fezh
Veteran Member
Join Date: Dec 2008
Location: BANNED
Old 06-16-2009 , 15:29   Re: Colored Spawn v1.2.2
Reply With Quote #41

Quote:
Originally Posted by 3JIou-TaTapuH View Post
I guess it doesnt work for gungame 2.12.
Also It works but only for the 1 respawn only.
Then nomore colorfull respawns
But in the new rounds the plugin continue working? Anyways, that's weird.
__________________
"There is no knowledge, that is not power"
fezh is offline
3JIou-TaTapuH
BANNED
Join Date: May 2009
Old 06-16-2009 , 16:25   Re: Colored Spawn v1.2.2
Reply With Quote #42

Yes each new rounds 1 respawn is colorful but after that does'nt work.
Any way this plugin is great for classic game !
And It will be cool if U can fix it for gg and csdm (also I think it will have same problem) and make it colorful by respawns instead rounds!!!

Im Sorry For My English. Sincerly -=3JIou-TaTaPuH=-

and did u fix that glow effect if yes how come i can make it more beautiful i mean not like a on that screen shots.
3JIou-TaTapuH is offline
fezh
Veteran Member
Join Date: Dec 2008
Location: BANNED
Old 06-16-2009 , 16:30   Re: Colored Spawn v1.2.2
Reply With Quote #43

Quote:
Originally Posted by 3JIou-TaTapuH View Post
Yes each new rounds 1 respawn is colorful but after that does'nt work.
I really don't understand, since Ham_Spawn is called on every player spawn, not on every new round

Quote:
Originally Posted by 3JIou-TaTapuH View Post
Im Sorry For My English. Sincerly -=3JIou-TaTaPuH=-
Don't feel worried about your english, I spoke like you when I joined the forums. Now I only have practice
__________________
"There is no knowledge, that is not power"
fezh is offline
AntiBots
Veteran Member
Join Date: May 2008
Location: Brazil
Old 06-16-2009 , 17:56   Re: Colored Spawn v1.2.2
Reply With Quote #44

look my edited version:
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <hamsandwich>

new const PLUGIN[] = "Colored Spawn"
new const VERSION[] = "2.0"
new const AUTHOR[] = "fezh & Reymon"

new g_enabledg_spawn_color[2], g_amountg_time

public plugin_init()
{
    
register_plugin(PLUGIN,VERSION,AUTHOR)

    
RegisterHam(Ham_Spawn,"player","event_player_spawn",1)

    
g_enabled register_cvar("amx_colored_spawn","1")
    
g_spawn_color[0] = register_cvar("amx_spawn_color","255 180 0")
    
g_spawn_color[1] = register_cvar("amx_spawn_admin_color","255 255 255")
    
g_amount register_cvar("amx_color_amount","25")
    
g_time register_cvar("amx_color_time","4.0")

    
register_cvar("colored_spawn",VERSION,FCVAR_SERVER|FCVAR_SPONLY)
}

public 
event_player_spawn(id)
{
    if( 
get_pcvar_num(g_enabled) && is_user_alive(id) )
    {
        static 
colors[3], lastring[4], string[12], i
        get_pcvar_string
(g_spawn_color[is_user_admin(id)], string,11)
        
strbreak(stringlastring3string8)
        
colors[0] = clamp(str_to_num(lastring), 0255)
        
strbreak(stringlastring3string4)
        
colors[1] = clamp(str_to_num(lastring), 0255); colors[2] = clamp(str_to_num(string), 0255)
        
        if( 
colors[0] == && colors[1] == && colors[2] == )
        {
            for(
03i++)
                
colors[i] = random(256)
        }
        
        
set_user_rendering(idkRenderFxGlowShellcolors[0], colors[1], colors[2], kRenderNormal,get_pcvar_num(g_amount))
        
set_task(get_pcvar_float(g_time),"event_remove_color",id)
    }
}

public 
event_remove_color(id)
{
    if(
is_user_alive(id))
    {
        
set_user_rendering(id,kRenderFxNone,0,0,0,kRenderNormal,0)
    }

You can put random for only Admins or for only Users if you dont put any color in the cvar or 0 0 0
__________________

Last edited by AntiBots; 06-16-2009 at 18:03.
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots
vamppa
Senior Member
Join Date: Apr 2010
Location: The Netherlands
Old 05-11-2011 , 13:59   Re: Colored Spawn v1.2.2
Reply With Quote #45

Lo guys, got a problem with this plugin.

L 05/11/2011 - 16:216: [AMXX] Plugin "auradamage.amxx" failed to load: Plugin uses an unknown function (name "RegisterHam") - check your modules.ini.
L 05/11/2011 - 16:216: [AMXX] Plugin "colored_spawn.amxx" failed to load: Plugin uses an unknown function (name "RegisterHam") - check your modules.ini.

auradmage.amxx -- http://forums.alliedmods.net/showthr...82#post1467582
has got the same problem.

Module was running, Any one know whats up?
out dated function name?

Last edited by vamppa; 05-11-2011 at 14:02.
vamppa is offline
fezh
Veteran Member
Join Date: Dec 2008
Location: BANNED
Old 05-11-2011 , 22:44   Re: Colored Spawn v1.2.2
Reply With Quote #46

What is your AMXX version? It seems you don't have the Hamsandwich module or at least it is not working.
__________________
"There is no knowledge, that is not power"
fezh is offline
vamppa
Senior Member
Join Date: Apr 2010
Location: The Netherlands
Old 05-12-2011 , 07:18   Re: Colored Spawn v1.2.2
Reply With Quote #47

am running latest AMXX version, on a linux server, not sure if that makes any difference.
Ill try it on a windows server.

is it really the hamsandwhich module? cause it looks fine and running.


Are you sure these functions calls aren't outdated, or something?
maybe since HL:engine update?

Code from plugin, Namely
Quote:
RegisterHam(Ham_Spawn,"player","event_player_ spawn",1)
Quote:
#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <hamsandwich>

new const PLUGIN[] = "Colored Spawn"
new const VERSION[] = "1.2.2"
new const AUTHOR[] = "fezh"

new g_enabled, g_spawn_color, g_admin_color, g_random_color, g_amount, g_time

public plugin_init()
{
register_plugin(PLUGIN,VERSION,AUTHOR)

RegisterHam(Ham_Spawn,"player","event_player_ spawn",1)

g_enabled = register_cvar("amx_colored_spawn","1")
g_spawn_color = register_cvar("amx_spawn_color","255 180 0")
g_admin_color = register_cvar("amx_spawn_admin_color","255 255 255")
g_random_color = register_cvar("amx_random_colors","0")
g_amount = register_cvar("amx_color_amount","25")
g_time = register_cvar("amx_color_time","4.0")

register_cvar("colored_spawn",VERSION,FCVAR_S ERVER|FCVAR_SPONLY)
}

public event_player_spawn(id)
{
if(get_pcvar_num(g_enabled) && is_user_alive(id))
{
if(get_pcvar_num(g_random_color))
{
new iRed = random_num(0,255)
new iGreen = random_num(0,255)
new iBlue = random_num(0,255)

set_user_rendering(id,kRenderFxGlowShell,iRed ,iGreen,iBlue,kRenderNormal,get_pcvar_num(g_a mount))
}
else
{
if(is_user_admin(id))
{
new szColor[12], szRed[4], szGreen[4], szBlue[4]
get_pcvar_string(g_admin_color,szColor,11)
parse(szColor,szRed,3,szGreen,3,szBlue,4)

new iRed = clamp(str_to_num(szRed),0,255)
new iGreen = clamp(str_to_num(szGreen),0,255)
new iBlue = clamp(str_to_num(szBlue),0,255)

set_user_rendering(id,kRenderFxGlowShell,iRed ,iGreen,iBlue,kRenderNormal,get_pcvar_num(g_a mount))
}
else
{
new szColor[12], szRed[4], szGreen[4], szBlue[4]
get_pcvar_string(g_spawn_color,szColor,11)
parse(szColor,szRed,3,szGreen,3,szBlue,4)

new iRed = clamp(str_to_num(szRed),0,255)
new iGreen = clamp(str_to_num(szGreen),0,255)
new iBlue = clamp(str_to_num(szBlue),0,255)

set_user_rendering(id,kRenderFxGlowShell,iRed ,iGreen,iBlue,kRenderNormal,get_pcvar_num(g_a mount))
}
}
set_task(get_pcvar_float(g_time),"event_remov e_color",id)
}
}

public event_remove_color(id)
{
if(is_user_alive(id))
{
set_user_rendering(id,kRenderFxNone,0,0,0,kRe nderNormal,0)
}
}
vamppa is offline
vamppa
Senior Member
Join Date: Apr 2010
Location: The Netherlands
Old 05-12-2011 , 08:15   Re: Colored Spawn v1.2.2
Reply With Quote #48

I've tested it on windows server.
latest AMXX, hamsandwhich running.
plugin bad load, with same error.

any help to resolving this issue would be greatly appreciated.
I mean it should be possible to have this plugin working again right?
vamppa is offline
zippel
Member
Join Date: Mar 2011
Location: RF
Old 05-22-2011 , 07:41   Re: Colored Spawn v1.2.2
Reply With Quote #49

No problem with this pl - check your modx version and modules, and icl too
zippel is offline
Send a message via ICQ to zippel Send a message via Skype™ to zippel
riddick335
New Member
Join Date: Mar 2014
Old 03-06-2014 , 12:24   Re: Colored Spawn v1.2.2
Reply With Quote #50

Man, im sorry for asking this. First, my english is not very good. But I nead hellp. Please, im working for plugin amxx. Plugin is something like this: when you killed an enemy you recive 20 hp or ssomething. every killed enemy bring you a 20 hp. Wolud you help me. Im new to this and don't know anithing Post here or please send me e-mail in [email protected] I don't know way Im asking you but, please help me with a download link and description. Tnx a lot.
riddick335 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 16:58.


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