SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 28/05/2014, 07:51 AM   #1
Ciandlah
Huge Clucker
 
Ciandlah's Avatar
 
Join Date: Mar 2013
Location: Pawno
Posts: 248
Reputation: 34
Default No Rcon - Server Locking System



Have you ever wanted to lock your server without having to restart the server because you changed your password, or because this or that happened so you have to go out of your server just to lock it again. Well now you don't, I have come up with a very simple way to lock a server and refuse players to connect while still being live and allowing other players to continue playing.

For Example:

Say you have 50 players in your server and you are experiencing some lag, you can just type /lockserver to completely refuse connections upon questing classes before spawning and then it automatically kicks them.

Please take under the valor that I have not tested this code out yet, it was just a simple Idea I have that might come in handy to all of you.

DOWNLOAD LINKS:
*Pastebin: http://pastebin.com/RNRjsNUa
__________________


Founder @ xApplications 2006 - present
C++, CSS, JAVA, HTML, Python, Mysql, Assembly
Founder @ CypressGaming Network Discord Server
Ciandlah is offline   Reply With Quote
Old 28/05/2014, 08:13 AM   #2
Parallex
Gangsta
 
Parallex's Avatar
 
Join Date: Mar 2014
Posts: 560
Reputation: 64
Default Re: No Rcon - Server Locking System

We can just do /rcon password 0 to reset it..
Parallex is offline   Reply With Quote
Old 28/05/2014, 09:02 AM   #3
rymax99
Gangsta
 
Join Date: Jul 2012
Location: Florida, United States
Posts: 724
Reputation: 124
Default Re: No Rcon - Server Locking System

Better off to just use the RCON functions, you shouldn't even set the player count to higher than your server can handle.
rymax99 is offline   Reply With Quote
Old 29/05/2014, 02:16 AM   #4
Ciandlah
Huge Clucker
 
Ciandlah's Avatar
 
Join Date: Mar 2013
Location: Pawno
Posts: 248
Reputation: 34
Default Re: No Rcon - Server Locking System

Quote:
Originally Posted by rymax99 View Post
Better off to just use the RCON functions, you shouldn't even set the player count to higher than your server can handle.
Well I'm sorry I dont please you, Oh Wait I dont care

This script was made as stated for people who cant be bothered to use rcon or servers who have turned rcon off

If you dont want to use rcon, turn it off and then use this function.
__________________


Founder @ xApplications 2006 - present
C++, CSS, JAVA, HTML, Python, Mysql, Assembly
Founder @ CypressGaming Network Discord Server
Ciandlah is offline   Reply With Quote
Old 29/05/2014, 03:17 AM   #5
nickdodd25
Huge Clucker
 
nickdodd25's Avatar
 
Join Date: Jan 2012
Location: Unknown
Posts: 443
Reputation: 109
Default Re: No Rcon - Server Locking System

Quote:
Originally Posted by Ciandlah View Post
Well I'm sorry I dont please you, Oh Wait I dont care

This script was made as stated for people who cant be bothered to use rcon or servers who have turned rcon off

If you dont want to use rcon, turn it off and then use this function.
You still need to be rcon admin to even run the command. Why not just use the regular rcon commands? They still work in-game even if you have rcon set to 0 in the config.

Also i wouldn't recommend to spawn the player under onplayerrequestclass as some people don't want the player to spawn right away. Should look into onplayerrequestspawn and just return 0 if the server is locked and if it isn't then do nothing.
__________________
Nick
nickdodd25 is offline   Reply With Quote
Old 29/05/2014, 03:21 AM   #6
Ciandlah
Huge Clucker
 
Ciandlah's Avatar
 
Join Date: Mar 2013
Location: Pawno
Posts: 248
Reputation: 34
Default Re: No Rcon - Server Locking System

Quote:
Originally Posted by nickdodd25 View Post
You still need to be rcon admin to even run the command. Why not just use the regular rcon commands? They still work in-game even if you have rcon set to 0 in the config.

Also i wouldn't recommend to spawn the player under onplayerrequestclass as some people don't want the player to spawn right away. Should look into onplayerrequestspawn and just return 0 if the server is locked and if it isn't then do nothing.
First, IsPlayerAdmin(playerid) is just there for you themselves to actually add there own pAdmin Variable.

Second, This is a base code however there will be more secure updates of this FS. You post will be added into the next update for the Idea and Credits also given in the code for you giving the idea.
__________________


Founder @ xApplications 2006 - present
C++, CSS, JAVA, HTML, Python, Mysql, Assembly
Founder @ CypressGaming Network Discord Server
Ciandlah is offline   Reply With Quote
Old 29/05/2014, 04:05 AM   #7
KayJ
Gangsta
 
KayJ's Avatar
 
Join Date: Apr 2014
Posts: 679
Reputation: 64
Post Re: No Rcon - Server Locking System

Nice
__________________
SA:MP Wikipedia Profile

SA:MP Github Profile

Quote:
Originally Posted by ****** View Post
This is an extremely complex operation, revealed only to the best mathematicians in the world. It is called "multiplication"....
Quote:
Originally Posted by KayJ View Post
Go mobile or this will die. Many developers see and many don't but there will be heavy drop of playerbase in samp in next 5 years as people are going mobile and use pc mostly for next gen games not this decade old game.
KayJ is offline   Reply With Quote
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Locking server with NON-RCON COMMAND maximthepain Scripting Help 4 30/11/2013 08:10 PM
Locking system possible flaw Deal-or-die Scripting Help 3 13/09/2012 06:05 PM
locking system slymatt Help Archive 4 28/07/2011 12:42 AM
Locking System Jason_Larson Help Archive 12 09/09/2009 06:08 PM
Locking the RCON Screen harrold Help Archive 7 08/03/2009 07:12 PM


All times are GMT. The time now is 11:48 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.