←  Pluginy AMXX

AMXX.pl: Support AMX Mod X i SourceMod

»

DeathMatch AK-47 / M4A1

Gość__* 07.03.2009

DeathMatch AK-47 / M4A1
Przeróbka słynnego DeathMatch. Modyfikacja polega na tym, że mamy do wyboru tylko dwie bronie: AK-47 oraz M4A1. Podczas wyboru broni dodatkowo w HUD pojawia się nam napis, np: You got an AK-47!

  • Instalacja:
    Plik ak-m4_dm.amxx dodaj do addons/amxmodx/plugins
    Plik ak-m4_dm.sma dodaj do addons/amxmodx/plugins
    Plik ak-m4_dm.txt dodaj do cstrike/addons/data/lang

    Otwieramy w edytorze tekstowym plik amxmodx/configs/plugins.ini i dopisujemy na samym końcu: ak-m4_dm.amxx

    Cvars:
    amx_dm_enabled "1/0" : 1 - Włączony , 0 - Wyłączony plugin.

    Modules:
  • fun

Załączone pliki

Odpowiedz

  • +
  • -
HuBa - zdjęcie HuBa 10.03.2009

Jak by ktoś chciał z innymi broniami

/* Plugin originally made by Zelda

Description:
- It's Only a simple DeathMatch plugin, people can choose between AK or M4 in a menu. Then the game begins.

Cvars:
- amx_dm_enabled "1" // Plugin ON or OFF (1 = ON)

Included files:
- scripting/ak coalt deathmatch.sma // Scripting File
- plugins/ak coalt deathmatch.amxx // .amxx file
- data/lang/ak-m4_dm.txt // Multilangual file

Credits:
- Zelda (Make plugin)
- crazyeffect (Hudmessages, cvar and MultiLangual)
*/


#include <amxmodx>
#include <amxmisc>
#include <fun>

public plugin_init()
{
register_plugin("Ak Colt Deathmatch", "1.0", "Zelda");

new keys = MENU_KEY_0|MENU_KEY_1

register_menucmd(register_menuid("Which Weapon?"), keys, "giveWeapon");
register_clcmd("giveme", "showWeaponMenu");
register_cvar("amx_dm_enabled", "1") // Plugin ON/OFF

register_dictionary("ak-m4_dm.txt"); // Multilangual file
}


public showWeaponMenu(id)
{
new menu[192]
new keys = MENU_KEY_0|MENU_KEY_1|

format(menu, 191, "%L^n^n1. AK47^n2. M4A1^n3", LANG_PLAYER, "MENU_TITLE");
show_menu(id, keys, menu);
return PLUGIN_HANDLED;
}

//Our menu function will get the player id and the key they pressed
public giveWeapon(id, key)
{
//key will start at zero
if (key == 0)
{
give_item(id, "weapon_ak47");
set_hudmessage(255, 0, 0, -1.0, 0.01)
show_hudmessage(id, "<%L>", LANG_PLAYER, "GOT_AK")
} else if (key == 1) {
give_item(id, "weapon_m4a1");
set_hudmessage(0, 0, 255, -1.0, 0.01)
show_hudmessage(id, "<%L>", LANG_PLAYER, "GOT_M4")
}
return PLUGIN_HANDLED;
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{ rtf1 ansi deff0{ fonttbl{ f0 fnil Tahoma;}}n viewkind4 uc1 pard lang3082 f0 fs16 n par }
*/

Tutaj zmieniamy bronie na: (do wyboru do koloru)
weapon_p228
weapon_shield
weapon_scout
weapon_hegrenade
weapon_xm1014
weapon_c4
weapon_mac10
weapon_aug
weapon_smokegrenade
weapon_elite
weapon_fiveseven
weapon_ump45
weapon_sg550
weapon_galil
weapon_famas
weapon_usp
weapon_glock18
weapon_awp
weapon_mp5navy
weapon_m249
weapon_m3
weapon_m4a1
weapon_tmp
weapon_g3sg1
weapon_flashbang
weapon_deagle
weapon_sg552
weapon_ak47
weapon_knife
weapon_p90


ak-m4_dm.txt:

[en]
MENU_TITLE = Wich weapon?
GOT_AK = You got an AK-47!
GOT_M4 = You got an M4A1!

[nl]
MENU_TITLE = Welk wapen?
GOT_AK = Je hebt een AK-47!
GOT_M4 = Je hebt een M4A1!


Dodajemy do ^^

[pl]
MENU_TITLE = Jaka bron wybierasz?
GOT_AK =Dostales bron1!
GOT_M4 = Dostales bron2!


Nazwa menu broni


Tutaj zmieniacie tekst jaki jest po wybraniu broni
Odpowiedz

  • +
  • -
Change - zdjęcie Change 15.06.2009

Przeróbka słynnego DeathMatch


Czyli bez wgrania deathmatcha to działa? Czy to jest tylko plugin dający broń.?
Odpowiedz

  • +
  • -
SkinnerBox - zdjęcie SkinnerBox 15.06.2009

To jest Deathmatch, ale można używać tylko AK-47/M4A1 i tylko te bronie się dostaje (chyba że przerobisz sobie według opisu HuBy).
Odpowiedz

  • +
  • -
Change - zdjęcie Change 15.06.2009

Chodzi mi czy po wgraniu jedynie tego 1 pluginu będzie normalnie deathmatch ze spawnami itp...?
Odpowiedz

  • +
  • -
SkinnerBox - zdjęcie SkinnerBox 15.06.2009

Z tego co mi się wydaje - Tak.
Odpowiedz

  • +
  • -
emblaze - zdjęcie emblaze 15.06.2009

Z tego co ja widze w sma nic nie ma o DeatchMatch, nie widze tu funkcji do odradzania ;) według mnie jest to zwykłe m4 vs ak47 :> Chyba, że to sma nie odpowiada temu amxx ^^
Ps. sorki za odkop ale chciałem tylko przedmówców uświadomić O:)
Odpowiedz

  • +
  • -
JustNxt - zdjęcie JustNxt 03.02.2011

A gdzie wkleic te nowe bronie ? zeby bylo ich wiecej a nie tylko ak-m4
Odpowiedz