Raised This Month: $ Target: $400
 0% 

Slot reservation ON/OFF


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Trethy
Member
Join Date: Jun 2011
Old 07-05-2011 , 18:04   Slot reservation ON/OFF
Reply With Quote #1

Can you make a plug for me? <3
When an admin is on the server, so is "Slot reservation" deactivated.
And when the admin is NOT on the server, then activate "Slot reservation" again? <<
Or can I find such a plugin?

Because I hate myself that when you get blocked from the server due to slot reservation ..
__________________
Im new at coding..
And i need things for my jailbreak server

But no one help me..
Trethy is offline
jeremyjohn
BANNED
Join Date: Jun 2009
Location: Malaysia
Old 07-19-2011 , 06:42   Re: Slot reservation ON/OFF
Reply With Quote #2

Bump, i'm looking for this also... anyone?
jeremyjohn is offline
Send a message via MSN to jeremyjohn
Old 07-19-2011, 18:45
neoRT
This message has been deleted by Exolent[jNr]. Reason: Don't bump until 2 weeks have passed since last post.
gamer99
Senior Member
Join Date: Jul 2011
Old 07-20-2011 , 04:31   Re: Slot reservation ON/OFF
Reply With Quote #3

Test it first because i have written it with my mobile and its untested .

Code:
#include <amxmodx> 
#include <amxmisc>

#define PLUGIN  "Admin slot extra" 
#define VERSION "1.0" 
#define AUTHOR "Gamer99"

new g_MaxPlayers
new bool:g_dAdminStatus

public plugin_init() 
{ 
    register_plugin( PLUGIN, VERSION, AUTHOR )
    g_MaxPlayers = get_maxplayers()
} 

public client_putinserver(id)
{
    if(access(id, ADMIN_BAN))
    {
        server_cmd("amx_reservation 0")
        g_dAdminStatus=true
    }
}

public client_disconnect(id)
{
    Task_CheckAdminCount()
}

public Task_CheckAdminCount()
{
    new admin_count=0
    for(new i=1;i<=g_MaxPlayers;i++)
    {
            if(access(i, ADMIN_BAN)) 
            {
                admin_count++
            }
    }
    if(admin_count==0 && g_dAdminStatus)
    {
        server_cmd("amx_reservation 1")
        g_dAdminStatus=false
    }    
}

Last edited by gamer99; 07-20-2011 at 04:53.
gamer99 is offline
deadman909
Veteran Member
Join Date: Oct 2008
Old 07-20-2011 , 04:55   Re: Slot reservation ON/OFF
Reply With Quote #4

Why dont you just go into your amxx.cfg file and change this

// Amount of slots to reserve.
//
// Default value: 0
amx_reservation 0

Change 0 to however Slots you want to reserve so admins can enter. Also your admins must have the B access flag

b - reservation (can join on reserved slots)
__________________

deadman909 is offline
Send a message via MSN to deadman909 Send a message via Yahoo to deadman909
gamer99
Senior Member
Join Date: Jul 2011
Old 07-20-2011 , 05:05   Re: Slot reservation ON/OFF
Reply With Quote #5

Quote:
Originally Posted by deadman909 View Post
Why dont you just go into your amxx.cfg file and change this

// Amount of slots to reserve.
//
// Default value: 0
amx_reservation 0

Change 0 to however Slots you want to reserve so admins can enter. Also your admins must have the B access flag

b - reservation (can join on reserved slots)
i think the problem he have is he is the only admin ... Now he want slot for him only ... so when he is in the server he don't need to reserve a slot .

ON the other hand he also dnt like changing the slot reservation settings again and again
gamer99 is offline
neoRT
Senior Member
Join Date: May 2011
Old 07-20-2011 , 08:52   Re: Slot reservation ON/OFF
Reply With Quote #6

yes, this plugin is very usefull, GJ gamer99. after the admin enters other players can join all slots. I will test this
edit: This plugin works with adminslot.amxx no? from the code i think that adminslot.amxx shouldn`t be removed from plugins.ini. Am I right?

Last edited by neoRT; 07-20-2011 at 11:01.
neoRT is offline
gamer99
Senior Member
Join Date: Jul 2011
Old 07-21-2011 , 02:23   Re: Slot reservation ON/OFF
Reply With Quote #7

Quote:
Originally Posted by neoRT View Post
yes, this plugin is very usefull, GJ gamer99. after the admin enters other players can join all slots. I will test this
edit: This plugin works with adminslot.amxx no? from the code i think that adminslot.amxx shouldn`t be removed from plugins.ini. Am I right?
Yet I just used the existing adminslot . Because in that way its easier .
It you remove adminshot it won't work .
gamer99 is offline
Shadymn
Senior Member
Join Date: Sep 2010
Old 07-22-2011 , 06:03   Re: Slot reservation ON/OFF
Reply With Quote #8

use taskmanager plugin
Shadymn is offline
gamer99
Senior Member
Join Date: Jul 2011
Old 07-22-2011 , 07:04   Re: Slot reservation ON/OFF
Reply With Quote #9

Quote:
Originally Posted by Shadymn View Post
use taskmanager plugin

And how will that help ? do you want to tuen reservation on at a praticular time ?
gamer99 is offline
Shadymn
Senior Member
Join Date: Sep 2010
Old 07-23-2011 , 10:17   Re: Slot reservation ON/OFF
Reply With Quote #10

http://forums.alliedmods.net/showthread.php?t=161095 maybe you need this
Shadymn 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 00:29.


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