home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > Single and Multiplayer Gaming > General Gaming Discussion
Join TechIMO for Free!
Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
Topic: please i try find some help about how install and use one plugin that I found that enable you play maps as dm (deathmatch) with bots my intention is get a rid of play capture flag and only deathmatch, me against bots. ...
Reply Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 2255
Discussions: 184,706, Posts: 2,205,559, Members: 227,423
Old June 2nd, 2008, 11:21 AM   Digg it!   #1 (permalink)
Junior Member
 
Join Date: Jun 2008
Location: Earth
Posts: 2
Send a message via MSN to guisongs
day of defeat how install and use a plugin that enable you play maps as dm with bots

please i try find some help about how install and use one plugin that I found that enable you play maps as dm (deathmatch) with bots

my intention is get a rid of play capture flag and only deathmatch, me against bots.

I discover some thinqs on internet

/*
Dod MapSettings
Author: 29th ID
Credits: VEN from amxx forums

Part of the 29th ID's modification to
Day of Defeat, making it more realistic
DOD:Realism - dodrealism.branzone.com


Description:
This plugin allows you to edit your server's gameplay within each map in the following ways.
-Enable or Disable "paras" on allies (skins and weapons)
-Enable or Disable "paras" on axis (skins and weapons)
-Enable British or Americans (skins and weapons)
-Remove all flags from the map (good for deathmatch-style play)
-Remove the timer from the map (good for deathmatch-style play)
-Remove spawn guns (players can enter enemy spawns)


Usage (CVARs):
dod_map_settings <1/0>
Enables or Disables the overall plugin
dod_map_alliesparas <1/0/-1>
Sets allies paras (skins and weapons)
Setting to 1 enables
Setting to 0 disables
Setting to -1 ignores command and goes to map default
dod_map_axisparas <1/0/-1>
Sets axis paras (skins and weapons)
Setting to 1 enables
Setting to 0 disables
Setting to -1 ignores command and goes to map default
dod_map_alliescountry <1/0/-1>
Sets British or Allies
Setting to 1 is British
Setting to 0 is Americans
Setting to -1 ignores command and goes to map default
dod_map_removeflags <1/0>
Setting to 1 removes all flags and control points
dod_map_removetimer <1/0>
Setting to 1 removes the map timer
dod_map_removespawngun <1/0>
Setting to 1 removes the spawn gun and trigger_hurt in spawn
*/
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#define PLUGIN "Dod MapSettings"
#define VERSION "1.0"
#define AUTHOR "29th ID"

new g_set_alliesparas, g_set_axisparas, g_set_alliescountry, g_ent
new g_entity_doddetect[] = "info_doddetect"
new g_kv_alliesparas[] = "detect_allies_paras"
new g_kv_axisparas[] = "detect_axis_paras"
new g_kv_alliescountry[] = "detect_allies_country"
// Done in precache so it is caught before the entities are spawned
public plugin_precache() {
register_forward(FM_KeyValue, "forward_keyvalue")

register_cvar("dod_map_settings", "1")
register_cvar("dod_map_alliesparas", "-1")
register_cvar("dod_map_axisparas", "-1")
register_cvar("dod_map_alliescountry", "-1")
register_cvar("dod_map_removeflags", "0")
register_cvar("dod_map_removetimer", "0")
register_cvar("dod_map_removespawngun", "0")
}
// Done in init to remove entities that were already created
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)

if(!get_cvar_num("dod_map_settings"))
return PLUGIN_HANDLED
if(get_cvar_num("dod_map_removeflags"))
remove_map_ents("dod_control_point", 0)
if(get_cvar_num("dod_map_removetimer"))
remove_map_ents("dod_round_timer", 0)
if(get_cvar_num("dod_map_removespawngun")) {
remove_map_ents("func_tank", 0) // The gun that shoots you if you're in enemy spawn
remove_map_ents("trigger_hurt", 64) // 64 means DontHurtAllies
remove_map_ents("trigger_hurt", 128) // 128 means DontHurtAxis
}
return PLUGIN_HANDLED
}
// Thanks VEN for helping out with the following function
public forward_keyvalue(ent, handle) {
if (!pev_valid(ent) || !get_cvar_num("dod_map_settings"))
return FMRES_IGNORED

new g_cvar_alliesparas[8]
get_cvar_string("dod_map_alliesparas", g_cvar_alliesparas, 7)
new g_cvar_axisparas[8]
get_cvar_string("dod_map_axisparas", g_cvar_axisparas, 7)
new g_cvar_alliescountry[8]
get_cvar_string("dod_map_alliescountry", g_cvar_alliescountry, 7)

static class[16]
get_kvd(handle, KV_ClassName, class, 15)

if (!equal(class, g_entity_doddetect))
return FMRES_IGNORED
// this variable will tell us whether the first KVD is fired to the hostage
new bool:first_kvd = false
if (ent != g_ent) { // hence this is the next hostage who recieves the KVD
first_kvd = true // hence this is his first KVD
g_ent = ent // our current hostage entity is the ent
}
static key[28]
// retrieve the key name
get_kvd(handle, KV_KeyName, key, 27)
// this check will allow us to not fire this KVD multiple times, we need it only once
if (first_kvd) {
if(str_to_num(g_cvar_alliesparas) > -1) {
set_kvd(0, KV_ClassName, g_entity_doddetect)
set_kvd(0, KV_KeyName, g_kv_alliesparas)
set_kvd(0, KV_Value, g_cvar_alliesparas)
set_kvd(0, KV_fHandled, 0)
dllfunc(DLLFunc_KeyValue, ent, 0)
g_set_alliesparas = 1
}

if(str_to_num(g_cvar_axisparas) > -1) {
set_kvd(0, KV_ClassName, g_entity_doddetect)
set_kvd(0, KV_KeyName, g_kv_axisparas)
set_kvd(0, KV_Value, g_cvar_axisparas)
set_kvd(0, KV_fHandled, 0)
dllfunc(DLLFunc_KeyValue, ent, 0)
g_set_axisparas = 1
}

if(str_to_num(g_cvar_alliescountry) > -1) {
set_kvd(0, KV_ClassName, g_entity_doddetect)
set_kvd(0, KV_KeyName, g_kv_alliescountry)
set_kvd(0, KV_Value, g_cvar_alliescountry)
set_kvd(0, KV_fHandled, 0)
dllfunc(DLLFunc_KeyValue, ent, 0)
g_set_alliescountry = 1
}
}
// if the key name is "model", supercede this KVD since it's already set by us before
if (equal(key, g_kv_alliesparas) && g_set_alliesparas)
return FMRES_SUPERCEDE
if (equal(key, g_kv_axisparas) && g_set_axisparas)
return FMRES_SUPERCEDE
if (equal(key, g_kv_alliescountry) && g_set_alliescountry)
return FMRES_SUPERCEDE
return FMRES_IGNORED
}
// Removes entities within the map - matches flags if they exist
public remove_map_ents(strEntity[], req_flags) {
// Search for spawns
new g_flags, ent = -1

while((ent = engfunc(EngFunc_FindEntityByString, ent, "classname", strEntity)) != 0) {
g_flags = pev(ent, pev_spawnflags)
if( (req_flags > 0) && (g_flags != req_flags) )
continue
engfunc(EngFunc_RemoveEntity, ent)
}

return PLUGIN_CONTINUE
}

guisongs is offline   Reply With Quote
TechIMO.com Ads - Login or register for less ads.


Guest, Register Free! to remove this ad and get your tech support questions answered in minutes!
Old June 2nd, 2008, 11:22 AM     #2 (permalink)
Junior Member
 
Join Date: Jun 2008
Location: Earth
Posts: 2
Send a message via MSN to guisongs
the problem is i dont know how use that plugin (install, configure, commands etc)

guisongs is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Day of Defeat Realism xelnanga General Gaming Discussion 4 April 5th, 2006 12:10 AM
After i play day of defeat.. wera Graphics Cards and Displays 3 February 23rd, 2006 03:56 PM
BF2 Install issues. Help me b4 I get to play in a padded room all day :) goldcoastred General Gaming Discussion 4 February 8th, 2006 11:14 PM
Day of Defeat Linux plugin skybolt_1 General Gaming Discussion 1 February 24th, 2003 06:05 PM
Day of Defeat V2 VERT General Gaming Discussion 7 February 7th, 2002 07:06 PM

Most Active Discussions
Is It Just Me? (13843)
John McFlIpFlOpPeR - for Bingo =) (50)
Building my first desktop (18)
Weirdest case ever... (13)
so u cant crossfire with a HD 4850 .. (9)
Graphics Card for COD 4 (9)
Play Crysis Wars Free Oct 10-12 (12)
Problem With IDE Hard Drive (5)
FolderChat: Weekend Spam FTW! (95)
Recent Discussions
Need help hosting wc3 FT online (1)
Warcraft 3 : Frozen Throne Host.. (10)
Which 4870 would you choose? (1)
WC3:FZ Hosting Issues (7)
Look and discover is killing me.. (0)
need help hosting online (0)
need help hosting online (0)
Building my first desktop (18)
Video Card Issue (0)
Xbox 360 games and Samsung Sync.. (2)
WTB: Nokia N95-4 8GB black (3)
FS: Kung Fu Panda (DS) & MG.. (0)


All times are GMT -4. The time now is 04:09 PM.
TechIMO Copyright 2008 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28