Prophets - European Nexuiz & Xonotic Clan
Would you like to react to this message? Create an account in a few clicks or log in to continue.


.::: European Nexuiz & Xonotic Clan .:::. Best Frags & Finest Movements since Jan. 2009 :::.
 
HomePortalGallerySearchLatest imagesMemberlistRegisterLog in

 

 Useful scripts

Go down 
+3
lost
DieHappy
Bommel
7 posters
Go to page : Previous  1, 2
AuthorMessage
-maniac|Su-
Side Admin
-maniac|Su-


Posts : 972
Join date : 2009-01-15
Location : Berlin, Germany

Useful scripts - Page 2 Empty
PostSubject: Re: Useful scripts   Useful scripts - Page 2 Icon_minitimeWed Dec 02, 2009 3:40 am

@ Bommel

heyhey sweet ballerina I.ve a question:

Situation is:
There are a lot of idiots who spam nazi slogans here - But kickban is not enabled on our server.

Question:
Is the a chance to create a script which autokick a certain playername only by keypress??

Thanks yours Su

+++++

Edit:
Got some help by Chris (Bommel) .... bounce

So here one easy way:

1. Create a bind to login-open console-and show status
Code:
bind l "toggleconsole, status, vdo login [Passwort]"
In this case I take the letter > l < like Login Smile

Now u can see the playernames/numbers

2. Add alias to autoexec.cfg
Code:
alias ki "vdo kick #$1"

Now u can easyly kick maniac players by using ki [Playernumber]

Thankies to the Ballerina

Su
Back to top Go down
https://prophets.aforumfree.com
Bommel

Bommel


Posts : 258
Join date : 2008-11-14
Location : Auenland

Useful scripts - Page 2 Empty
PostSubject: Re: Useful scripts   Useful scripts - Page 2 Icon_minitimeThu Dec 03, 2009 6:07 am

Np, Smile

maniacSu wrote:
1. Create a bind to login-open console-and show status
Code:
bind l "toggleconsole; status; vdo login [Password]"
Note: I would add the "clear" command to the bind:
Code:
bind l "toggleconsole; clear; status; vdo login [Password]"
That will clear the Console before showing the status.
In case someone's spamming the channe,l chances are higher that you get the Player's ID that way .

I also would add:
Code:
alias kib "vdo kickban #$1"
As kickban alias... just to have it complete (if avaible on the server). Smile

By the way: If you read Su's post and still don't know how to use it:
- Install it as described above
- Press "l" (or the key you bound it to)
- Get the ID from the status command you see after pressing "l"
- Type "ki ID" (without '#'!) or "kib ID" in harder cases.
- That's all.
Back to top Go down
Banshee
Side Admin
Banshee


Posts : 992
Join date : 2008-06-10
Location : China

Useful scripts - Page 2 Empty
PostSubject: Re: Useful scripts   Useful scripts - Page 2 Icon_minitimeFri Dec 04, 2009 1:36 am

Twisted Evil roar Twisted Evil
thank U C Smile viva Prima Bommelina ! Cool
Back to top Go down
DieHappy
Forums Moderator
DieHappy


Posts : 279
Join date : 2009-04-28

Useful scripts - Page 2 Empty
PostSubject: Re: Useful scripts   Useful scripts - Page 2 Icon_minitimeSat Jan 23, 2010 1:58 am

Nice Bind.

I have a question, is it possible to execute a normal .exe File from Nexuiz ?
Back to top Go down
Bommel

Bommel


Posts : 258
Join date : 2008-11-14
Location : Auenland

Useful scripts - Page 2 Empty
PostSubject: Re: Useful scripts   Useful scripts - Page 2 Icon_minitimeSat Jan 23, 2010 3:11 am

DieHappy wrote:
Nice Bind.

I have a question, is it possible to execute a normal .exe File from Nexuiz ?
God thanks not! Very Happy

Imagine what security problems will introduce this... a server admin could send malware to it's clients and force to execute it *brrrr*.

But if you want/need it client-side & and you're able to compile Nexuiz yourself, I could write a little patch in C...
But be warned: That's going to be a bit harder to install than regular scripts. Wink


Last edited by Bommel on Sat Jan 23, 2010 3:41 am; edited 1 time in total
Back to top Go down
DieHappy
Forums Moderator
DieHappy


Posts : 279
Join date : 2009-04-28

Useful scripts - Page 2 Empty
PostSubject: Re: Useful scripts   Useful scripts - Page 2 Icon_minitimeSat Jan 23, 2010 3:25 am

Na, i think it is too complex.
Wrote a little programm that search in a file (build with condump) for a player who should be removed from server.
Once you gave the prg. the Playernumber it searches for the right name\ip and save it on disc.
After that you can kick the player with only one key and you dont have to search for the right playernumber.
It can also save the chat process and do automaticly relogin if map changed.
I thought exec would work "Pustekuchen".
I should test such things before i code 2-3 hours Laughing
Back to top Go down
Bommel

Bommel


Posts : 258
Join date : 2008-11-14
Location : Auenland

Useful scripts - Page 2 Empty
PostSubject: Re: Useful scripts   Useful scripts - Page 2 Icon_minitimeSat Jan 23, 2010 4:00 am

Hrhr Very Happy

'exec' is indeed only intented for executing script-files Wink
Bad thing is just that it isn't possible to get the ID via a script (or at least I don't know one)..

Some time ago I had the idea to extend Nexuiz with some commands to give it some more scripting abilities.
Already had a 'calc', 'if' and 'while' command..
Not enough time for it right now though. Sad
Back to top Go down
Sponsored content





Useful scripts - Page 2 Empty
PostSubject: Re: Useful scripts   Useful scripts - Page 2 Icon_minitime

Back to top Go down
 
Useful scripts
Back to top 
Page 2 of 2Go to page : Previous  1, 2

Permissions in this forum:You cannot reply to topics in this forum
Prophets - European Nexuiz & Xonotic Clan :: Gameplay & Tweaks :: Scripture-
Jump to: