Cerere m4a1[rezolvat!]

Categoria cu cereri de pluginuri si nu numai.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Forum rules
Accesează link-ul pentru a putea vedea regulile forumului

Daca doriti sa vi se modifice un plugin, va rugam postati aici .
Post Reply
User avatar
last.bllu3
Membru, skill +1
Membru, skill +1
Posts: 121
Joined: 30 Jul 2010, 17:32
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com!
Has thanked: 19 times
Contact:

11 Sep 2010, 18:08

Salut am sa fiu scurt si la obiect :d . Am si eu nevoie de un plugin..
Vreau ca m4a1 sa fie inlocuit cu acest model ClicK ..
Multumesc Anticipat :d
Last edited by Casual on 12 Sep 2010, 20:35, edited 1 time in total.
Reason: + [rezolvat!]
Image - [ HNS Clasic]
Image - [ HNS Clasic]
compaq
Fost moderator
Fost moderator
Posts: 2598
Joined: 01 Dec 2008, 15:32
Detinator Steam: Da
Reputatie: Fost eXtream Mod
Fost contribuitor
Fost manager
Fost Scripter eXtreamCS
Has thanked: 15 times
Been thanked: 150 times

11 Sep 2010, 19:43

| Afiseaza codul
[code]#include < amxmodx >
#include < engine >

#pragma semicolon 1

new const g_Version[] = "0.1";

new const g_Mdls[][] =
{
    "models/p_golden_m4a1_UP.mdl",
    "models/v_golden_m4a1_UP.mdl"
};

public plugin_init()
{
    register_plugin( "M4A1 mdl", g_Version, "compaq" );
    register_event( "CurWeapon", "eWeap", "be", "1=1" );
}

public plugin_precache()
{
    static i;

    for( i = 0; i < sizeof( g_Mdls ); i++ )
    {
        precache_model( g_Mdls[ i ] );
    }
}

public eWeap( id )
{
    new iWeapon = read_data( 2 );

    if( iWeapon == CSW_M4A1 )
    {
        static szvModel[ 56 ], szpModel[ 56 ];

        format( szvModel, charsmax( szvModel ), "%s", g_Mdls[ 1 ] );
        format( szpModel, charsmax( szpModel ), "%s", g_Mdls[ 0 ] );

        entity_set_string( id, EV_SZ_weaponmodel, szpModel );
        entity_set_string( id, EV_SZ_viewmodel, szvModel );
    }

    return PLUGIN_CONTINUE;
}[/code]
User avatar
last.bllu3
Membru, skill +1
Membru, skill +1
Posts: 121
Joined: 30 Jul 2010, 17:32
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com!
Has thanked: 19 times
Contact:

11 Sep 2010, 23:16

merge ! ms mult imi poti face si cu ak47?
Image - [ HNS Clasic]
Image - [ HNS Clasic]
User avatar
H3adShoT
Membru, skill +3
Membru, skill +3
Posts: 1254
Joined: 03 May 2009, 18:19
Detinator Steam: Da
CS Status: Nu mai incercati sa-mi furati contul!
Detinator server CS: Nimic
SteamID: PM
Reputatie: Restrictie moderator
Location: Hunedoara
Has thanked: 47 times
Been thanked: 92 times
Contact:

12 Sep 2010, 00:39

| Afiseaza codul
#include < amxmodx >
#include < engine >

#pragma semicolon 1

new const g_Version[] = "0.1";

new const g_Mdls[][] =
{
    "models/p_golden_ak47_UP.mdl",
    "models/v_golden_ak47_UP.mdl"
};

public plugin_init()
{
    register_plugin( "AK47 mdl", g_Version, "compaq" );
    register_event( "CurWeapon", "eWeap", "be", "1=1" );
}

public plugin_precache()
{
    static i;

    for( i = 0; i < sizeof( g_Mdls ); i++ )
    {
        precache_model( g_Mdls[ i ] );
    }
}

public eWeap( id )
{
    new iWeapon = read_data( 2 );

    if( iWeapon == CSW_AK47 )
    {
        static szvModel[ 56 ], szpModel[ 56 ];

        format( szvModel, charsmax( szvModel ), "%s", g_Mdls[ 1 ] );
        format( szpModel, charsmax( szpModel ), "%s", g_Mdls[ 0 ] );

        entity_set_string( id, EV_SZ_weaponmodel, szpModel );
        entity_set_string( id, EV_SZ_viewmodel, szvModel );
    }

    return PLUGIN_CONTINUE;
}
Retras din activitate.
User avatar
last.bllu3
Membru, skill +1
Membru, skill +1
Posts: 121
Joined: 30 Jul 2010, 17:32
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com!
Has thanked: 19 times
Contact:

12 Sep 2010, 16:02

Thanks MAn.. :d
Image - [ HNS Clasic]
Image - [ HNS Clasic]
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 30 guests