Ссылка на Сообщение
#1
30.1.2010, 14:45
Dodgemod
To install eventscripts mods please refer to this guide:
HOWTO: Installing scripts and EventScripts plugin
This mod requires ES_Tools to run!
To install eventscripts mods please refer to this guide:
HOWTO: Installing scripts and EventScripts plugin
This mod requires ES_Tools to run!
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
}
{
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
}