Help Me - Forum
Counter-Strike Federation Welcome , Leecher | RSS | Saturday, 10 December 16
A Place Where Player Becomes Developer Home | Sign Up | Log In
[ New messages · Members · Forum rules · Search · RSS ]
Page 1 of 11
Forum » AMX Mod X » Scripting » Scripting Help » Help Me (Cara Plugin Yang Mendapatkan Ammo Dan Nade Setiap Awal Round)
Help Me
Grade: Copral edomasterDate: Friday, 24 July 15, 8:00 PM | Message # 1
Copral
Clan: Member
Experience: 18
Status: Offline
Cara Buat Plugin Yang Hanya Bisa Digunakan 1x Setiap Round Dan Plugin Yang Mendapatkan Ammo Dan Nade Setiap Awal Round Gimana Ya ??

Message edited by edomaster - Friday, 24 July 15, 8:16 PM
 
Grade: Commander DavidJrDate: Friday, 24 July 15, 8:05 PM | Message # 2
Commander
Clan: Executive
Experience: 2256
Status: Offline
Benerin judulnya, judul sm isi nya gak nyambung.
Post codingannya udah sejauh apa


posted via BlackBerry

Personal Site | CSF Website
 
Grade: Copral edomasterDate: Friday, 24 July 15, 8:17 PM | Message # 3
Copral
Clan: Member
Experience: 18
Status: Offline

Quote
#include <amxmodx>
#include <cstrike>
#include <amxmisc>
#include <hamsandwich>
#include <dhudmessage>

#define TASK_AMBIENCE 1719
#define TASK_GELAP 1395
#define TASK_PESAWAT 1253
#define SOUND "-=[Zombie Darkness]=-
new const g_szSounds[][] =
{
"sound/EDo/ZB4_Start.mp3",
"sound/EDo/ZB4_Start.mp3"
}
new const g_ambience[] = "sound/EDo/Zombi_Ambience.mp3"
new const g_dark_datang[] = "sound/EDo/malam.mp3"
new const planes[] = "EDo/planes_bomb.wav"

public plugin_precache()
{
for(new i = 0; i < sizeof(g_szSounds); i++)
precache_generic(g_szSounds)

precache_generic(g_dark_datang)
precache_generic(g_ambience)
precache_sound(planes)
}
public plugin_init()
{
register_plugin( "Start Round Sound", "1.0", "Tonev" )
register_event("HLTV", "Event_HLTV", "a", "1=0", "2=0")
register_logevent( "Event_Round_Start", 2, "1=Round_Start" )
register_logevent("logevent_round_end", 2, "1=Round_End")
}

public Event_HLTV()
{
remove_task()
client_cmd( 0, "mp3 stop")
}

public Event_Round_Start(id)
{
client_cmd( 0, "mp3 stop")
client_cmd( 0, "mp3 play %s", g_szSounds[random( sizeof(g_szSounds))])
remove_task()

set_task(24.0, "play_ambience")
set_task(75.0, "play_dark")
set_task(150.0, "play_pesawat")

}

public play_ambience()
{
set_dhudmessage(0, 180, 255, -1.0, 0.28, 2, 0.02, 1.0, 0.01, 0.1, 10)
show_dhudmessage(0, "-=[Edited By EDo]=-")
client_cmd( 0, "mp3 play %s", g_ambience)
}

public play_dark()
{
set_dhudmessage(0, 180, 255, -1.0, 0.28, 2, 0.02, 1.0, 0.01, 0.1, 10)
show_dhudmessage(0, "-=[Malam Telah Tiba !!!!]=-")
client_cmd( 0, "mp3 play %s", g_dark_datang)
}

public play_pesawat()
{
set_dhudmessage(0, 180, 255, -1.0, 0.28, 2, 0.02, 1.0, 0.01, 0.1, 10)
show_dhudmessage(0, "-=[Pagi Telah Tiba !!!]=-")
client_cmd(0, "spk ^"%s^"", planes)
/////Dibagian Ini Akan Mendapatkan Ammo Dan Nade !!!!

}

public logevent_round_end(id)
{
remove_task(id)
}

Tuh Om :3


Message edited by edomaster - Friday, 24 July 15, 8:20 PM
 
Grade: Commander DavidJrDate: Friday, 24 July 15, 8:25 PM | Message # 4
Commander
Clan: Executive
Experience: 2256
Status: Offline
Itu tiap round udah otomatis play 1x

posted via BlackBerry

Personal Site | CSF Website
 
Grade: Copral edomasterDate: Friday, 24 July 15, 8:29 PM | Message # 5
Copral
Clan: Member
Experience: 18
Status: Offline
bkan om itu masalah yang pertama om :3

Kan

public play_pesawat()
{
set_dhudmessage(0, 180, 255, -1.0, 0.28, 2, 0.02, 1.0, 0.01, 0.1, 10)
show_dhudmessage(0, "-=[Pagi Telah Tiba !!!]=-")
client_cmd(0, "spk ^"%s^"", planes)
/////Dibagian Ini Akan Mendapatkan Ammo Dan Nade (Command Mendapatkan Ammo Dan Nade) 

}

Mksd nya Itu Pada Saat Music / Play_pesawat Itu Keluar Kita Mendapatkan Ammo Dan Nade
 
Grade: Commander DavidJrDate: Friday, 24 July 15, 8:33 PM | Message # 6
Commander
Clan: Executive
Experience: 2256
Status: Offline
Quote edomaster ()
Cara Buat Plugin Yang Hanya Bisa Digunakan 1x Setiap Round

Quote edomaster ()
Mksd nya Itu Pada Saat Music / Play_pesawat Itu Keluar Kita Mendapatkan Ammo Dan Nade
......................................................................................





posted via BlackBerry

Personal Site | CSF Website
 
Grade: Copral edomasterDate: Friday, 24 July 15, 8:36 PM | Message # 7
Copral
Clan: Member
Experience: 18
Status: Offline
Nih Yang Kedua om :v plugin hasil edit an dan port an dari zp udh ane buatin menu nya jga


Quote
#include <amxmodx>
#include <engine>
#include <fakemeta>
#include <cs_maxspeed_api>
#include <hamsandwich>
#include <nst_zombie>

#define TASK_REMOVE1 2425425
#define TASK_REMOVE2 2426426
#define TASK_REMOVE3 2427427

#define DEAD_BIND "f5"
#define BB_BIND "f6"
#define SPR_BIND "f7"

#define NONE_SPRINT        (IN_BACK|IN_MOVELEFT|IN_MOVERIGHT|IN_JUMP|IN_DUCK|IN_ALT1)

new bool:has_deadly[33]
new bool:using_deadly[33]
new bool:has_sprint[33]
new bool:using_sprint[33]
new bool:has_bloody[33]
new bool:using_bloody[33]
new bool:has_kick[33]
new g_MaxPlayers
const fastrun_fov = 112
new sync_hud1
new cvar_deadlyshot_time, cvar_bloody_time
new g_spr_headshot, g_Ham_Bot, g_spr_bloody
new cvar_sprint_time
new g_msgSetFOV
new cvar_sprintspeedmultiplier
new Float:flSprintSpeedMultiplier

new const sound_skill_start[] = "nst_skill/fastrun_start.wav"
new const sound_skill_start2[] = "nst_skill/sprint.wav"

public plugin_init()
{
    register_plugin("Human SKills", "1.0", "m4m3ts")
    
    register_forward(FM_CmdStart, "fw_CmdStart")
    RegisterHam(Ham_TraceAttack, "player", "fw_traceattack")
    RegisterHam(Ham_Spawn, "player", "fw_PlayerSpawn_Post", 1)
    cvar_deadlyshot_time = register_cvar("ds_time", "6.0")
    cvar_sprintspeedmultiplier = register_cvar("sp_sprint_speed_multiplier", "400.0")
    cvar_sprint_time = register_cvar("sprint_time", "13.0")
    cvar_bloody_time = register_cvar("bb_time", "6.0")
    
    register_clcmd("ok","use_bb")
    register_clcmd("sprint","use_sprint")
    register_clcmd("deadly","use_deadly")
    
    register_clcmd("nst_skill","test_kok")
    
    g_msgSetFOV = get_user_msgid("SetFOV")
    
    sync_hud1 = CreateHudSyncObj(1)
}

public plugin_precache()
{
    g_spr_headshot = precache_model("sprites/extra/z4_critical.spr")
    g_spr_bloody = precache_model("sprites/extra/zb_meleeup.spr")
    precache_sound(sound_skill_start)
    precache_sound(sound_skill_start2)
}

public fw_CmdStart(id, uc_handle, seed)
{
    if(!is_user_alive(id) || using_sprint[id])
        return FMRES_IGNORED
    
    static iButton
    iButton = get_uc(uc_handle, UC_Buttons)
    
    if(iButton & NONE_SPRINT)
    {
        cs_reset_player_maxspeed(id)
    }
    
    return FMRES_IGNORED
}

public plugin_cfg()
{
    flSprintSpeedMultiplier = get_pcvar_float(cvar_sprintspeedmultiplier)
}

public client_putinserver(id)
{
    if(!g_Ham_Bot && is_user_bot(id))
    {
        g_Ham_Bot = 1
        set_task(0.1, "Do_RegisterHam_Bot", id)
    }
}
public fw_PlayerSpawn_Post(id)
{
        client_printc(id, "!g[NST Skill]!n Tekan !g[F4]!n Untuk Menu !tSkill!n")

    remove_ds(id)
    has_sprint [id]= false
    remove_sprint(id)
    has_bloody [id]= false
    remove_bb(id)
    has_deadly [id]= false
}
public client_connect(id)
{
    //Do we bind a key    
    #if defined DEAD_BIND
    client_cmd(id,"bind %s ^"deadly^"", DEAD_BIND);
    #endif
    
    #if defined SPR_BIND
    client_cmd(id,"bind %s ^"sprint^"", SPR_BIND);
    #endif
    
    // Do we bind a key    
    #if defined BB_BIND
    client_cmd(id,"bind %s ^"ok^"", BB_BIND);
    #endif
    
}

public Do_RegisterHam_Bot(id)
{
    RegisterHamFromEntity(Ham_TraceAttack, id, "fw_traceattack")
}
public give_sprint(id)
{
        has_sprint [id]= true
        using_sprint [id]= false
}

public give_ds(id)
{
        has_deadly [id]= true
        using_deadly [id]= false        
}

public give_bb(id)
{
        has_bloody [id]= true
        using_bloody [id]= false
}

public nst_zb_user_infected(id)
{
    remove_ds(id)
    has_sprint [id]= false
    remove_sprint(id)
    has_bloody [id]= false
    remove_bb(id)
    has_deadly [id]= false
}

HS_sprite(id)
{
    if (!is_user_alive(id)) return;
    
    static origin[3]
    get_user_origin(id, origin)
    
    message_begin(MSG_PVS, SVC_TEMPENTITY, origin)
    write_byte(TE_SPRITE)
    write_coord(origin[0])
    write_coord(origin[1])
    write_coord(origin[2]+32)
    write_short(g_spr_headshot)
    write_byte(2)
    write_byte(192)
    message_end()
}

bloody_sprite(id)
{
    if (!is_user_alive(id)) return;
    
    static origin[3]
    get_user_origin(id, origin)
    
    message_begin(MSG_PVS, SVC_TEMPENTITY, origin)
    write_byte(TE_SPRITE)
    write_coord(origin[0])
    write_coord(origin[1])
    write_coord(origin[2]+30)
    write_short(g_spr_bloody)
    write_byte(10)
    write_byte(192)
    message_end()
}
public client_PostThink(id)
{
    if(!is_user_alive(id))
        return
    if(nst_zb_get_user_zombie(id))
        return
        
    static Float:CurTime, Float:g_hud_delay[33], Float:CurTime2, Float:g_hud_delay2[33]
    CurTime = get_gametime()
    CurTime2 = get_gametime()
    has_kick [id]= true
    if(CurTime - 1.0 > g_hud_delay[id])
    {
        show_hud(id)
        
        g_hud_delay [id]= CurTime
    }
    
    if(CurTime2 - 0.1 > g_hud_delay2[id])
    {
        if(using_deadly[id]) HS_sprite(id)
        if(using_bloody[id]) bloody_sprite(id)
        
        g_hud_delay2 [id]= CurTime2
    }
}
public test_kok(id)
{
    if(!is_user_alive(id))
        return
    if(nst_zb_get_user_zombie(id))
         {
    client_printc(id, "!g[NST Skill]!n Zombie Tidak Dapat Menggunakan !tSkill!n")
    return
    }
    new title[64];
         format(title, 64, "[NST Skill Menu]")
    new menu = menu_create(title, "MenuHandle_Emo")  
    {
        menu_additem( menu, "DeadlyShot -> [Free]", "1" )
        menu_additem( menu, "BloodyBlade -> [Free]", "2" )
        menu_additem( menu, "Sprint -> [Free]", "3")
        menu_additem( menu, "Buy All Skill -> [Free]", "4")
    }
    
    menu_additem( menu, "Exit", "MENU_EXIT" )
    menu_setprop(menu, MPROP_PERPAGE, 0)
    menu_display(id, menu, 0)
    return
}

public MenuHandle_Emo(id, menu, item)
{
    if( item == MENU_EXIT ) {
        menu_destroy(menu)
        return
    }
    
    if(!is_user_alive(id))
        return
    {
            switch(item) {
            case 0:{
                give_ds(id)
                
                client_printc(id, "!g[NST Skill]!n Kamu Membeli !tDeadlyShot!n")
            }
            case 1:{
                give_bb(id)
                
                client_printc(id, "!g[NST Skill]!n Kamu Membeli !tBloodyBlade!n")
            }
            case 2:{
                give_sprint(id)
                
                client_printc(id, "!g[NST Skill]!n Kamu Membeli !tSprint!n")
            }
            case 3:{
                give_sprint(id), give_bb(id), give_ds(id)
                
                client_printc(id, "!g[NST Skill]!n Kamu Membeli !tSemua Skill!n")
            }
            
        }
    }

    return
}
public show_hud(id)
{
    static Temp_String_Sprint[128], Temp_String_DeadlyShot[128], Temp_String_BloodyBlade[128], Temp_String_Kick[128]
    static Temp_String_Hud[128]
    
    if(has_deadly[id])
    {
        formatex(Temp_String_DeadlyShot, sizeof(Temp_String_DeadlyShot), "^n[ Press F5 ] -> Active Deadly Shot")
    } else if(using_deadly[id]) {
        formatex(Temp_String_DeadlyShot, sizeof(Temp_String_DeadlyShot), "^nDeadly Shot - Actived")
    } else {
        formatex(Temp_String_DeadlyShot, sizeof(Temp_String_DeadlyShot), " ^n[ Press E ] -> Kick Zombie")
    }
    
    if(has_bloody[id])
    {
        formatex(Temp_String_BloodyBlade, sizeof(Temp_String_BloodyBlade), "^n[ Press F6 ] -> Active Bloody Blade")
    } else if(using_bloody[id]) {
        formatex(Temp_String_BloodyBlade, sizeof(Temp_String_BloodyBlade), "^nBloody Blade - Actived")
    } else {
        formatex(Temp_String_BloodyBlade, sizeof(Temp_String_BloodyBlade), "")
    }
    
    if(has_sprint[id])
    {
        formatex(Temp_String_Sprint, sizeof(Temp_String_Sprint), "^n[ Press F7 ] -> Active Sprint")
    } else if(using_sprint[id]) {
        formatex(Temp_String_Sprint, sizeof(Temp_String_Sprint), "^nSprint - Actived")
    } else {
        formatex(Temp_String_Sprint, sizeof(Temp_String_Sprint), "")
    }
    
    if(has_kick[id])
    {
    formatex(Temp_String_Kick, sizeof(Temp_String_Kick), "^n[ Press E ] -> Kick Zombie")    
         }
    formatex(Temp_String_Hud, sizeof(Temp_String_Hud), "%s%s%s", Temp_String_DeadlyShot, Temp_String_BloodyBlade, Temp_String_Sprint, Temp_String_Kick)
    
    set_hudmessage(0, 255, 0, -1.0, -0.79, 0, 2.0, 10.0)
    ShowSyncHudMsg(id, sync_hud1, Temp_String_Hud)
}

public use_deadly(id)
{    
    if(has_deadly [id]&& !using_deadly[id])
        {
            has_deadly [id]= false
            using_deadly [id]= true
            set_task(get_pcvar_float(cvar_deadlyshot_time), "remove_headshot_mode", id+TASK_REMOVE1)
            PlayEmitSound(id, sound_skill_start)
            
            message_begin(MSG_ONE, get_user_msgid("ScreenFade"), _, id);
            write_short(1<<12);
            write_short(6<<12);
            write_short(1<<12);
            write_byte(150);
            write_byte(150);
            write_byte(0);
            write_byte(80);
            message_end();
        }
}

public use_sprint(id)
{
    if(has_sprint [id]&& !using_sprint [id]&& is_user_alive(id))
        {
            has_sprint [id]= false
            using_sprint [id]= true
            Effectsprint(id, fastrun_fov)
            cs_set_player_maxspeed(id, flSprintSpeedMultiplier, false)
            ScreenFade(id, 8.0, 100, 150, 0, 80)
            set_task(8.0, "slow_speed", id)
            set_task(get_pcvar_float(cvar_sprint_time), "remove_sprint_mode", id+TASK_REMOVE2)
            PlayEmitSound(id, sound_skill_start2)
        }
}
public use_bb(id)
{
    if(has_bloody [id]&& !using_bloody[id])
        {
            has_bloody [id]= false
            using_bloody [id]= true
            set_task(get_pcvar_float(cvar_bloody_time), "remove_bloody_mode", id+TASK_REMOVE3)
            PlayEmitSound(id, sound_skill_start)
            
            message_begin(MSG_ONE, get_user_msgid("ScreenFade"), _, id);
            write_short(1<<12);
            write_short(6<<12);
            write_short(1<<12);
            write_byte(150);
            write_byte(150);
            write_byte(0);
            write_byte(80);
            message_end();            
        }
}

Effectsprint(id, num = 90)
{
    message_begin(MSG_ONE, g_msgSetFOV, {0,0,0}, id)
    write_byte(num)
    message_end()
}

public remove_sprint(id)
{
    if(has_sprint [id]|| using_sprint[id])
    {
        has_sprint [id]= false
        using_sprint [id]= false        
        
        if(task_exists(id+TASK_REMOVE2)) remove_task(id+TASK_REMOVE2)
    }    
}

public remove_sprint_mode(id)
{
    id -= TASK_REMOVE2
    
    has_sprint [id]= false
    using_sprint [id]= false
    Effectsprint(id)
    cs_reset_player_maxspeed(id)
}

public slow_speed(id)
{
    if(is_user_connected(id) && is_user_alive(id)) cs_set_player_maxspeed(id, 110.0, false)
}

stock ScreenFade(plr, Float:fDuration, red, green, blue, alpha)
{
    new i = plr ? plr : get_maxplayers();
    if( !i )
    {
        return 0;
    }
    
    message_begin(plr ? MSG_ONE : MSG_ALL, get_user_msgid( "ScreenFade"), {0, 0, 0}, plr);
    write_short(floatround(4096.0 * fDuration, floatround_round));
    write_short(floatround(4096.0 * fDuration, floatround_round));
    write_short(4096);
    write_byte(red);
    write_byte(green);
    write_byte(blue);
    write_byte(alpha);
    message_end();
    
    return 1;
}

PlayEmitSound(id, const sound[])
{
    emit_sound(id, CHAN_VOICE, sound, 1.0, ATTN_NORM, 0, PITCH_NORM)
}

public fw_traceattack(victim, attacker, Float:damage, direction[3], traceresult, dmgbits)
{
    if(victim != attacker && is_user_connected(attacker) && using_deadly [attacker]&& nst_zb_get_user_zombie(victim))
    {
        set_tr2(traceresult, TR_iHitgroup, HIT_HEAD)
    }
    
    if(victim != attacker && is_user_connected(attacker) && nst_zb_get_user_zombie(victim) && !nst_zb_get_user_zombie(attacker) && using_bloody [attacker]&& get_user_weapon(attacker) == CSW_KNIFE)
    {
        SetHamParamFloat(3, damage*2)
    }
}

public remove_ds(id)
{
    if(has_deadly [id]|| using_deadly[id])
    {
        has_deadly [id]= false
        using_deadly [id]= false        
        
        if(task_exists(id+TASK_REMOVE1)) remove_task(id+TASK_REMOVE1)
    }    
}

public remove_headshot_mode(id)
{
    id -= TASK_REMOVE1
    
    has_deadly [id]= false
    using_deadly [id]= false
}

public remove_bb(id)
{
    if(has_bloody [id]|| using_bloody[id])
    {
        has_bloody [id]= false
        using_bloody [id]= false        
        
        if(task_exists(id+TASK_REMOVE3)) remove_task(id+TASK_REMOVE3)
    }    
}

public remove_bloody_mode(id)
{
    id -= TASK_REMOVE3
    
    has_bloody [id]= false
    using_bloody [id]= false    
}
stock client_printc(index, const text[], any:...)
{
    new szMsg[128];
    vformat(szMsg, sizeof(szMsg) - 1, text, 3);

    replace_all(szMsg, sizeof(szMsg) - 1, "!g", "^x04");
    replace_all(szMsg, sizeof(szMsg) - 1, "!n", "^x01");
    replace_all(szMsg, sizeof(szMsg) - 1, "!t", "^x03");

    if(index == 0)
    {
        for(new i = 0; i < g_MaxPlayers; i++)
        {
            if(!is_user_connected(i))
                continue
            
            message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, i)
            write_byte(i)
            write_string(szMsg)
            message_end()
        }        
    } else {
        message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, index);
        write_byte(index);
        write_string(szMsg);
        message_end();
    }
}


Biar Agar Skill Nya Bisa Di Gunakan 1x Setiap Round Gimana :v
 
Grade: Commander DavidJrDate: Friday, 24 July 15, 8:39 PM | Message # 8
Commander
Clan: Executive
Experience: 2256
Status: Offline
Bikin global variabel baru, e.g:

Code
new bool:gPlay[32];


Tambahin sintaks nya di function use skill nya

Code
if (gPlay [id]== true) return;
else gPlay [id]= true;

// attack code


posted via BlackBerry

Personal Site | CSF Website
 
Grade: Copral edomasterDate: Friday, 24 July 15, 8:50 PM | Message # 9
Copral
Clan: Member
Experience: 18
Status: Offline
Quote
public give_sprint(id)
{
        if (gPlay [id]== true) return;
        else gPlay [id]= true
        has_sprint [id]= true
        using_sprint [id]= false
}

public give_ds(id)
{
        if (gPlay [id]== true) return;
        else gPlay [id]= true
        has_deadly [id]= true
        using_deadly [id]= false        
}

public give_bb(id)
{
        if (gPlay [id]== true) return;
        else gPlay [id]= true
        has_bloody [id]= true
        using_bloody [id]= false
}
 Gini ?

Added (24 July 15, 8:50 PM)
---------------------------------------------

Code
#include <amxmodx>
#include <cstrike>
#include <amxmisc>
#include <fun>
#include <hamsandwich>
#include <dhudmessage>

#define TASK_AMBIENCE 1719
#define TASK_GELAP 1395
#define TASK_PESAWAT 1253
#define SOUND "-=[Zombie Darkness]=-
new const g_szSounds[][] =
{
     "sound/EDo/ZB4_Start.mp3",
     "sound/EDo/ZB4_Start.mp3"
}
new const g_ambience[] = "sound/EDo/Zombi_Ambience.mp3"
new const g_dark_datang[] = "sound/EDo/malam.mp3"
new const planes[] = "EDo/planes_bomb.wav"

public plugin_precache()
{
     for(new i = 0; i < sizeof(g_szSounds); i++)
         precache_generic(g_szSounds[i])
      
     precache_generic(g_dark_datang)
     precache_generic(g_ambience)
     precache_sound(planes)
}
public plugin_init()
{
     register_plugin( "Start Round Sound", "1.0", "Tonev" )
     register_event("HLTV", "Event_HLTV", "a", "1=0", "2=0")
     register_logevent( "Event_Round_Start", 2, "1=Round_Start" )
     register_logevent("logevent_round_end", 2, "1=Round_End")
}

public Event_HLTV()
{
     remove_task()
     client_cmd( 0, "mp3 stop")
}

public Event_Round_Start(id)
{
     client_cmd( 0, "mp3 stop")
     client_cmd( 0, "mp3 play %s", g_szSounds[random( sizeof(g_szSounds))])
     remove_task()
      
     set_task(24.0, "play_ambience")
     set_task(75.0, "play_dark")
     set_task(150.0, "play_pesawat")
      
}

public play_ambience()
{
     set_dhudmessage(0, 180, 255, -1.0, 0.28, 2, 0.02, 1.0, 0.01, 0.1, 10)
     show_dhudmessage(0, "-=[Edited By EDo]=-")
     client_cmd( 0, "mp3 play %s", g_ambience)     
}

public play_dark()
{
     set_dhudmessage(0, 180, 255, -1.0, 0.28, 2, 0.02, 1.0, 0.01, 0.1, 10)
     show_dhudmessage(0, "-=[Malam Telah Tiba !!!!]=-")
     client_cmd( 0, "mp3 play %s", g_dark_datang)
}

public play_pesawat()
{
     set_dhudmessage(0, 180, 255, -1.0, 0.28, 2, 0.02, 1.0, 0.01, 0.1, 10)
     show_dhudmessage(0, "-=[Pagi Telah Tiba !!!]=-")
     client_cmd(0, "spk ^"%s^"", planes)
     Cmd_GiveWeapon(id)
}
public Cmd_GiveWeapon(id)
{
     give_item(id, "weapon_hegrenade")
     give_item(id, "weapon_smokegrenade")
}

public logevent_round_end(id)
{
     remove_task(id)
}


Bantu Koreksi Om :v
 
Grade: Commander DavidJrDate: Friday, 24 July 15, 8:55 PM | Message # 10
Commander
Clan: Executive
Experience: 2256
Status: Offline
Iya, bener

posted via BlackBerry

Personal Site | CSF Website
 
Grade: Copral edomasterDate: Friday, 24 July 15, 8:56 PM | Message # 11
Copral
Clan: Member
Experience: 18
Status: Offline
yangke 2 pas mau di compile error om :v
 
Grade: Commander DavidJrDate: Friday, 24 July 15, 9:10 PM | Message # 12
Commander
Clan: Executive
Experience: 2256
Status: Offline
Fix sendiri itu

posted via BlackBerry

Personal Site | CSF Website
 
Grade: Copral edomasterDate: Friday, 24 July 15, 9:21 PM | Message # 13
Copral
Clan: Member
Experience: 18
Status: Offline
ane fix pake gini aja :v bisa ga :v
Quote
client_cmd(0, "primammo;secammo;hegren;flash;flash;sgren;vesthelm;defuser")
Dari Pada Ribet :v
 
Forum » AMX Mod X » Scripting » Scripting Help » Help Me (Cara Plugin Yang Mendapatkan Ammo Dan Nade Setiap Awal Round)
Page 1 of 11
Search:

Mirum
sample map