How can i make an Console command that only can be acces if the player know's the Rcon?
like we do ..
[code]
rcon = FunnyCode
rcon_password FunnyCode
rcon sv_cheats 1
[/code]
Eh? why not just check if the persone trying to run the command is a invalid entity
Beacuse i wanna know if he's know the password .. -.-'
so he can set's his own rank to owner ;)
You can't. You need a list of players who have access to that command instead.
iknow that we can do it!!!
i just don't know the way...
[lua]
concommand.Add("wut", function(p,c,a)
if not( IsValid(p) ) then
-- Coming from server.
-- Do shit.
end
end)
[/lua]
Wouldn't that work?
it's beacuse i am creating a new admin system..
so i wanna do like in assmod, like the owner set's his rank by the console .. :)
[QUOTE=Averice;25146582][lua]
concommand.Add("wut", function(p,c,a)
if not( IsValid(p) ) then
-- Coming from server.
-- Do shit.
end
end)
[/lua]
Wouldn't that work?[/QUOTE]
Same idea as me , but i now thinking at it , if somone joining has a cfg to run it while joining , Exploit
omfg dont you know how to read a post with-out answering have way though reading it?
run it befor joining , add loads of waits in the file , join a server with correct timing
o.0 your stalking me just posting random stuff now
[QUOTE=dingusnin;25152810]o.0 your stalking me just posting random stuff now[/QUOTE]
I'm pretty sure you just don't know what he's even talking about, he's correcting you.
Saying your method sucks, and there are way better ones.
And the fact that you don't accept to be criticized by anyone.
[QUOTE=dingusnin;25152744]run it befor joining , add loads of [b]waits[/b] in the file , join a server with correct timing[/QUOTE]
[b]Please don't crash GMod when trying to exploit a server![/b]
[editline]07:56PM[/editline]
In all seriousness, commands are only accepted by the server if the player is valid.
[QUOTE=dingusnin;25152744]run it befor joining , add loads of waits in the file , join a server with correct timing[/QUOTE]
1. Everyone's load speed is different and it's also different depending on the server 2. Wait is still broken. All I can think of right now
[QUOTE=iRzilla;25152547]Yeah if you want to be exploited.[/QUOTE]
I know it's exploitable, but they won't see the command anyway. Just make it something like "`!fd49zzv`1"
If they just happen to guess that, then I would applaud there efforts and sit back and let them exploit my server.
Sorry, you need to Log In to post a reply to this thread.