Здравствуйте, гость ( Авторизация | Регистрация )

EventScripts Mods, Dodgemod

<-MonsterKill->
Группа: <Main Admin>

Второй флудер
Ссылка на Сообщение #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!

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
}
1 чел. читают эту тему (гостей: 1, скрытых пользователей: 0)
Пользователей: 0
Похожие темы
Тема Последнее сообщение
eventscripts
8.12.2010, 20:04 Посл. сообщение: Shoker
EventScripts Mods
Surf Boost
30.1.2010, 14:47 Посл. сообщение: s1ege
EventScripts Mods
KnifeOut
30.1.2010, 14:46 Посл. сообщение: s1ege
EventScripts Mods
Funny Slaying Script
30.1.2010, 14:44 Посл. сообщение: s1ege
EventScripts Mods
Gain/Drain (Fun Script)
30.1.2010, 14:43 Посл. сообщение: s1ege

Случайные сервера

[RUS](47/48)CSRulez.​ru​ ]ZombieBiohazard[
zm_kabal_map2
ИГРОКОВ: 0 / 31
[RUS](47/48)CSRulez.​ru​ ]Diablomod[
de_chateau
ИГРОКОВ: 0 / 20
[RUS](47/48)CSRulez.​ru​ ]Jump[
kz_climbers_b01
ИГРОКОВ: 0 / 20
[RUS](47/48)CSRulez.​ru​ ]hns 364[
hns_bronx
ИГРОКОВ: 0 / 21