Raised This Month: $51 Target: $400
 12% 

* EventScripts Working Examples and Script Packs


Post New Thread Closed Thread   
 
Thread Tools Display Modes
ichthys
Veteran Member
Join Date: Dec 2004
Location: []*[]
Old 04-14-2005 , 21:01  
#11

Gamble Script: Requires NemoD server plugin for nm_give function (Great plugin, also has nm_money for pay functions)

Overview: Uses test_randomchance to either give player a weapon or exec kill. Only included one weapon; the awp.

Chance percetage defined in events/gamble/gamble_config.cfg

Blah blah blah.....Have a look at it. Simple stuff.
Attached Files
File Type: zip gamblescript.zip (1.5 KB, 205 views)
ichthys is offline
ajax
Veteran Member
Join Date: Jan 2005
Old 04-21-2005 , 19:36  
#12

KILLEATH REWARD

this is a pretty simple one. when you kill someone it calculates their kill:death ratio and rewards you accordingly. in other words, the higher a player's KD ratio, the more money you will get.

it uses Mani's ma_givecash command, but you can also use Beetle's admin_pay.

it's pretty basic, so things like negative kill ratios aren't accounted for (you lose money for killing them ) and there's no minimum number of kills required. i am posting it though in case anyone was interested in simple code for calculating KD ratio.

player_death.cfg
Code:
// calculate k:d ratio
es_setinfo kd_ratio 0.0
es kd_ratio event_var(es_userkills)
if (event_var(es_userkills) notequalto 0) then if (event_var(es_userdeaths) notequalto 0) then es_math kd_ratio / event_var(es_userdeaths)

// calculate reward
setinfo kd_reward 1000.0
es_math kd_reward * server_var(kd_ratio)

// OPTIONAL CODE FOR DECIMAL PLACES
// this section may cause lag
es_token kd_reward server_var(kd_reward) 1 "." 
es_math kd_ratio * 100 
es_token kd_ratio server_var(kd_ratio) 1 "." 
es_math kd_ratio / 100
es_token kd_ratio server_var(kd_ratio) 1 "000"

// pay reward
es ma_givecash event_var(attacker) server_var(kd_reward)
es_tell event_var(attacker) :PAID $ server_var(kd_reward) for killing event_var(es_username) [ KillDeath ratio server_var(kd_ratio) ]
it pays and sends a private message like this...
Quote:
AID $ 1250 for killing ajax [ KillDeath ratio 1.25 ]
ajax is offline
ichthys
Veteran Member
Join Date: Dec 2004
Location: []*[]
Old 05-11-2005 , 20:09  
#13

ICHTHYS SCRIPTS
Headshot Count Script v1.0: Created by ichthys (May 11th 2005)
********************************************* ******************
Features:
Displays headshot count in the center of the screen for a player after they have gotten atleast 'hs_min' headshots in a row. See thread for more info.

Thread
Download

Ichthys' Admin Check Script v1.0
*********************************
Allows any other script to use 'admincheck' as a command to see if the player that fired an event such as player_say is an admin.
'admincheck' will return the var 'admin' as 1 if they are an admin.
More info see the thread.

Thread
Download
ichthys is offline
Mattie
Veteran Member
Join Date: Jan 2005
Old 05-12-2005 , 08:01   Fined $500 for a team wound
#14

This is a trivial example, used in conjunction with the latest Mani admin plugin (v1.1.0h).

Basically, whenever a player wounds a team member, he is fined $500 (presumable to pay the doctor bills). That's all this does.

I post this simple script here because this is an excellent example of the sort of easy tweaks that take 45 seconds to write and cause rave reviews from players on the server. Simple, but handy.

In player_hurt.cfg:
Code:
// EventScripts v0.7.6.1
alias payfine "es es_tell event_var(attacker) #lightgreen You've been fined $500 for shooting a teammate!; es ma_takecash event_var(attacker) 500"
if (event_var(attacker) notequalto event_var(userid)) then if (event_var(es_attackerteam) equalto event_var(es_userteam)) then payfine
Basically,if the attacker is hurting a teammate (but not himself), then tell the user that you're fining them and take some cash.

You could variablize the amount of cash, but I didn't since it's so simple to adjust and this was originally intended only for my server.

Enjoy,
-Mattie
Mattie is offline
ajax
Veteran Member
Join Date: Jan 2005
Old 05-19-2005 , 13:41  
#15

TOP KILLER
EventScripts v0.7.6.1

features
announces the player with the most kills at the end of a round. in the case of a tie, the player who got there first is announced as the Top Killer.

links
--> THREAD
--> DOWNLOAD
ajax is offline
ajax
Veteran Member
Join Date: Jan 2005
Old 05-19-2005 , 16:13  
#16

KILLING SPREE
EventScripts v0.7.6.1

features
tracks killing sprees. an announcement is made when a player reaches killing spree requirement. at the start of the round, current killing sprees are announced. players' kill sprees get reset when they are killed (by an enemy), and it is announced that the spree was ended. team-kills neither reset nor add to kill counts.

links
--> THREAD
--> DOWNLOAD
ajax is offline
volmasoft
Senior Member
Join Date: Apr 2005
Old 05-27-2005 , 18:58  
#17

First one from Volmasoft

Installation - See readme.txt

About - Ask your players questions once they die and the first person to answer a question correctly gains a cash prize.

server.cfg code
Code:
eventscripts_register volmatrivia
Attached Files
File Type: zip volmatrivia.zip (2.7 KB, 178 views)
volmasoft is offline
Full-Metal-Drake
Junior Member
Join Date: Jun 2005
Old 06-02-2005 , 15:33  
#18

This script is simple but adds alot of suspense to gameplay. Basically what it does is creates a 50/50 chance that a person might drop the weapon they are currently hold if they are attacked with a knife by an enemy. Very fun for disabling people and then finishing them off with the knife. Note: partial credit goes to ajax, he helped me alot for this script.
Code:
// EventScripts v0.3.0
// This script is triggered when a player gets hurt.
setinfo drop_chance 0
es_rand drop_chance 1 2
if (event_var(weapon) equalto "knife") then  if (server_var(drop_chance) equalto 1) then ma_cexec event_var(userid) drop
-Fellow gamer, Full-Metal-Drake
Full-Metal-Drake is offline
Send a message via AIM to Full-Metal-Drake
ajax
Veteran Member
Join Date: Jan 2005
Old 06-08-2005 , 00:59  
#19

Last Man Standing - Betting
EventScripts v0.7.7

features
when a one-on-one situation arises, betting is opened. place a bet using the format "bet t 500"

links
--> THREAD
--> DOWNLOAD
ajax is offline
ajax
Veteran Member
Join Date: Jan 2005
Old 06-08-2005 , 02:47   C4 COUNTDOWN Script Pack
#20

C4 COUNTDOWN Script Pack
EventScripts v0.7.7

features
this is the enhanced script pack version of the original c4timer script which counts down the timer when c4 is planted. the script pack allows you to choose from a variety of voices and message options. you can also use your own voice and message preferences in a custom command file. it is functionally the same as before, but more open-ended and flexible... and of course easier to install.

links
--> THREAD
--> DOWNLOAD
ajax is offline
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:35.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode