Raised This Month: $ Target: $400
 0% 

[REQ] Looking for someone to make this plugin. Will pay.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mark.uG
AlliedModders Donor
Join Date: Oct 2014
Old 01-06-2016 , 14:16   [REQ] Looking for someone to make this plugin. Will pay.
Reply With Quote #1

I want it to be this
https://forums.alliedmods.net/showth...=32508?p=32508

and this
https://forums.alliedmods.net/showth...91829?p=191829

combined into 1 plugin or can be 2 i guess.
But updated to 1.8.3-4978

The ones i have found dont seem to work with the sky and the lights are like a strobe light.

Can someone help me with this.

Mark
Mark.uG is offline
Depresie
Veteran Member
Join Date: Nov 2013
Old 01-06-2016 , 16:05   Re: [REQ] Looking for someone to make this plugin. Will pay.
Reply With Quote #2

well, can you tell me what is the problem more exactly?
we cannot help you if you dont offer enough details...
__________________
Depresie is offline
Mark.uG
AlliedModders Donor
Join Date: Oct 2014
Old 01-06-2016 , 18:15   Re: [REQ] Looking for someone to make this plugin. Will pay.
Reply With Quote #3

Quote:
Originally Posted by Depresie View Post
well, can you tell me what is the problem more exactly?
we cannot help you if you dont offer enough details...
The amx_lights plugin the screen looks like a strobe light and you move very slow. If you do in console amx_lights r its normal again but change the map its back to the strobe affect.

In amxcfg i have
amx_lights on
amx_lights r

The only other place that amx_lights r is -- is in the vault which is created by the plugin via the amxcfg cvar.

The sky plugin does not change the sky. Its running just nothing is happening.

All this worked on 1.8.2 just not on 1.8.3 so im thinking its not up todate with 1.8.3 cause problems.

Mark

Last edited by Mark.uG; 01-06-2016 at 18:16. Reason: Added Text
Mark.uG is offline
Depresie
Veteran Member
Join Date: Nov 2013
Old 01-06-2016 , 18:35   Re: [REQ] Looking for someone to make this plugin. Will pay.
Reply With Quote #4

Try this code, tell me if it compiles ( i have cut it from the lighting system i created for my zp server )

PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <fakemeta>


// Lighting
new cvar_lighting

public plugin_init() 
{
    
register_plugin("[ZP] New Lighting System""1.0""Depresie")
    
    
// Disable sky lighting so it doesn't mess with our custom lighting
    
set_cvar_num("sv_skycolor_r"0)
    
set_cvar_num("sv_skycolor_g"0)
    
set_cvar_num("sv_skycolor_b"0)
    
    
cvar_lighting register_cvar("amx_lighting""j")
    
}

public 
plugin_cfg()
{
    
set_task(3.0"lighting_task"___"b")
}

public 
lighting_task()
{
    new 
lighting[2]
    
get_pcvar_string(cvar_lightinglightingcharsmax(lighting))
    
    
// Lighting disabled? ["0"]
    
if (lighting[0] == '0')
        return;

    new 
Players[32], Numid
    get_players
(PlayersNum"ach")
    for(new 
0Numi++)
    {
        
id Players[i]
        
        
set_player_light(idlighting
    }
}  

public 
set_player_light(id, const LightStyle[])
{
    if(
is_user_connected(id))
    {

        
message_begin(MSG_ONE_UNRELIABLESVC_LIGHTSTYLE_id)
        
write_byte(0)
        
write_string(LightStyle)
        
message_end()
    }
    

__________________
Depresie is offline
Mark.uG
AlliedModders Donor
Join Date: Oct 2014
Old 01-06-2016 , 20:17   Re: [REQ] Looking for someone to make this plugin. Will pay.
Reply With Quote #5

Quote:
Originally Posted by Depresie View Post
Try this code, tell me if it compiles ( i have cut it from the lighting system i created for my zp server )

PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <fakemeta>


// Lighting
new cvar_lighting

public plugin_init() 
{
    
register_plugin("[ZP] New Lighting System""1.0""Depresie")
    
    
// Disable sky lighting so it doesn't mess with our custom lighting
    
set_cvar_num("sv_skycolor_r"0)
    
set_cvar_num("sv_skycolor_g"0)
    
set_cvar_num("sv_skycolor_b"0)
    
    
cvar_lighting register_cvar("amx_lighting""j")
    
}

public 
plugin_cfg()
{
    
set_task(3.0"lighting_task"___"b")
}

public 
lighting_task()
{
    new 
lighting[2]
    
get_pcvar_string(cvar_lightinglightingcharsmax(lighting))
    
    
// Lighting disabled? ["0"]
    
if (lighting[0] == '0')
        return;

    new 
Players[32], Numid
    get_players
(PlayersNum"ach")
    for(new 
0Numi++)
    {
        
id Players[i]
        
        
set_player_light(idlighting
    }
}  

public 
set_player_light(id, const LightStyle[])
{
    if(
is_user_connected(id))
    {

        
message_begin(MSG_ONE_UNRELIABLESVC_LIGHTSTYLE_id)
        
write_byte(0)
        
write_string(LightStyle)
        
message_end()
    }
    


Yeah the lights work perfect!

Is the sky supposed to change or are we just testing the lights right now?

Also could you make it to be able to change the lights level via console like this one?

// Set Light Level
//====================
public admin_lights(id,level,cid)
{
if (!cmd_access(id,level,cid,2))
return PLUGIN_HANDLED

new cmdarg[32]
read_argv(1,cmdarg,31)

if (equal(cmdarg,"off")||equal(cmdarg,"OFF")){
set_lights("#OFF")
set_vaultdata("amx_lights","#OFF")
console_print(id,"[AMXX] Light Returned To Normal.")
}
else{
set_lights(cmdarg)
set_vaultdata("amx_lights",cmdarg)
console_print(id,"[AMXX] Light Change Successful.")
}
return PLUGIN_HANDLED
}

Last edited by Mark.uG; 01-06-2016 at 20:24. Reason: Text
Mark.uG is offline
Depresie
Veteran Member
Join Date: Nov 2013
Old 01-06-2016 , 20:46   Re: [REQ] Looking for someone to make this plugin. Will pay.
Reply With Quote #6

i already did, amx_lighting from a to z, the admin has to have cvar flag to be able to

in case you dont want your sky lighting to be changed to 0, just delete these, also, delete #include <hamsandwich> i forgot to

PHP Code:
    // Disable sky lighting so it doesn't mess with our custom lighting
    
set_cvar_num("sv_skycolor_r"0)
    
set_cvar_num("sv_skycolor_g"0)
    
set_cvar_num("sv_skycolor_b"0
__________________

Last edited by Depresie; 01-06-2016 at 20:48.
Depresie is offline
Mark.uG
AlliedModders Donor
Join Date: Oct 2014
Old 01-06-2016 , 20:51   Re: [REQ] Looking for someone to make this plugin. Will pay.
Reply With Quote #7

Quote:
Originally Posted by Depresie View Post
i already did, amx_lighting from a to z

in case you dont want your sky lighting to be changed to 0, just delete these, also, delete #include <hamsandwich> i forgot to

PHP Code:
    // Disable sky lighting so it doesn't mess with our custom lighting
    
set_cvar_num("sv_skycolor_r"0)
    
set_cvar_num("sv_skycolor_g"0)
    
set_cvar_num("sv_skycolor_b"0

Ok in console i did

amx_lighting a to make it pitch black and did not do nothing.

Also with the sky i want to change the image of it not the light of it.
Mark.uG is offline
Depresie
Veteran Member
Join Date: Nov 2013
Old 01-06-2016 , 20:56   Re: [REQ] Looking for someone to make this plugin. Will pay.
Reply With Quote #8

it didnt work, because it is a cvar, not a command, this is how you should write it console to change the light, also, write that cvar in amxx.cfg with the desired value

in case you want pitch black, do not delete what i wrote above, or else players will glow in the darkness

Code:
amx_cvar amx_lighting a
about the sky texture, just google this
Code:
 custom sky texture site:alliedmods.net
__________________

Last edited by Depresie; 01-06-2016 at 20:58.
Depresie is offline
Mark.uG
AlliedModders Donor
Join Date: Oct 2014
Old 01-06-2016 , 21:07   Re: [REQ] Looking for someone to make this plugin. Will pay.
Reply With Quote #9

Quote:
Originally Posted by Depresie View Post
it didnt work, because it is a cvar, not a command, this is how you should write it console to change the light, also, write that cvar in amxx.cfg with the desired value

in case you want pitch black, do not delete what i wrote above, or else players will glow in the darkness

Code:
amx_cvar amx_lighting a
about the sky texture, just google this
Code:
 custom sky texture site:alliedmods.net

Nice works well where can i send you some $$
Mark.uG is offline
Depresie
Veteran Member
Join Date: Nov 2013
Old 01-06-2016 , 21:15   Re: [REQ] Looking for someone to make this plugin. Will pay.
Reply With Quote #10

im fine keep them or if you want you can donate to the community
__________________
Depresie 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 19:46.


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