Server Talk > Scripting Releases

All purpose script collection

(1/5) > >>

Flippeh:
Script Name: adminfun, objects, gsspawn, mt, vote, fun
Script Description: Does various of handy/fun stuff
Original Author(s): Flippeh
Makes use of: xSplit by Keydon
Core Version: 2.6.3
Code: Haha :(. Its all in the attachment :>

Ever wanted to blow up someone? Disable weapons on the fly? Alter spawn points?
Then these scripts will come in handy!
In the attached .zip file, you will find 6 different scripts, that are either fun, usefull or both

adminfun - toys for the bored server admin
Command: /hurt <id> <amount>
Description: Hurts the player by <amount> damage
Aliases: /slap, /punch, /poke

Command: /god [id]
Description: Gives you or any ID godmode. Call it again to revoke the god

Command: /bomb <id>
Description: Starts a 10 second countdown after which the targeted player will blow up

Command: /weap <weapon id> <id> <1|0>
Description: Disables or enables <weapon id> for <id> during runtime. If <weapon id> is 0, every weapon is affected. If <id> is 0, every player is affected.
Example: /weap 7 0 0 (disables the M79 for everyone)
Known Problem: Player will still have every weapon after teamchange, or (re)joining game

objects - "Some statguns, sir?"
Command: /co <object ID>
Description: Spawns an object of type <object ID>
Example: /co 15 (spawns a stationary gun at your position)

Command: /ro <ID>[..<EndOfRange>]
Description: Removes a previously spawned object, or a range of object
Example: /ro 22..50 (removes every object with an ID between 22 and 50 (including 22 and 50). USE WITH CARE! You could remove flags, and some servers don't like that AT ALL!)

Command: /spawn <object ID> <amount> [spacing]
Description: Creates a series of objects of the same type in the direction you are facing.


gsspawn - "spawn me pitpitpitpiptipt!" - Major
Command: /nspawn
Description: Displays information about the spawn that is nearest to your player

Command: /dspawn <ID>
Description: Displays information about the spawn with the ID of <ID>

Command: /mspawn <ID>[,<ID2>,<ID3>, ..., <IDx>] <property> <value>
Description: Changes the spawn of <ID>. Valid properties and their values are are...

* move -no value-: moves the spawn to your players position
* style styleID: changes the spawn's style
* active state: activates (1 or on) or deactives (0 or off) the spawnFeature: You can use a list of spawn ids: /mspawn 15,26,34 move will move the spawns 15, 26 and 34 to your position (INSERT NO SPACES!)

Command: /sspawn <style>
Description: Searches all spawns, and displays any spawn matching <style>

Command: /fspawn [max]
Description: Searches all spawns, and displays any unused (free to modify) spawns. Only shows [max] spawns, if you specify it


mt (miniteleport) - zoom zoom zoom...
Commands: /up, /left, /right, /down
Argument: <units>
Description: Moves you by <units> units into any direction

Command: /bring <ID>
Description: Moves player with <ID> to your current position

Command: /goto <ID>
Description: Moves yourself to the location of the player matching <ID>


vote - Something for players
Player Command: /votenext
Description: Stats a mapvote for the next map


fun - Fun stuff for players
Player Command: /piss
Description: Tells everyone that there is some food standing around... helplessy..

Player Command: /victory
Description: The soldat launches his primal scream, and every team mate in range does 1.5 times more damage and takes 1.5 times less damage for 30 seconds by default. Time of effect, range, damage output and income can be easily modified in the script



Have some fun!
Bug reports are always welcome! Find me in #soldat.devs !

DorkeyDear:
Loaded with goodies, what fun a server owner can have :)
for /weap just have array[1..32] of array[1..14] of boolean that auto SetWeaponActive to a player when OnJoinTeam is called
suggestion: for /weap, doing "t<team#>" instead of "<id>" will set every1 on that team's weapons; any # < 0 or > 4 means all teams? or just "a" or "all" or "e" or "everyone" or "everybody" for every1.
suggestion: /savespot [<X> <Y>](saving ur current location / x,y; and it returning an ID #); /move <spotid>; /moveplayer <id> <spotid>

Boblekonvolutt:
Cools... I have a similar one, http://do.eamped.com/topic80.html.

Flippeh:

--- Quote from: DorkeyDear on December 16, 2007, 08:59:34 pm ---Loaded with goodies, what fun a server owner can have :)
for /weap just have array[1..32] of array[1..14] of boolean that auto SetWeaponActive to a player when OnJoinTeam is called
suggestion: for /weap, doing "t<team#>" instead of "<id>" will set every1 on that team's weapons; any # < 0 or > 4 means all teams? or just "a" or "all" or "e" or "everyone" or "everybody" for every1.
suggestion: /savespot [<X> <Y>](saving ur current location / x,y; and it returning an ID #); /move <spotid>; /moveplayer <id> <spotid>

--- End quote ---

:)
Array saving definitly in, next version!
I'll try to add the team based stuffs, when i get to it, thanks for the suggestion :)
For /move etc check out my other script "Admin teleport". This does what you want, and more!

edit: Forgot to add something in the first post:

fun script
Command: -none-
Description: Whenever you kill someone with a knife _STAB_ you gain 5 extra points (6 total), and a red "XXX got Humiliated!" pops up in the console!

miketh2005:
Can you give more info on gss pawn? Especially this part:

Command: /mspawn <ID> <property> <value>
Description: Changes the spawn of <ID>. Valid properties and their values are are...

    * move -no value-: moves the spawn to your players position
    * style styleID: changes the spawn's style
    * active state: activates (1 or on) or deactives (0 or off) the spawn

what styles are there? and can you give more info with what they mean and an example please?

Navigation

[0] Message Index

[#] Next page

Go to full version