Nie mam najmniejszego pojęcia jak to zrobić. Ma ktoś może jakieś pomysły?
Z góry dzięki.
Użytkownik ^^^Deed edytował ten post 04.06.2010 20:33
Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
|
Napisano 04.06.2010 20:32
Użytkownik ^^^Deed edytował ten post 04.06.2010 20:33
Napisano 04.06.2010 21:34
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#inlcude <cstrike>
#define PLUGIN "jakis"
#define VERSION "1.0"
#define AUTHOR "ten kto odpisal"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
// Add your code here...
}
public elo()
{
if(get_user_team(id) & CS_TEAM_T or CS_TEAM_CT)
{
tutaj kod z RStzn. ta losowa muza ;]
}
}
Napisano 08.06.2010 13:50
Napisano 12.06.2010 20:17
ers_player_toggle 1
play_sound( iTeam )
{
static
// - - - - - - - - - - - - - - - -
sCurSnd[ MAX_FILE_LENGTH ];
// - - - - - - - - - - - - - - - -
new iRand;
if( g_nSnd[ iTeam ] > 1 )
iRand = random( g_nSnd[ iTeam ] );
#if defined old_amxx
copy( sCurSnd, MAX_FILE_LENGTH - 1, g_sTeam_sounds[ iRand ][ iTeam ] );
#else
ArrayGetString( iTeam == CT ? g_lstSoundCT : g_lstSoundT, iRand, sCurSnd, MAX_FILE_LENGTH - 1 );
#endif
_is_wav( sCurSnd ) ?
format( sCurSnd, MAX_FILE_LENGTH - 1, "spk %s", sCurSnd[6] ) :
format( sCurSnd, MAX_FILE_LENGTH - 1, "mp3 play %s", sCurSnd );
if( get_pcvar_num( p_player_toggle ) )
{
static
// - - - - - - - - - - -
iPlayers[32],
iNum, pid;
// - - - - - - - - - - -
get_players( iPlayers, iNum, "c" );
for( new i; i < iNum; i++ )
{
pid = iPlayers[i];
//---------------
//Tylko ten if się zmienił XD
//---------------
if( !g_pHeardSound[pid] || is_user_bot( pid ) || get_user_team(pid)!=(iTeam+1))
continue;
client_cmd( pid, "%s", sCurSnd );
}
}
else
client_cmd( 0, "%s", sCurSnd );
}
Napisano 12.06.2010 21:26
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
public plugin_init()
{
register_plugin("End Round Sound","1.0","PaintLancer")
register_event("SendAudio", "t_win", "a", "2&%!MRAD_terwin")
register_event("SendAudio", "ct_win", "a", "2&%!MRAD_ctwin")
}
public t_win(){
new rand = random_num(0,2)
client_cmd(0,"stopsound")
switch(rand)
{
case 0: client_cmd(0,"spk ta")
case 1: client_cmd(0,"spk ta2")
case 2: client_cmd(0,"spk ta3")
}
return PLUGIN_HANDLED
}
public ct_win(){
new rand = random_num(0,2)
client_cmd(0,"stopsound")
switch(rand)
{
case 0: client_cmd(0,"spk ta4")
case 1: client_cmd(0,"spk ta5")
case 2: client_cmd(0,"spk ta6")
}
return PLUGIN_HANDLED
}
public plugin_precache()
{
precache_sound("ta.wav")
precache_sound("ta2.wav")
precache_sound("ta3.wav")
precache_sound("ta4.wav")
precache_sound("ta5.wav")
precache_sound("ta6.wav")
return PLUGIN_CONTINUE
}
Napisano 12.06.2010 21:39
Napisano 12.06.2010 22:29
Napisano 12.06.2010 22:41
raportuj ten post, a moderator lub administrator rozpatrzy go ponownie.0 użytkowników, 1 gości, 0 anonimowych