Jump to content
Sign in to follow this  
Audiovox

A simple script to remove any idle weapons every second

Recommended Posts

block load

{

    repeat create idleweapons "es est_removeidle weapon"

}



block unload

{

    repeat delete idleweapons

}



event round_start

{

    repeat start idleweapons 1

}



event round_end

{

    repeat stop idleweapons

}

That's all there is to it ^^ That's supposed to be for the surf servers weapons spamming issue.

-Audio

Share this post


Link to post
Share on other sites

I would be more than happy to take requests for scripts to post here in the forums. Unfortunately I cannot post most of the stuff I do because it is supposed to be UV exclusive. So we don't want it on the net ;) but stuff you guys ask for I'd happily do and post here. As you can see from my above post, It's an easy concept to understand. Eventually it will become a second language to you. I'd also be happy to help others out with scripting or provide small tutorials on how to do stuff.

-Audio

Share this post


Link to post
Share on other sites
Guest starscream

how do i make a script?

no really, where do you learn es/any other applicable languages used in CS:S?

I might start picking it up, I know C++, Java, some PHP, a very small amt of PERL, CSS, and somesmall amount of bash shell scripting

Share this post


Link to post
Share on other sites

Well starscream, the best place to go to learn ES and EST or even ESP would be matties web site. I will post some links to stuff I find invaluable when I'm working. Note that I am mostly here to guide you and answer questions, but most of the learning is done through practice and experimentation, trial and error. I did not have the luxury of an experienced person to ask questions when I had them when I learned, but if you are serious about learning it, please use these things to your advantage. Also, I'll say compared to C++ and PERL, even some of the Java and HTML languages, ES, ESP and EST are some of the most use friendly languages I've come across. Most of it is common sense, especially if you understand or play CSS to any extent. ;)

Here's a link to Matties main forums page, there are a lot of tutorials and scripts you can download there as well as the forums themselves where you can post questions I may not be able to answer.

http://forums.mattie.info/cs/forums/index.php

This is the EST documentation I use for making sure the event variables I use are in the events I'm trying to use them in.

http://forums.mattie.info/cs/forums/viewtopic.php?t=6072

Here are two script checkers I use to check for basic syntax errors (note that these only check things like brackets and format, not true functionality of the script.)

http://mattie.info/cs/checkscript.asp

http://check.eventscripts.com/

Here are some game events and the variables that accompany them.

http://forums.mattie.info/cs/forums/viewtopic.php?t=50

Here's the ES wiki (huge amount of useful info here, a few tutorials also.)

http://www.eventscripts.com/pages/Main_Page

Here's the EST wiki

http://eventscripts.com/pages/ESTools

That pretty much is all I use to get stuff done. Also note that there is no shame in using CP a lot in scripts, if the code works and does what you need, there is no point in reinventing the wheel >> Just make sure that if it is a substantial part of your script, that you give credit to who ever you skimmed it from. Sorry it took so long to respond, I've been gone all weekend and just got back, but I'm all for teaching ya how to script ^^

-Audio

Share this post


Link to post
Share on other sites

Love to guide ya. It takes practice and experimentation, and with me on your side, imagine the possibilities! (lol)

-Audio

Share this post


Link to post
Share on other sites
Sign in to follow this  

×
×
  • Create New...