prideti sound

Šiame forume rašomi vartotojų klausimai/problemos su kuriomis jie susidūrė kuriant pluginus.
Post Reply
Aka
Flooderis arba specialistas
Posts: 549
Joined: 2015 May 07 00:53
Skype: cs-banga.help
Location: Kaunas

prideti sound

Post by Aka »

Galite prideti soundo pvz garsus kad kaip isminuotu bomba padetu bomba ir pns as galeciau ikelti norima sounda ir grotu



Code: Select all

/* * Bomb Events - Money Rewards** Author : DarkSider | ultimate.ro* Version : 0.1*** This Plugin will give rewards in money to people who :*  - Are plantig the bomb & if bomb explodes successfully , the planter will receive another bonus ;*  - Are defusing the bomb .** CVARS :*  - bombplanted_bonus => Money gived to bomb planter (Default : 3000) ;*  - bombdefused_bonus => Money gived to bomb defuser (Default : 3000) ;*  - bombexplode_bonus => Money gived to bomb planter if bomb explodes successfully (Default : 2000) ;*  You can modify these CVARS in game , logged as admin , by command amx_cvar cvarname value .** Required Modules :*  - CSTRIKE*  - CSX** AMXX Version :* It requires AmxMoDX 1.70 or higher !** Credits :  - SAMURAI16 .** Tested on CS 1.6 Server with AmxMoDX 1.75a .**/   #include <amxmodx>#include <amxmisc>#include <cstrike>#include <csx> #define PLUGIN "Bomb Events - Money Rewards"#define VERSION "0.1"#define AUTHOR "DarkSider"  new pBonusnew dBonusnew eBonus public plugin_init() {    register_plugin(PLUGIN, VERSION, AUTHOR)    register_event("TextMsg", "bomb_planted", "a", "2&%!MRAD_BOMBPL")    register_event("TextMsg", "bomb_defused", "a", "2&%!MRAD_BOMBDEF")    register_event("TextMsg", "bomb_explode", "a", "2&#Target_B")    pBonus = register_cvar("bombplanted_bonus","900")    dBonus = register_cvar("bombdefused_bonus","1500")    eBonus = register_cvar("bombexplode_bonus","900")} public bomb_planted(id){    {    new money = cs_get_user_money(id)    new got = get_pcvar_num(pBonus)    cs_set_user_money(id, money + got)    client_print(id,print_center,"You've received %$ for planting the bomb !", get_pcvar_num(pBonus))    }} public bomb_defused(id){    {    new money = cs_get_user_money(id)    new got = get_pcvar_num(dBonus)    cs_set_user_money(id, money + got)    client_print(id,print_center,"You've received %$ for defusing the bomb !", get_pcvar_num(dBonus))    }} public bomb_explode(id){    {    new money = cs_get_user_money(id)    new got = get_pcvar_num(eBonus)    cs_set_user_money(id, money + got)      client_print(id,print_center,"You've received %$ because the bomb planted by you exploded successfully !", get_pcvar_num(eBonus))    }}

User avatar
laimiukas3
Moderatorius
Posts: 4569
Joined: 2012 Aug 03 01:12
Skype: laimiukas3
Location: Vilnius
Contact:

Re: prideti sound

Post by laimiukas3 »

visa tai turi miscstats amxx originalus pluginas ijung per amxmodmenu arba config/stats stats.ini sukeres sma atsidares visas komandas kuriu tau reikia is to plugino
;Generated by Stats Configuration Plugin. Do not modify!
;Variable Description
ShowAttackers ;Show Attackers
ShowVictims ;Show Victims
ShowStats ;Show HUD-stats default

BombPlanting ;Bomb Planting
BombCountHUD ;Bomb Countdown Hud
BombPlantedSound
sma atsidares gali kelius ir pavadinimus redaguot savo garsa idet
Image
Image
Image

Aka
Flooderis arba specialistas
Posts: 549
Joined: 2015 May 07 00:53
Skype: cs-banga.help
Location: Kaunas

Re: prideti sound

Post by Aka »

Gal gali papasakot kaip isideti nes maciau ten kitas kodas yra su dabartiniais ir pns dyel ar kuokiam folderi yra bet neegzistuoja toks pas mane :D o pridedant erroru daug meta

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests