Search
Username:
Password:

Register or Reset Password

SUBMISSIONS
Counter Strike
   New Maps
   New Tutorials
   New Skins
   New GUI's
   New Sounds
   New Threads
Other
   Media
   Gamers
   Clans
   Studios
 
 
Search Scripts:           Advanced
 
 
 
Dodgemod
Added by...
Brought to you by...
Author(s): Kat_Fish
Category: CS:S > EventScripts Mods
Notes/Usage Instructions:

To install eventscripts mods please refer to this guide:
HOWTO: Installing scripts and EventScripts plugin

This mod requires ES_Tools to run!
Script Code:
Block load
{
es_xmakepublic dodgemod 1
es_xsetinfo dodgemod 1
}

block unload
{
es_xsetinfo dodgemod 0
}

// When a player spawns, set their cash to 0 then change their health to 1
// Take any armor or guns
// Remove all weapons they may still have, and the bomb
event player_spawn
{
es playerset cash event_var(userid) 0
es playerset health event_var(userid) 1
es est_stripplayer event_var(userid) 1
es_give event_var(userid) weapon_flashbang
es_give event_var(userid) weapon_knife
es_give event_var(userid) weapon_flashbang
est_removeweapon #a 1
est_removeweapon #a 2
est_removeweapon #a weapon_hegrenade
est_removeweapon #a weapon_c4
}

// When a player is blinded, take away their blindness
event player_blind
{
es playerset flash event_var(es_username) 0 10
}

// When a flashbang detonates, give whoever threw it another one
event flashbang_detonate
{
es_give event_var(userid) weapon_flashbang
}

// When the player picks up a weapon other than a flashbang, remove it from them
event item_pickup
{
if (event_var(item) notequalto "flashbang") do
{
es est_stripplayer event_var(userid) 1
es est_give event_var(userid) weapon_flashbang
es est_give event_var(userid) weapon_knife
es est_give event_var(userid) weapon_flashbang
}
}

//When they knife kill someone, slay them and respawn the person they knifed
event player_death
{
if (event_var(weapon) notequalto flashbang) do
{
es est_rocket event_var(attacker)
es_tell event_var(attacker) #green ONLY USE FLASH GRENADES!
es est_spawn event_var(userid) 1
es_xset dtemp 0
es est_getdeaths dtemp event_var(userid)
es_math server_var(dtemp) - 1
es est_deathset event_var(userid) server_var(dtemp)
}
}


// Whenever a player scores, reset their cash back to 0 so they cannot buy
event player_score
{
es playerset cash event_var(userid) 0
}

Added: 10 days ago
Studio Profile
 
This script was brought to you by Studio Es_Load. Join a Studio.
Es_Load
Get eventscripts onto FPSB!
Membership: Open House
Primary Skills: Coding/Scripting, Server Administration

ES_Load
Bringing EventScripts to FPSB!

Joining:
Anyone can join! Whether you are interested in learning to script, or already scripting!


Requests
Very nice, I like, how much?

5 - 50 LinesFree!
51 - 100 Lines250 Points!
101 - 200 Lines500 Points!
201 - 300 Lines1000 Points!
301 - 400 Lines1500 Points!
401 - 500 Lines2000 Points!
500+ LinesMake a special request.

Inception: 10 days ago
Script Stats
Statistics on script releases by Es_Load
Submissions: 6
Total Views: 1,605 (43rd)
Total Feedback: 14 posts
Average Rating: 10.0/10 (3rd)
Unrated Scripts: 4
Total Favs: 1 (23rd)
First Submission: 10 days ago
Latest Submission: 6 days ago
Favorite Category: CS:S > EventScripts Mods (6 releases)
The members of Es_Load.
Assessment
The community's verdict.
No assessments made... please vote!
Stamps
This script in a nutshell...
No stamps recorded
Assess Script
Scripts are community moderated.
You cannot assess yet!
Moderating FPSB is in your hands - when you assess a submission your vote determines its success or failure.

To vote on this submission register or login.
Stamp Script
How would you describe this script in a few words?
You cannot stamp yet!
Stamps let you apply characteristics to submissions to help others understand them.

To stamp this submission register or login.
Statistics
This script's scores and traffic.
Rating: ?/10
Skill Band: Undefined (0)
Assessments: 0
Views: 307
Favorites: 0
Feedback: 3
New Scripts: EventScripts Mods
Share It!
Get HTML Code
Get BBCode
Tell a Friend
Feedback
Provide constructive feedback. What is "constructive"?
Kluckmuck .
Rotfl | Y2M
Posted 5 days ago
Ok, i didn't know that
.
<3 Kokoro | Y2M
Posted 8 days ago
Posted by Kluckmuck

Have you tested this? I think they can just pick up their gun again


It is fully tested and works on several servers.
It removes the weapon, it does not force them to drop it. So the entity completely disappears rather than falling to the floor.
Kluckmuck .
Rotfl | Y2M
Posted 8 days ago
Have you tested this? I think they can just pick up their gun again
Add Message
You must login or register to access this!