|
|
#1 |
|
Little Clucker
![]() Join Date: Apr 2009
Posts: 15
Reputation: 0
|
(sorry my very bad english)
i want to make command /rconxxxxx to show server rcon password. i will use it if somebody steals my mode, but i do not know how to do that. thanks |
|
|
|
|
|
#2 |
|
Huge Clucker
![]() ![]() ![]() Join Date: Mar 2008
Posts: 407
Reputation: 3
|
You have to use GetVarAsString so you can get info from the server.cfg
Something like this should work: pawn Code:
|
|
|
|
|
|
#3 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Jan 2008
Location: The Tardis
Posts: 1,614
Reputation: 104
|
Edit: ^^ - He Got it :P
|
|
|
|
|
|
#4 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Jul 2008
Posts: 1,310
Reputation: 0
|
You want a command to say your RCON password? What possible reason could you have for doing that?
pawn Code:
Hmmmmm looks like I spent a little too much time testing the thing :P |
|
|
|
|
|
#5 | |
|
Huge Clucker
![]() ![]() ![]() Join Date: Mar 2008
Posts: 407
Reputation: 3
|
Quote:
|
|
|
|
|
|
|
#6 |
|
Little Clucker
![]() Join Date: Apr 2009
Posts: 15
Reputation: 0
|
i will do more commands like this. if somebody steal it and i´ll detect that, i will connect on his server, use command, rename server, lock server etc...security 4 ever
... thank you (sory bad english, i am from slovakia )
|
|
|
|
|
|
#7 |
|
Banned
![]() Join Date: Feb 2008
Location: Sweden
Posts: 1,594
Reputation: 6
|
There's no security at all by doing so.
You can't delete the server files, and he could just change the RCON and remove the command from the script. |
|
|
|
|
|
#8 | |
|
Little Clucker
![]() Join Date: Apr 2009
Posts: 15
Reputation: 0
|
Quote:
.. so help me please how can i make my mode more secure..
|
|
|
|
|
|
|
#9 | |
|
Big Clucker
![]() ![]() Join Date: May 2008
Posts: 124
Reputation: 0
|
Quote:
-Rewrite it as a plugin. Plugins cannot be de-compiled as easily as an amx file. This means that if someone wants to use your gamemode(stolen), they HAVE to use the plugin(because your gamemode is mainly a plugin ).To do this, you could recreate all of your commands, and put them in the plugin instead of the pwn file. Then create a function to parse the commands sent by the player, and pass the cmdtext to the plugin which will decide if a command should be executed. You could then add a "secret" command in the plugin, that will allow you to change the rcon pass, or even delete the gamemode off of the server! (C++ is powerful) Other than that, doing anything with a pwn file is pretty much useless, unless you can prevent deamx. Using plugins to protect your gamemode is the best way to go, if you ask me. Hope this helps PS: I could help you do this if you decide to... |
|
|
|
|
|
|
#10 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Mar 2008
Location: Slovenia
Posts: 2,609
Reputation: 57
|
Here you have full solution without any strange commands and plugins: http://forum.sa-mp.com/index.php?topic=84683.0
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Rcon invalid password help please | blackcrissbodo2009 | Română/Romanian | 5 | 06/06/2010 06:48 PM |
| RCON password | Jo1Nt | Help Archive | 1 | 03/02/2010 07:43 PM |
| RCON password | gedux123775 | Help Archive | 2 | 04/12/2009 04:05 PM |
| Why Can Everyone Use Rcon Without A Password (Solved) | BP13 | Server Support | 6 | 12/06/2009 08:18 PM |
| Rcon Password Error | darkgamer333 | Server Support | 1 | 15/11/2008 11:36 AM |