Cerere plugin + modificare

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
SaByUtZa VaSy ;x

11 Sep 2010, 22:01

As dori si eu pluginul din poza aceasta:
Image

Mai exact ce este cu albastru
Vreau sa mai adaugati la el ceva gen Harta: numele hartii

Atat! :)
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, 22:33

Vezi asa:
| Afiseaza codul
[code]#include < amxmodx >

#pragma semicolon 1

new const g_Version[] = "0.1";

new g_Map[ 33 ];
new g_Rounds;
new g_MaxPlayers;
new g_POn;

public plugin_init()
{
    register_plugin( "0v", g_Version, "compaq" );
    register_event( "HLTV", "eNewRound", "a", "1=0", "2=0" );
    
    get_mapname( g_Map, charsmax( g_Map ) );
    g_MaxPlayers = get_maxplayers();
    g_POn = get_playersnum( 1 );
}

public eNewRound()
{
    g_Rounds += 1;

    static iPlayers[ 32 ], iNum, i, Index;
    get_players( iPlayers, iNum );
    
    for( i = 0; i < iNum; i++ )
    {
        Index = iPlayers[ i ];
    
        set_hudmessage( 127, 212, 255, 0.02, 0.18, 0, 6.0, 12.0 );
        show_hudmessage( Index, "Incepe macelul!^nRunda cu numarul %d.^nPlayeri on: %d din %d.^nHarta: %s^nGood luck and have fun!", g_Rounds, g_POn, g_MaxPlayers, g_Map );
    }
    
    return PLUGIN_CONTINUE;
}[/code]
SaByUtZa VaSy ;x

11 Sep 2010, 23:13

Totul merge bine numai ca la playeri on apare 0 din 20 cand colo pe server sunt 7 playeri...
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

12 Sep 2010, 11:34

My bad.
| Afiseaza codul
[code]#include < amxmodx >

#pragma semicolon 1

new const g_Version[] = "0.1";

new g_Map[ 33 ];
new g_Rounds;
new g_MaxPlayers;
new g_POn;

public plugin_init()
{
    register_plugin( "0v", g_Version, "compaq" );
    register_event( "HLTV", "eNewRound", "a", "1=0", "2=0" );
    
    get_mapname( g_Map, charsmax( g_Map ) );
    g_MaxPlayers = get_maxplayers();
}

public eNewRound()
{
    g_Rounds += 1;
    g_POn = get_playersnum( 1 );

    static iPlayers[ 32 ], iNum, i, Index;
    get_players( iPlayers, iNum );
    
    for( i = 0; i < iNum; i++ )
    {
        Index = iPlayers[ i ];
    
        set_hudmessage( 127, 212, 255, 0.02, 0.18, 0, 6.0, 12.0 );
        show_hudmessage( Index, "Incepe macelul!^nRunda cu numarul %d.^nPlayeri on: %d din %d.^nHarta: %s^nGood luck and have fun!", g_Rounds, g_POn, g_MaxPlayers, g_Map );
    }
    
    return PLUGIN_CONTINUE;
}[/code]
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: Bing [Bot], Google [Bot] and 29 guests