User
Pass
2FA
 
 

[rezolvat][Cerere Plugin] Kill Sound

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Plugins - Help / Support
Author Message1930
Pedobear

[Jb.Freakz.Ro]



Status: Offline
(since 02-12-2019 19:37)
Joined: 20 Dec 2013
Posts: 743, Topics: 34
Location: Alexandria

Reputation: 98.5
Votes: 14

         
Post Posted: 02-12-2014, 21:49:42 | Translate post to: ... (Click for more languages)

Nume: Kill Sound
Descriere plugin: Atunci cand un terro omoara un ct sa se auda o melodie, dar la terro nu sa se auda melodia cand e omorat, doar la ct.
Alte detalii: Doar cand un ct moare sa se auda melodia.
Exemplu: N-am

0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID
Khajiit

[Away]



Status: Offline
(since 01-04-2019 20:33)
Joined: 19 Jun 2013
Posts: 3428, Topics: 110
Location: Away for a long time.

Reputation: 48.4
Votes: 145

          Battletag: postrow.ID_BATTLE_NET}  am-nevoie-de-iconite-la-profil 
Post Posted: 02-12-2014, 21:59:12 | Translate post to: ... (Click for more languages)

Code:
#include <amxmodx>

#pragma semicolon 1

static const PLUGIN[ ]   = "PLUGIN";
static const VERSION[ ]   = "0.01";
static const AUTHOR[ ]   = "Nu conteazã";

static const SOUND[ ]   = "frag";


public plugin_init( )
{
   register_plugin(PLUGIN, VERSION, AUTHOR);
   
   register_event("DeathMsg", "EventDeathMsg", "a");
}
public plugin_precache( )
{
   new szSound[101];
   formatex(szSound, sizeof(szSound) - 1, "sound/misc/%s.wav", SOUND);
   
   precache_sound(szSound);
}
public EventDeathMsg( )
{
   new iKiller = read_data(1);
   new iVictim = read_data(2);
   
   if( iKiller == 0 || iKiller == iVictim )
      return PLUGIN_CONTINUE;
   
   new Players[32], iNum, id;
   get_players(Players, iNum, "ch");

   for( new i = 0; i < iNum; i++ )
   {
      id = Players[i];
      
      client_cmd(id, "spk misc/%s", SOUND);
   }
   return PLUGIN_CONTINUE;
}



Numele sunetului îl modifici de aici:
Code:

static const SOUND[ ]   = "frag";


Locaþia trebuie sã fie in sound/misc.

Este valabil si pentru CT/T. Revin cu Edit.

0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID
Pedobear

[Jb.Freakz.Ro]



Status: Offline
(since 02-12-2019 19:37)
Joined: 20 Dec 2013
Posts: 743, Topics: 34
Location: Alexandria

Reputation: 98.5
Votes: 14

         
Post Posted: 02-12-2014, 22:04:07 | Translate post to: ... (Click for more languages)

Eu vreau doar la Ct nu si la terro.....
0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID
EDUTz

[HardcoreAmxxScripter]



Status: Offline
(since 15-08-2021 16:34)
Joined: 27 Dec 2010
Posts: 4306, Topics: 244
Location: Jud. Miserupia, sat Bagadanc

Reputation: 4085
Votes: 179

         
Post Posted: 03-12-2014, 02:32:22 | Translate post to: ... (Click for more languages)

Code:
public EventDeathMsg( )
{
   new iKiller = read_data(1);
   new iVictim = read_data(2);
   
   if( iKiller == 0 || iKiller == iVictim )
      return PLUGIN_CONTINUE;
   if( cs_get_user_team(iVictim) != 2 )
                return PLUGIN_CONTINUE;
   new Players[32], iNum, id;
   get_players(Players, iNum, "ch");

   for( new i = 0; i < iNum; i++ )
   {
      id = Players[i];
      
      if(cs_get_user_team(id) == 1) client_cmd(id, "spk misc/%s", SOUND);
   }
   return PLUGIN_CONTINUE;
}




Pentru pluginuri complicate le fac cu $$ pe paypal/psc. PM

0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID
Pedobear

[Jb.Freakz.Ro]



Status: Offline
(since 02-12-2019 19:37)
Joined: 20 Dec 2013
Posts: 743, Topics: 34
Location: Alexandria

Reputation: 98.5
Votes: 14

         
Post Posted: 03-12-2014, 07:34:06 | Translate post to: ... (Click for more languages)

Multumesc, am sa testez, revin cu edit daca merge.

EDIT: Edutz, imi da eroarea aceasta:

Code:
killsoundjb.sma(32) : error 017: undefined symbol "cs_get_user_team"
killsoundjb.sma(41) : error 017: undefined symbol "cs_get_user_team"



Si inca ceva, cand te gasesc online pe mess, sa mai imi faci si mie o data Compilatoru ala Local din pc, care este in NOTPAD ++, ca nush ce are -

0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID
EDUTz

[HardcoreAmxxScripter]



Status: Offline
(since 15-08-2021 16:34)
Joined: 27 Dec 2010
Posts: 4306, Topics: 244
Location: Jud. Miserupia, sat Bagadanc

Reputation: 4085
Votes: 179

         
Post Posted: 05-12-2014, 18:18:44 | Translate post to: ... (Click for more languages)

adauga #include <cstrike> ca am uitat de el, de aia da eroarea ..

in npp trebuie la F6 sa ai asa:

Code:
SET compiler = D:\scripting zm2\amxxpc.exe
SET include = D:\scripting zm2\include
SET output =D:\scripting zm2\$(NAME_PART).amxx

NPP_SAVE
"$(compiler)" -i"$(include)" -o"$(output)" "$(FULL_CURRENT_PATH)"

UNSET compiler
UNSET include
UNSET output


editezi tu sa se potriveasca cu folderul tau.




Pentru pluginuri complicate le fac cu $$ pe paypal/psc. PM

0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID
Pedobear

[Jb.Freakz.Ro]



Status: Offline
(since 02-12-2019 19:37)
Joined: 20 Dec 2013
Posts: 743, Topics: 34
Location: Alexandria

Reputation: 98.5
Votes: 14

         
Post Posted: 05-12-2014, 20:46:22 | Translate post to: ... (Click for more languages)

Nu, se aude si nu inteleg dc ....
0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID
EDUTz

[HardcoreAmxxScripter]



Status: Offline
(since 15-08-2021 16:34)
Joined: 27 Dec 2010
Posts: 4306, Topics: 244
Location: Jud. Miserupia, sat Bagadanc

Reputation: 4085
Votes: 179

         
Post Posted: 05-12-2014, 22:04:07 | Translate post to: ... (Click for more languages)

cauta-ma teamviewer ... e ultima data cand iti voi explica ceva asa simplu.



Pentru pluginuri complicate le fac cu $$ pe paypal/psc. PM

0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID
Pedobear

[Jb.Freakz.Ro]



Status: Offline
(since 02-12-2019 19:37)
Joined: 20 Dec 2013
Posts: 743, Topics: 34
Location: Alexandria

Reputation: 98.5
Votes: 14

         
Post Posted: 07-12-2014, 19:03:10 | Translate post to: ... (Click for more languages)

EDUTz wrote:
cauta-ma teamviewer ... e ultima data cand iti voi explica ceva asa simplu.




Am facut compilatoru sa mearga, dar melodia cand omori un ct nu mere... trebuie sa scriu si .wav sau .mp3 acolo unde scrie frag ?

0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID
Faydwer

[Licensed to kill]



Status: Offline
(since 17-11-2019 19:30)
Joined: 06 Aug 2011
Posts: 7215, Topics: 383
Location: Italy

Reputation: 92.6
Votes: 410

 
Post Posted: 07-12-2014, 19:21:27 | Translate post to: ... (Click for more languages)

Pedobear wrote:
EDUTz wrote:
cauta-ma teamviewer ... e ultima data cand iti voi explica ceva asa simplu.




Am facut compilatoru sa mearga, dar melodia cand omori un ct nu mere... trebuie sa scriu si .wav sau .mp3 acolo unde scrie frag ?

Scrie si in .sma in aceasta linie ca trebuie .wav "sound/misc/%s.wav", SOUND); deci salvezi melodia in format wav pentru a se auzi.

0 0
  
Back to top
View user's profile Send private message
Fantasy123455
[Banned user]


Banned


Status: Offline
(since 11-12-2014 13:54)
Joined: 07 Dec 2014
Posts: 6, Topics: 1
Location: Romania

Reputation: 61.2
Votes: 2

Post Posted: 07-12-2014, 20:21:37 | Translate post to: ... (Click for more languages)

Sunteti bata !
IN JBEXTREME AVETI CODUL : public player_killed(victim, attacker, shouldgib)

SI TREBUIE SA PUNETI

emit_sound(0, CHAN_AUTO, "jbsound/jbkill.wav ETC..

0 0
  
Back to top
View user's profile Send private message
Faydwer

[Licensed to kill]



Status: Offline
(since 17-11-2019 19:30)
Joined: 06 Aug 2011
Posts: 7215, Topics: 383
Location: Italy

Reputation: 92.6
Votes: 410

 
Post Posted: 07-12-2014, 20:26:34 | Translate post to: ... (Click for more languages)

Fantasy123455 wrote:
Sunteti bata !
IN JBEXTREME AVETI CODUL : public player_killed(victim, attacker, shouldgib)

SI TREBUIE SA PUNETI

emit_sound(0, CHAN_AUTO, "jbsound/jbkill.wav ETC..

Nu este nimeni "bata" i sa oferit ce a cerut. Ai spam zone, vad ca-ti place sa arunci in noroi, acolo iti vei gasi astfel de "prieteni".

0 0
  
Back to top
View user's profile Send private message
EDUTz

[HardcoreAmxxScripter]



Status: Offline
(since 15-08-2021 16:34)
Joined: 27 Dec 2010
Posts: 4306, Topics: 244
Location: Jud. Miserupia, sat Bagadanc

Reputation: 4085
Votes: 179

         
Post Posted: 07-12-2014, 20:34:52 | Translate post to: ... (Click for more languages)

Va rog fara flame ! Daca nu rezolvi vorbim pe mess.



Pentru pluginuri complicate le fac cu $$ pe paypal/psc. PM

0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID

  Topic locked


Topic is closed, you cannot post any messages in it anymore

Locked by EDUTz, 07 December 2014 18:34



 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Plugins - Help / Support  


The time now is 27-07-2025, 04:44:27
Copyright info

Based on phpBB ro/com
B

 
 
 







I forgot my password