Skocz do zawartości

Witamy w Nieoficjalnym polskim support'cie AMX Mod X

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.
  • Rozpoczynaj nowe tematy i odpowiedaj na inne
  • Zapisz się do tematów i for, aby otrzymywać automatyczne uaktualnienia
  • Dodawaj wydarzenia do kalendarza społecznościowego
  • Stwórz swój własny profil i zdobywaj nowych znajomych
  • Zdobywaj nowe doświadczenia

Dołączona grafika Dołączona grafika

Guest Message by DevFuse
 

lubiekeppa - zdjęcie

lubiekeppa

Rejestracja: 31.03.2012
Aktualnie: Nieaktywny
Poza forum Ostatnio: 05.05.2012 11:14
-----

Moje tematy

Prosze o kompilacje

23.04.2012 17:17

witam proszę o kompilacje tego :

#include <amxmodx>
#include <amxmisc>
#include <colorchat>

#define PLUGIN "Exp o godzinach"
#define VERSION "0.9"
#define AUTHOR "QTM. Peyote"

#define minut(%1) ((%1)*60.0)

new pcvarOdgodziny,
	 pcvarDogodziny,
	 pcvarExpzazabojstwo,
	 pcvarExpzawygrana;

public plugin_init() {
    register_plugin(PLUGIN, VERSION, AUTHOR)
    
    pcvarOdgodziny = register_cvar("eog_expodgodziny", "21");
    pcvarDogodziny = register_cvar("eog_expdogodziny", "8");
    
    pcvarExpzazabojstwo = register_cvar("eog_killxp", "28");
    pcvarExpzawygrana = register_cvar("eog_winxp", "80");
    
    register_concmd("eog_przeladuj", "Sprawdz", ADMIN_KICK);
    
    set_task(1.0, "Sprawdz");
    
    set_task(240.0, "PokazInfo", _, _, _, "b");
}

public Sprawdz()
{    
    new timestr[3];
    
    get_time("%H", timestr, 2);
    new godzina = str_to_num(timestr);
    
    new bool:aktywne;
    
    new odgodziny = get_pcvar_num(pcvarOdgodziny),
   	  dogodziny = get_pcvar_num(pcvarDogodziny);
    
    if(odgodziny > dogodziny)
    {
        if(godzina >= odgodziny || godzina < dogodziny)
            aktywne = true;
    }
    else
    {
        if(godzina >= odgodziny && godzina < dogodziny)
            aktywne = true;
    }        
    
    if(aktywne)
    {
        server_cmd("cod_killxp %i;cod_winxp %i", get_pcvar_num(pcvarExpzazabojstwo), get_pcvar_num(pcvarExpzawygrana));
        return;
    }
    
    get_time("%M", timestr, 2);
    new minuta = str_to_num(timestr);
    
    set_task(minut(60-minuta), "Sprawdz");
}

public PokazInfo()
    ColorChat(0, GREEN, "[EXP] Na serwerze dziala EXP O GODZINACH 21-8!");

Prosze o kompilacje

21.04.2012 13:22

proszę o kompilacje :


#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <codmod>
#include <hamsandwich>
#include <fun>
#include <engine>
#include <fakemeta>
#include <colorchat>
new bool:ma_klase[33];
new bool:uzywa[33];
new pozostale_spadochrony[33];
new bool:moze_skoczyc[33];
new para_ent[33];
new const nazwa[] = "Komandos Pierwszej Lini (Premium)";
new const opis[] = "Famas , degle , he i spadochron";
new const bronie = (1<<CSW_HEGRENADE)|(1<<CSW_FAMAS)|(1<<CSW_DEAGLE);
new const zdrowie = 50;
new const kondycja = 65;
new const inteligencja = 0;
new const wytrzymalosc = 30;
public plugin_init()
{
register_plugin(nazwa, "1.0", "QTM_Peyote");

cod_register_class(nazwa, opis, bronie, zdrowie, kondycja, inteligencja, wytrzymalosc);
register_event("ResetHUD", "ResetHUD", "abe");
register_forward(FM_CmdStart, "CmdStart");
}
public plugin_precache()
precache_model("models/parachute.mdl");
public cod_class_enabled(id)
{
if(!(get_user_flags(id) & ADMIN_LEVEL_H))
{
  client_print(id, print_chat, "[] Nie masz uprawnien, aby uzywac tej klasy.")
  return COD_STOP;
}
ColorChat(id, GREEN, "Klasa stworzona przez pluginymody.webd.pl");
ma_klase[id] = true;
return COD_CONTINUE;
}
public cod_class_disabled(id)
ma_klase[id] = false;
public cod_class_skill_used(id)
{
if(pozostale_spadochrony[id] > 0)
{
  if(para_ent[id])
   uzywa[id] = false;
  else
  {
   uzywa[id] = true;
   pozostale_spadochrony[id]--;
  }
}
else
  ColorChat(id, RED, "Wykorzystales juz wszystkie  spadochrony");
}
public client_PreThink(id)
{
//parachute.mdl animation information
//0 - deploy - 84 frames
//1 - idle - 39 frames
//2 - detach - 29 frames

if (!is_user_alive(id) || !ma_klase[id]) return

new Float:fallspeed = -100.0
new Float:frame

new flags = get_entity_flags(id)

if (para_ent[id] > 0 && (flags & FL_ONGROUND)) {
  uzywa[id] = false;
  if (get_user_gravity(id) == 0.1) set_user_gravity(id, 1.0)
 
  if (entity_get_int(para_ent[id],EV_INT_sequence) != 2) {
   entity_set_int(para_ent[id], EV_INT_sequence, 2)
   entity_set_int(para_ent[id], EV_INT_gaitsequence, 1)
   entity_set_float(para_ent[id], EV_FL_frame, 0.0)
   entity_set_float(para_ent[id], EV_FL_fuser1, 0.0)
   entity_set_float(para_ent[id], EV_FL_animtime, 0.0)
   entity_set_float(para_ent[id], EV_FL_framerate, 0.0)
   return
  }
 
  frame = entity_get_float(para_ent[id],EV_FL_fuser1) + 2.0
  entity_set_float(para_ent[id],EV_FL_fuser1,frame)
  entity_set_float(para_ent[id],EV_FL_frame,frame)
 
  if (frame > 254.0) {
   remove_entity(para_ent[id])
   para_ent[id] = 0
  }
}

if (uzywa[id]) {
 
  new Float:velocity[3]
  entity_get_vector(id, EV_VEC_velocity, velocity)
 
  if (velocity[2] < 0.0) {
  
   if(para_ent[id] <= 0) {
    para_ent[id] = create_entity("info_target")
    if(para_ent[id] > 0) {
	 entity_set_string(para_ent[id],EV_SZ_classname,"parachute")
	 entity_set_edict(para_ent[id], EV_ENT_aiment, id)
	 entity_set_edict(para_ent[id], EV_ENT_owner, id)
	 entity_set_int(para_ent[id], EV_INT_movetype, MOVETYPE_FOLLOW)
	 entity_set_model(para_ent[id], "models/parachute.mdl")
	 entity_set_int(para_ent[id], EV_INT_sequence, 0)
	 entity_set_int(para_ent[id], EV_INT_gaitsequence, 1)
	 entity_set_float(para_ent[id], EV_FL_frame, 0.0)
	 entity_set_float(para_ent[id], EV_FL_fuser1, 0.0)
    }
   }
  
   if (para_ent[id] > 0) {
   
    entity_set_int(id, EV_INT_sequence, 3)
    entity_set_int(id, EV_INT_gaitsequence, 1)
    entity_set_float(id, EV_FL_frame, 1.0)
    entity_set_float(id, EV_FL_framerate, 1.0)
    set_user_gravity(id, 0.1)
   
    velocity[2] = (velocity[2] + 40.0 < fallspeed) ? velocity[2] + 40.0 : fallspeed
    entity_set_vector(id, EV_VEC_velocity, velocity)
   
    if (entity_get_int(para_ent[id],EV_INT_sequence) == 0) {
	
	 frame = entity_get_float(para_ent[id],EV_FL_fuser1) + 1.0
	 entity_set_float(para_ent[id],EV_FL_fuser1,frame)
	 entity_set_float(para_ent[id],EV_FL_frame,frame)
	
	 if (frame > 100.0) {
	  pozostale_spadochrony[id]--;
	  entity_set_float(para_ent[id], EV_FL_animtime, 0.0)
	  entity_set_float(para_ent[id], EV_FL_framerate, 0.4)
	  entity_set_int(para_ent[id], EV_INT_sequence, 1)
	  entity_set_int(para_ent[id], EV_INT_gaitsequence, 1)
	  entity_set_float(para_ent[id], EV_FL_frame, 0.0)
	  entity_set_float(para_ent[id], EV_FL_fuser1, 0.0)
	 }
    }
   }
  }
  else if (para_ent[id] > 0) {
   remove_entity(para_ent[id])
   set_user_gravity(id, 1.0)
   para_ent[id] = 0
  }
}
else if (para_ent[id] > 0 ) {
  remove_entity(para_ent[id])
  set_user_gravity(id, 1.0)
  para_ent[id] = 0
}
}
public ResetHUD(id)
{
uzywa[id] = false;
pozostale_spadochrony[id] = 55;
}
public CmdStart(id, uc_handle)
{
if(!ma_klase[id])
  return FMRES_IGNORED;

new button = get_uc(uc_handle, UC_Buttons);
new oldbutton = pev(id, pev_oldbuttons);
new flags = pev(id, pev_flags);
if((button & IN_JUMP) && !(flags & FL_ONGROUND) && !(oldbutton & IN_JUMP) && moze_skoczyc[id])
{
  moze_skoczyc[id] = false;
  new Float:velocity[3];
  pev(id, pev_velocity, velocity);
  velocity[2] = random_float(265.0,285.0);
  set_pev(id, pev_velocity, velocity);
}
else if(flags & FL_ONGROUND)
  moze_skoczyc[id] = true;
 
return FMRES_IGNORED;
}

Dodanie premium i skokow do klasy

21.04.2012 10:18

Witam proszę o dodanie aby ta klasa byla na admin level H i miala 2 skoki

#include <colorchat>

new bool:ma_klase[33];
new bool:uzywa[33];
new pozostale_spadochrony[33];

new para_ent[33];

new const nazwa[] = "Komandos Pierwszej Lini (Premium)";
new const opis[] = "Famas , degle , he i spadochron";
new const bronie = (1<<CSW_HEGRENADE)|(1<<CSW_FAMAS)|(1<<CSW_DEAGLE);
new const zdrowie = 50;
new const kondycja = 65;
new const inteligencja = 0;
new const wytrzymalosc = 30;

public plugin_init()
{
    register_plugin(nazwa, "1.0", "QTM_Peyote");
    
    cod_register_class(nazwa, opis, bronie, zdrowie, kondycja, inteligencja, wytrzymalosc);
    register_event("ResetHUD", "ResetHUD", "abe");
}

public plugin_precache()
    precache_model("models/parachute.mdl");

public cod_class_enabled(id)
{
    ColorChat(id, GREEN, "Klasa stworzona przez pluginymody.webd.pl");
    ma_klase[id] = true;
    return COD_CONTINUE;
}
    
public cod_class_disabled(id)
    ma_klase[id] = false;

public cod_class_skill_used(id)
{
    if(pozostale_spadochrony[id] > 0)
    {
        if(para_ent[id])
            uzywa[id] = false;
        else
        {
            uzywa[id] = true;
            pozostale_spadochrony[id]--;
        }
    }
    else
        ColorChat(id, RED, "Wykorzystales juz wszystkie  spadochrony");
}
    
public client_PreThink(id)
{
    //parachute.mdl animation information
    //0 - deploy - 84 frames
    //1 - idle - 39 frames
    //2 - detach - 29 frames

    if (!is_user_alive(id) || !ma_klase[id]) return

    new Float:fallspeed = -100.0
    new Float:frame
    
    new flags = get_entity_flags(id)

    if (para_ent[id] > 0 && (flags & FL_ONGROUND)) {
        uzywa[id] = false;
        if (get_user_gravity(id) == 0.1) set_user_gravity(id, 1.0)

        if (entity_get_int(para_ent[id],EV_INT_sequence) != 2) {
            entity_set_int(para_ent[id], EV_INT_sequence, 2)
            entity_set_int(para_ent[id], EV_INT_gaitsequence, 1)
            entity_set_float(para_ent[id], EV_FL_frame, 0.0)
            entity_set_float(para_ent[id], EV_FL_fuser1, 0.0)
            entity_set_float(para_ent[id], EV_FL_animtime, 0.0)
            entity_set_float(para_ent[id], EV_FL_framerate, 0.0)
            return
        }

        frame = entity_get_float(para_ent[id],EV_FL_fuser1) + 2.0
        entity_set_float(para_ent[id],EV_FL_fuser1,frame)
        entity_set_float(para_ent[id],EV_FL_frame,frame)

        if (frame > 254.0) {
            remove_entity(para_ent[id])
            para_ent[id] = 0
        }
    }

    if (uzywa[id]) {

        new Float:velocity[3]
        entity_get_vector(id, EV_VEC_velocity, velocity)

        if (velocity[2] < 0.0) {

            if(para_ent[id] <= 0) {
                para_ent[id] = create_entity("info_target")
                if(para_ent[id] > 0) {
                    entity_set_string(para_ent[id],EV_SZ_classname,"parachute")
                    entity_set_edict(para_ent[id], EV_ENT_aiment, id)
                    entity_set_edict(para_ent[id], EV_ENT_owner, id)
                    entity_set_int(para_ent[id], EV_INT_movetype, MOVETYPE_FOLLOW)
                    entity_set_model(para_ent[id], "models/parachute.mdl")
                    entity_set_int(para_ent[id], EV_INT_sequence, 0)
                    entity_set_int(para_ent[id], EV_INT_gaitsequence, 1)
                    entity_set_float(para_ent[id], EV_FL_frame, 0.0)
                    entity_set_float(para_ent[id], EV_FL_fuser1, 0.0)
                }
            }

            if (para_ent[id] > 0) {

                entity_set_int(id, EV_INT_sequence, 3)
                entity_set_int(id, EV_INT_gaitsequence, 1)
                entity_set_float(id, EV_FL_frame, 1.0)
                entity_set_float(id, EV_FL_framerate, 1.0)
                set_user_gravity(id, 0.1)

                velocity[2] = (velocity[2] + 40.0 < fallspeed) ? velocity[2] + 40.0 : fallspeed
                entity_set_vector(id, EV_VEC_velocity, velocity)

                if (entity_get_int(para_ent[id],EV_INT_sequence) == 0) {
                    
                    frame = entity_get_float(para_ent[id],EV_FL_fuser1) + 1.0
                    entity_set_float(para_ent[id],EV_FL_fuser1,frame)
                    entity_set_float(para_ent[id],EV_FL_frame,frame)

                    if (frame > 100.0) {
                        pozostale_spadochrony[id]--;
                        entity_set_float(para_ent[id], EV_FL_animtime, 0.0)
                        entity_set_float(para_ent[id], EV_FL_framerate, 0.4)
                        entity_set_int(para_ent[id], EV_INT_sequence, 1)
                        entity_set_int(para_ent[id], EV_INT_gaitsequence, 1)
                        entity_set_float(para_ent[id], EV_FL_frame, 0.0)
                        entity_set_float(para_ent[id], EV_FL_fuser1, 0.0)
                    }
                }
            }
        }
        else if (para_ent[id] > 0) {
            remove_entity(para_ent[id])
            set_user_gravity(id, 1.0)
            para_ent[id] = 0
        }
    }
    else if (para_ent[id] > 0 ) {
        remove_entity(para_ent[id])
        set_user_gravity(id, 1.0)
        para_ent[id] = 0
    }
}
public ResetHUD(id)
{
    uzywa[id] = false;
    pozostale_spadochrony[id] = 55;
}

Poprawa pluginu na runde rozgrzewkowa

17.04.2012 18:01

Witam
Posiadam plugin na runde rozgrzewkawa na he i jest problem bo ma ona trwac 60 sekund a trwa 1 sekunde , proszę o naprawe.

#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <fakemeta_util>
#include <hamsandwich>

#define PLUGIN "Rozgrzewka nr blablabla"
#define VERSION "1.2.2"
#define AUTHOR "R3X"

new const gszMusic[]="misc/twoj.mp3"; //cstrike/sound/[gszMusic]
new const gszPausePlugins[][]={
    "alt_end_round_sounds.amxx"
};

new const giColor[3]={0, 200,200};

#define MAX_PLAYERS 32
#define SPAWN_TASKID 9999
#define TASK_EQUIP 99999
#define RESTART_TASKID 123
#define ACTIVE_TASKID 124

new bool:Active=false;
new bool:gbPlay[33];

new Float:fPosition[2];

new g_cvarRTime;
new g_cvarFreeze;
new g_cvarTimerX,g_cvarTimerY, g_cvarDelay, g_cvarSpawnDelay;

public plugin_init() {
    register_plugin(PLUGIN, VERSION, AUTHOR);
    
    register_event("TextMsg", "Game_Restart", "a", "2&#Game_C");
    register_event("DeathMsg","onDeath","a");
    register_event("CurWeapon","eventCurWeapon","be","1=0", "2!0");
    
    RegisterHam(Ham_Spawn, "player", "fwSpawn",1);
    register_forward(FM_SetModel, "fwSetModel",1);
    register_event("HLTV", "setWeapons", "a", "1=0", "2=0");
    
    g_cvarRTime=register_cvar("restart_time","45");
    g_cvarTimerX=register_cvar("restart_timer_pozx","0.01",0,0.01);
    g_cvarTimerY=register_cvar("restart_timer_pozy","0.86",0,0.86);
    g_cvarDelay=register_cvar("restart_weapondelay","2.0",0,2.0);
    g_cvarSpawnDelay=register_cvar("restart_spawndelay","2.0",0,2.0);
    
    g_cvarFreeze=get_cvar_pointer("mp_freezetime");
    
    blockBuy();
}    
public plugin_precache(){
    precache_sound(gszMusic);
}

public Game_Restart(){
    if(Active){
        remove_task(RESTART_TASKID);
        return;
    }
    Active=true;
    new iRTime=get_pcvar_num(g_cvarRTime)+get_pcvar_num(g_cvarFreeze)+1;
    
    for(new i=1;i<33;i++)
        gbPlay[i]=true;

    fPosition[0]=get_pcvar_float(g_cvarTimerX);
    fPosition[1]=get_pcvar_float(g_cvarTimerY);
    new param[1];
    param[0]=iRTime;
    set_task(1.0,"CountDown",RESTART_TASKID,param,1);
    
    for(new i=0;i<sizeof gszPausePlugins;i++)
        pause("ac",gszPausePlugins[i]);
}
public CountDown(param[1]){
    new iNow=param[0]--;
    switch(iNow){
        case 0:{
            server_cmd("sv_restartround 1");
            clearRespawns();
            new param[1];
            param[0]=0;
            set_task(1.0,"Activation",ACTIVE_TASKID,param,1);
            for(new i=0;i<sizeof gszPausePlugins;i++)
                unpause("ac",gszPausePlugins[i]);
        }
        case 1:{
            client_cmd(0,"speak one");
        }
        case 2:{
            client_cmd(0,"speak two");
        }
        case 3:{
            client_cmd(0,"speak three");
        }
    }
    if(iNow>=1)
        set_task(1.0,"CountDown",RESTART_TASKID,param,1);
    new fx=0;
    if(iNow<=5){
        fx=1;
    }
    set_hudmessage(giColor[0], giColor[1], giColor[2], fPosition[0], fPosition[1], fx, 6.0, 1.0)
    show_hudmessage(0, "Czas rozgrzewki^n%2d:%02d",iNow/60,iNow%60);
}
public Activation(param[1]){
    Active=(param[0]==0)?false:true;
}
public onDeath(){
    new vid=read_data(2);
    if(Active)
        set_task(get_pcvar_float(g_cvarSpawnDelay),"respawn",SPAWN_TASKID+vid);
    return PLUGIN_CONTINUE;
}
public fwSpawn(id){
    if(Active && is_user_alive(id)){
        if(gbPlay[id]){
            play(id, gszMusic);
            gbPlay[id]=false;
        }
        if(task_exists(TASK_EQUIP+id))
            remove_task(TASK_EQUIP+id);
        set_task(0.2, "taskEquip", TASK_EQUIP+id);
    }
}
public eventCurWeapon(id){
    if(Active){
        if(task_exists(TASK_EQUIP+id))
            remove_task(TASK_EQUIP+id);
        set_task(0.5, "taskEquip", TASK_EQUIP+id);
    }
}
public taskEquip(id){
    id-=TASK_EQUIP;
    if(Active && is_user_alive(id)){
        fm_strip_user_weapons(id);
        fm_give_item(id, "weapon_hegrenade");
    }
}
public fwSetModel(ent, szModel[]){
    if(Active){
        if(equal(szModel[7], "w_hegrenade.mdl"))
            set_task(get_pcvar_float(g_cvarDelay), "taskEquip", TASK_EQUIP+pev(ent,pev_owner));
        else{
            static szClass[32];
            pev(ent, pev_classname,szClass ,31);
            if(equal(szClass, "weaponbox") ||
            contain(szClass, "weapon_")==0 ||
            contain(szClass, "item_")==0
            ){
                set_pev(ent, pev_solid, SOLID_NOT);
                fm_set_rendering(ent, _, _,_,_,kRenderTransAlpha,0);
            }
        }
    }
}
public respawn(task_id){
    ExecuteHamB(Ham_CS_RoundRespawn,task_id-SPAWN_TASKID);
}
public clearRespawns(){
    for(new i=1;i<=MAX_PLAYERS;i++){
        if(task_exists(SPAWN_TASKID+i))
            remove_task(SPAWN_TASKID+i);
        if(task_exists(TASK_EQUIP+i))
            remove_task(TASK_EQUIP+i);
    }
}

public blockBuy(){
    register_clcmd("drop","block")
    register_clcmd("cl_setautobuy","block")
    register_clcmd("cl_autobuy","block")
    register_clcmd("cl_setrebuy","block")
    register_clcmd("cl_rebuy","block")
    register_clcmd("buy","block")
    register_clcmd("p228","block");
    register_clcmd("228compact","block");
    register_clcmd("shield","block");
    register_clcmd("scout","block");    
    register_clcmd("hegren","block");                      
    register_clcmd("xm1014","block");
    register_clcmd("autoshotgun","block");                                 
    register_clcmd("mac10","block");                        
    register_clcmd("aug","block");
    register_clcmd("bullpup","block");
    register_clcmd("sgren","block");   
    register_clcmd("elites","block");     
    register_clcmd("fn57","block");
    register_clcmd("fiveseven","block");  
    register_clcmd("ump45","block");                        
    register_clcmd("sg550","block");
    register_clcmd("krieg550","block");   
    register_clcmd("galil","block");
    register_clcmd("defender","block");  
    register_clcmd("famas","block");
    register_clcmd("clarion","block");   
    register_clcmd("usp","block");
    register_clcmd("km45","block");        
    register_clcmd("glock","block");
    register_clcmd("9x19mm","block");     
    register_clcmd("awp","block");
    register_clcmd("magnum","block");     
    register_clcmd("mp5","block");
    register_clcmd("smg","block");         
    register_clcmd("m249","block");                          
    register_clcmd("m3","block");
    register_clcmd("12gauge","block");   
    register_clcmd("m4a1","block");                          
    register_clcmd("tmp","block");
    register_clcmd("mp","block");            
    register_clcmd("g3sg1","block");
    register_clcmd("d3au1","block");    
    register_clcmd("flash","block");                        
    register_clcmd("deagle","block");
    register_clcmd("nighthawk","block");
    register_clcmd("sg552","block");
    register_clcmd("krieg552","block");   
    register_clcmd("ak47","block");
    register_clcmd("cv47","block");                                         
    register_clcmd("p90","block");
    register_clcmd("c90","block");
    register_clcmd("primammo","block");
    register_clcmd("secammo","block");
    register_clcmd("vest","block");
    register_clcmd("vesthelm","block");
    register_clcmd("nvgs","block");
}
public block(id){
    if(Active){
        client_print(id,print_center,"Nie tym razem");
        return PLUGIN_HANDLED;
    }
    return PLUGIN_CONTINUE;
}
public setWeapons(){
    //weapons
    new ent=-1;
    do{
        ent=engfunc(EngFunc_FindEntityByString, ent,"classname", "armoury_entity");
        if(pev_valid( ent )) {
            set_pev(ent, pev_solid, (Active)?SOLID_NOT:1);
            fm_set_rendering(ent,kRenderFxNone, 0,0,0, kRenderTransTexture,(Active)?0:255);
        }
    }
    while(ent);
}

play(id,const sound[])
{
    new end=strlen(sound)-4;
    if(containi(sound,".mp3") == end && end>0)
        client_cmd(id,"mp3 play sound/%s",sound);
    else if(containi(sound,".wav") == end && end>0)
        client_cmd(id, "spk sound/%s",sound);
    else
        client_cmd(id, "speak %s",sound);
    
}

Runda rozgrzewkowa

15.04.2012 16:17

Witam szukam pluginu na runde rozgrzewkową w trybie DM na he + mp3