Raised This Month: $32 Target: $400
 8% 

Allow players join only from database


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
4ever16
Veteran Member
Join Date: Apr 2015
Old 01-14-2020 , 20:16   Allow players join only from database
Reply With Quote #1

Im curently making a gather script for a website.
I know how to make the web part but not amxx plugin.

So i would need a plugin and suggestions also how to do a good gather function.

The plugin which i need. Needs to do this stuff.

- Read from database called "terrorist".
- Allow those players by steam id to only join terrorist team.
Same thing for ct.

Ok so i also need suggestions.

Lets say a player disconnects from server. What function should i then need?

Wait 3 minutes before anyone else can join?
Wait 3 minutes before removing him from database?
Remove everyone from database after the match end?
What more i think im missing something.

Last edited by 4ever16; 01-14-2020 at 20:19.
4ever16 is offline
4ever16
Veteran Member
Join Date: Apr 2015
Old 02-01-2020 , 16:18   Re: Allow players join only from database
Reply With Quote #2

BUMP!
4ever16 is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 02-02-2020 , 12:23   Re: Allow players join only from database
Reply With Quote #3

Create a players table. Add players to the table using steam ID and which team they are allowed to pick:

STEAM ID | TEAM_ID
STEAM:0:12345 1

On client authorized:
- SELECT * FROM tblPlayers

On query result:
- If ( TEAM_ID == CS_TEAM_T ) then allow T team selection only
- Same logic for CT

I would use nvault & possibly nvault utility for the disconnect logic..I don't fully understand what you're trying to do though:
- On disconnect, write a record
- Prune all records from vault every 3 minutes and at round end
__________________
Bugsy is online now
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 20:26.


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