Raised This Month: $218 Target: $400
 54% 

Showing results 1 to 25 of 500
Search took 0.13 seconds.
Search: Posts Made By: Bugsy
Forum: Suggestions / Requests 02-23-2020, 12:18
Replies: 17
Views: 329
Posted By Bugsy
Re: [REQ] Menu For Steam id

OK so

Remove

new const szValues[][] =
{
"6:0:40857791",
"6:0:1543600141",
"0:0:881715857"
};
Forum: Suggestions / Requests 02-23-2020, 00:16
Replies: 17
Views: 329
Posted By Bugsy
Re: [REQ] Menu For Steam id

Remove

new const szValues[][] =
{
"6:0:40857791",
"6:0:1543600141",
"0:0:881715857"
};
Forum: Suggestions / Requests 02-22-2020, 19:01
Replies: 17
Views: 329
Posted By Bugsy
Re: [REQ] Menu For Steam id

Agree, Trie or vault would make it easier.

nVault



#include <amxmodx>
#include <nvault>

#define MAX_PLAYERS 32
Forum: Scripting Help 02-22-2020, 11:59
Replies: 4
Views: 196
Posted By Bugsy
Re: Enable buy for both teams on maps w/o func_buyzone or info_map_parameters

What about disabling the default buy zones and create a func_buyzone at each spawn?
Forum: Scripting Help 02-21-2020, 20:23
Replies: 4
Views: 196
Posted By Bugsy
Forum: Suggestions / Requests 02-20-2020, 20:07
Replies: 20
Views: 769
Posted By Bugsy
Re: Reserve slot for disconnected player

Made a slight update to not check for player slot if there are no slots in use.
Forum: Scripting Help 02-20-2020, 08:37
Replies: 1
Views: 123
Posted By Bugsy
Re: .............

Stop changing your posts to nothing when you figure out your issue.
Forum: Suggestions / Requests 02-15-2020, 15:03
Replies: 20
Views: 769
Posted By Bugsy
Re: Reserve slot for disconnected player

Ok.. try this version. It will not work properly with bots since they all share the same authid.


#include <amxmodx>

#define MAX_PLAYERS 32

const SLOT_COUNT = 5;
const SLOT_NOT_FOUND = -1;
Forum: Suggestions / Requests 02-14-2020, 20:11
Replies: 20
Views: 769
Posted By Bugsy
Re: Reserve slot for disconnected player

Take make sure I understand correctly, assume the below:

Max players = 32
Players on the server = 6 (including me)

If I disconnect, you want it to not allow anyone else to connect except me,...
Forum: Suggestions / Requests 02-14-2020, 18:26
Replies: 20
Views: 769
Posted By Bugsy
Re: Reserve slot for disconnected player

It's only going to prevent others from connecting if current player count + actively reserved slots >= max players. Isn't this what you'd want?
Forum: Scripting Help 02-14-2020, 08:48
Replies: 18
Views: 363
Posted By Bugsy
Re: For help

For plugins this large please save as a .sma file and attach it to the thread. Or at a minimum, use php tags around the code.
Forum: Suggestions / Requests 02-13-2020, 18:53
Replies: 20
Views: 769
Posted By Bugsy
Re: Reserve slot for disconnected player

You have to provide some details. I was getting weird behavior testing with bots since I think they reconnect sooner than the slot is created for a disconnecting player. Let me know what happens so I...
Forum: Suggestions / Requests 02-13-2020, 00:27
Replies: 20
Views: 769
Posted By Bugsy
Re: Reserve slot for disconnected player

Added this condition to client_authorized.


else if ( iSlotID != -1 )
{
g_siSlots[ iSlotID ][ AuthID ][ 0 ] = EOS;
g_siSlots[ iSlotID ][ DisconnectTime ] = 0;
...
Forum: Suggestions / Requests 02-12-2020, 23:52
Replies: 20
Views: 769
Posted By Bugsy
Re: Reserve slot for disconnected player

All of those bullets are making my head hurt. I give you props for putting that much thought into it.

But the fact that the slots will be freed every time a player connects and disconnects, you...
Forum: Suggestions / Requests 02-12-2020, 23:09
Replies: 20
Views: 769
Posted By Bugsy
Re: Reserve slot for disconnected player

It will clear his slot since his slot id will return a non -1 value on connect and subsequently clear it. Also, all slots are pruned on every player connect and disconnect so it should not ever...
Forum: Suggestions / Requests 02-12-2020, 21:05
Replies: 20
Views: 769
Posted By Bugsy
Re: Reserve slot for disconnected player

Not tested, and reserved slots are lost at map change. Set SLOT_COUNT as needed.


#include <amxmodx>

#define MAX_PLAYERS 32

const SLOT_COUNT = 5;

enum SlotInfo
Forum: Scripting Help 02-12-2020, 10:48
Replies: 10
Views: 193
Posted By Bugsy
Re: prefix

What question do you have for doing this? Or is this a request for someone to do it for you?
Forum: Scripting Help 02-11-2020, 21:22
Replies: 10
Views: 193
Posted By Bugsy
Re: prefix

Why don't you send the chat line to ColorChat() with the prefix?
Forum: Scripting Help 02-10-2020, 20:23
Replies: 4
Views: 269
Posted By Bugsy
Re: get_array_byref?

Here's an example setting string and an array


#include <amxmodx>

public plugin_init()
{
register_plugin( "String/Array in Dynamic Natives" , "0.1" , "bugsy" );
}
Forum: Scripting Help 02-10-2020, 18:56
Replies: 4
Views: 269
Posted By Bugsy
Re: get_array_byref?

Can you show an example of what you're trying to accomplish?
Forum: Scripting Help 02-09-2020, 22:34
Replies: 8
Views: 437
Posted By Bugsy
Re: Remove hours

https://forums.alliedmods.net/showthread.php?t=320027
Forum: Scripting Help 02-08-2020, 17:19
Replies: 8
Views: 437
Posted By Bugsy
Re: Remove hours

You need to add a variable, or DATA_REMOVED in your enum, to store the players total reduction time, as I have in my code. Be sure to set this to 0 when needed as I have in my code

Then replace
...
Forum: Scripting Help 02-07-2020, 18:39
Replies: 11
Views: 322
Posted By Bugsy
Re: Plaflag board

My code above is fixed.
Forum: Scripting Help 02-07-2020, 12:34
Replies: 11
Views: 322
Posted By Bugsy
Re: Plaflag board

Not necessary to use a switch when you can pass team directly to the array as I did.
Forum: Scripting Help 02-07-2020, 11:13
Replies: 11
Views: 322
Posted By Bugsy
Re: Plaflag board

I didn't test compile since I'm on my phone. Do you get the same warning when compiling the revised code? If so I'll take a look later when I get home.
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT -4. The time now is 11:01.


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