Raised This Month: $ Target: $400
 0% 

Subplugin Submission [T] List of Modified + Requested Plugins


Post New Thread Reply   
 
Thread Tools Display Modes
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 04-25-2015 , 00:15   Re: [ZP] List of Modified + Requested Plugin (3/1/2015)
Reply With Quote #751

And1.S, just try below code:
Code:
#include <amxmodx>
#include <hamsandwich>
#include <amxmisc>

#define PLUGIN "Free VIP"
#define VERSION "1.0"
#define AUTHOR "zmd94"

// Bool
new bool:g_bFreeVIP[33]

// Variables
new g_iTimeFrom, g_iTimeTo

public plugin_init()
{
    register_plugin(PLUGIN, VERSION, AUTHOR)
    
    RegisterHam(Ham_Spawn, "player", "fw_PlayerSpawnPost", 1)
    
    g_iTimeFrom = register_cvar("free_VIP_time_from", "22")
    g_iTimeTo = register_cvar("free_VIP_time_to", "10")
}

public client_disconnect(id)
{
    g_bFreeVIP[id] = false
}

public fw_PlayerSpawnPost(id)
{
    new szTime[3]
    get_time("%H",szTime,2)
    
    new TimeFrom = get_pcvar_num(g_iTimeFrom)
    new TimeTo = get_pcvar_num(g_iTimeTo)
    
    new iTime = str_to_num(szTime)
    if( TimeFrom <= iTime <= 24 )
    {
        if(!is_user_admin(id))
        {
            remove_user_flags(id, ADMIN_USER);
            set_user_flags(id, ADMIN_LEVEL_H);
            
            set_hudmessage(255, 255, 255, -1.0, 0.87, 0, 0.0, 12.0, 0.1, 0.2, -1)
            show_hudmessage(id, "Free VIP from %d to %d", TimeFrom, TimeTo)
            
            g_bFreeVIP[id] = true
        }
    }
    else if( 00 <= iTime <= TimeTo )
    {
        if(!is_user_admin(id))
        {
            remove_user_flags(id, ADMIN_USER)
            set_user_flags(id, ADMIN_LEVEL_H)
            
            set_hudmessage(255, 255, 255, -1.0, 0.87, 0, 0.0, 12.0, 0.1, 0.2, -1)
            show_hudmessage(id, "Free VIP from %d to %d", TimeFrom, TimeTo)
            
            g_bFreeVIP[id] = true
        }
    }
    else if(g_bFreeVIP[id])
    {
        remove_user_flags(id, ADMIN_LEVEL_H)
        set_user_flags(id, ADMIN_USER)
        
        g_bFreeVIP[id] = false
    }
    else
    {
        if(get_user_flags(id) & ADMIN_LEVEL_H)
        {
            client_print(id, print_chat, "Free VIP to all players from 2200 to 1200!")
        }
    }
}

Last edited by zmd94; 04-25-2015 at 10:44.
zmd94 is offline
And1.S
Member
Join Date: Oct 2013
Old 04-25-2015 , 11:02   Re: [ZP] List of Modified + Requested Plugin (3/1/2015)
Reply With Quote #752

hey but speed and gravity for vip
doesn't work
i compiled very well
in server amx_plugins vipspeedgravity.amxx bad load
see .
Code:
#include <amxmodx>
#include <hamsandwich>
#include <cs_core>

// Configure flag
#define ADMIN_FLAG ADMIN_LEVEL_H

// Variables
new g_iVIPSpeed, g_iVIPGravity

public plugin_init() 
{
    register_plugin("VIP Features", "0.1", "zmd94")
    
    RegisterHam(Ham_Spawn, "player", "fw_PlayerRespawn")
    
    g_iVIPSpeed = register_cvar("cl_VIP_speed", "275") // Increase player speed by X amount
    g_iVIPGravity = register_cvar("cl_VIP_gravity", "0.25") // Set player gravity
}

public fw_PlayerRespawn(id)
{
    if(is_user_alive(id) && get_user_flags(id) & ADMIN_FLAG)
    {
        // As cs_reward is being reset at every respawn. ;)
        set_task(2.0, "VIPFeatures", id)
    }
}  

public VIPFeatures(id)
{
    cs_speed_reward(id, 1, get_pcvar_num(g_iVIPSpeed), 0, 0.0)
    cs_gravity_reward(id, 1, get_pcvar_float(g_iVIPGravity), 0, 0.0)
}
And1.S is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 04-25-2015 , 20:18   Re: [ZP] List of Modified + Requested Plugin (3/1/2015)
Reply With Quote #753

May you show the errors that you get?
zmd94 is offline
LEO33
Member
Join Date: Jan 2014
Old 04-25-2015 , 22:09   Re: [ZP] List of Modified + Requested Plugin (3/1/2015)
Reply With Quote #754

Please can you convert this plugin for Zombie Plague 5?
LEO33 is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 04-25-2015 , 23:31   Re: [ZP] List of Modified + Requested Plugin (3/1/2015)
Reply With Quote #755

Leo33, just use zp_extra_plasmagun.sma file.
zmd94 is offline
And1.S
Member
Join Date: Oct 2013
Old 04-26-2015 , 05:46   Re: [ZP] List of Modified + Requested Plugin (3/1/2015)
Reply With Quote #756

Quote:
Originally Posted by zmd94 View Post
May you show the errors that you get?
nothing . no errors. no bug
And1.S is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 04-26-2015 , 11:10   Re: [ZP] List of Modified + Requested Plugin (3/1/2015)
Reply With Quote #757

It is weird as I have no problem with code:
Code:
 [ 22] [ZP] Person View        1.0         zmd94             cc_15.amxx       debug    
 [ 23] [API] Rewards           6.0         zmd94             cs_reward.amxx   debug    
 [ 24] [API] CS Core           6.0         zmd94             cs_core.amxx     debug    
 [ 25] VIP Features            0.1         zmd94             cc_18.amxx       running  
25 plugins, 25 running
Just try to edit below:
Code:
set_task(2.0, "VIPFeatures", id)
-->
Code:
set_task(7.0, "VIPFeatures", id)
zmd94 is offline
LEO33
Member
Join Date: Jan 2014
Old 04-26-2015 , 14:30   Re: [ZP] List of Modified + Requested Plugin (3/1/2015)
Reply With Quote #758

Quote:
Originally Posted by zmd94 View Post
Leo33, just use zp_extra_plasmagun.sma file.
I used it, but the weapon only stays for 1 round, and the weapon zoom (as described) doesn't work.
LEO33 is offline
SergiCruz
Senior Member
Join Date: Mar 2012
Location: Andalucía, España
Old 04-26-2015 , 14:52   Re: [ZP] List of Modified + Requested Plugin (3/1/2015)
Reply With Quote #759

Hi! I'm sorry for bothering you. I'm really looking forward to finding a plugin to prevent bots fighting each others before the round starts. This plugin by yokomo (https://forums.alliedmods.net/showth...65531?t=165531) does not work with metamod podbots, and this other one (https://forums.alliedmods.net/showth...&highlight=bot) just blocks the sound and the muzzleflash. I want to have friendly fire enabled, so bots are a big problem at round start.
Do you know how to truly stop them?
__________________
PodBot waypointer. Feel free to ask for waypoints for zm_ maps.
SergiCruz is offline
Send a message via MSN to SergiCruz
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 04-26-2015 , 20:17   Re: [ZP] List of Modified + Requested Plugin (3/1/2015)
Reply With Quote #760

Leo33, just upload zp_extra_plasmagun.sma file here.

SergiCruz, maybe we can strip all bots weapon then freeze them at the round start. Then, when custom mode is started, we just need to unfreeze all of the bots again.

Or just comment in that thread (https://forums.alliedmods.net/showthread.php?t=165531) about your problem. So, that wbyokomo can fix it.

I more prefer option 2. ;)

Last edited by zmd94; 04-26-2015 at 20:17.
zmd94 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 18:41.


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