SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 23/11/2019, 04:36 PM   #1
Mobtiesgangsa
Big Clucker
 
Mobtiesgangsa's Avatar
 
Join Date: Oct 2016
Location: The Strip
Posts: 147
Reputation: 16
Default posibility disabling remote commands

is there a possible way into disabling /rcon login with string checks?
Mobtiesgangsa is offline   Reply With Quote
Old 23/11/2019, 05:38 PM   #2
Kwarde
High-roller
 
Kwarde's Avatar
 
Join Date: Nov 2009
Location: The Netherlands
Posts: 2,516
Reputation: 1635
Default Re: posibility disabling remote commands

Use OnRconLoginAttempt to check if someone tries to login (both successfull or fail). This only returns the IP. You can loop through online players and kick someone with the same ip[] as in OnRconLoginAttempt. (So if there is user PlayerA and PlayerB with both IP 127.0.0.1, you'd have to kick them both).

NOTE:
To disable remote rcon set 'rcon' in server.cfg to 0. To change this during runtime, use RCON command 'rcon 0' to disable it. (and 'rcon 1' to enable it)
__________________
Do not click on this URL -It is secret information
RIP Slayer 1981-2019 \m/

Last edited by Kwarde; 23/11/2019 at 06:23 PM.
Kwarde is offline   Reply With Quote
Old 23/11/2019, 07:08 PM   #3
Mobtiesgangsa
Big Clucker
 
Mobtiesgangsa's Avatar
 
Join Date: Oct 2016
Location: The Strip
Posts: 147
Reputation: 16
Default Re: posibility disabling remote commands

nah you didnt get the point string check did he typed /rcon login something so it doesnt send the text SERVER: bla bla bla attempting might get you banned do you know what im looking for?
Mobtiesgangsa 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
Disabling commands. ivndosos Scripting Help 12 03/02/2018 12:49 PM
Disabling Commands In DM Threshold Scripting Help 3 26/11/2012 08:05 AM
Disabling Commands spd_sahil Scripting Help 8 30/03/2012 09:45 AM
Disabling Commands .. ? •Ajax• Help Archive 3 30/06/2009 07:56 AM
Disabling All Commands SnAcH Help Archive 6 22/04/2009 01:31 AM


All times are GMT. The time now is 02:47 PM.


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