Raised This Month: $51 Target: $400
 12% 

amxx request sma


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
raizo11
BANNED
Join Date: Dec 2013
Location: https://t.me/pump_upp
Old 01-23-2016 , 16:03   amxx request sma
Reply With Quote #1

Hi guys... ? I have a plugin for knife server only amxx , this plugin is private and need to pay for him...Can someone desasamble or make sma free for all? A lot of people search this plugin..
THIS WORKS ONLY ON 35HP_2 MAP
I want to work to all maps
Please guys Help me

i need a knife duels for respawn server and i want to play 10 or more round in duel

https://www.youtube.com/watch?v=od4qo7Mg-NE

Last edited by raizo11; 01-24-2016 at 06:23.
raizo11 is offline
Send a message via ICQ to raizo11 Send a message via AIM to raizo11 Send a message via MSN to raizo11 Send a message via Yahoo to raizo11 Send a message via Skype™ to raizo11
Spirit_12
Veteran Member
Join Date: Dec 2012
Location: Toronto, CA
Old 01-23-2016 , 16:13   Re: Desasamble amxx
Reply With Quote #2

You want to steal a private plugin and want it to be made free? What next you would want to be Robin Hood and rob a bank?

The plugin is private because that is author's wish. Nobody would help you on this forum in doing so. They may write their own code for same purpose, but nobody would decompile the said plugin.
__________________
Spirit_12 is offline
raizo11
BANNED
Join Date: Dec 2013
Location: https://t.me/pump_upp
Old 01-23-2016 , 16:22   Re: Desasamble amxx
Reply With Quote #3

I have a request for this plugin ...I want to make someone one like this...But free to all...This is free on internet but not have source..need sma

Last edited by raizo11; 01-23-2016 at 16:26.
raizo11 is offline
Send a message via ICQ to raizo11 Send a message via AIM to raizo11 Send a message via MSN to raizo11 Send a message via Yahoo to raizo11 Send a message via Skype™ to raizo11
wickedd
Veteran Member
Join Date: Nov 2009
Old 01-23-2016 , 16:34   Re: amxx request sma
Reply With Quote #4

You're not allowed to post or link to .amxx files so remove it.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-23-2016 , 16:40   Re: amxx request sma
Reply With Quote #5

Interestingly, there is nothing in that plugin that would restrict it from running on all maps.

Simply describe what it does and request that as a new plugin.
__________________
fysiks is offline
raizo11
BANNED
Join Date: Dec 2013
Location: https://t.me/pump_upp
Old 01-23-2016 , 16:45   Re: amxx request sma
Reply With Quote #6

is a knife duels ...play 10 or more round in duel but people not understand what I want and I attached amxx...Now I make a movie to see all what y want

Last edited by raizo11; 01-23-2016 at 16:46.
raizo11 is offline
Send a message via ICQ to raizo11 Send a message via AIM to raizo11 Send a message via MSN to raizo11 Send a message via Yahoo to raizo11 Send a message via Skype™ to raizo11
Old 01-23-2016, 16:49
addons_zz
This message has been deleted by addons_zz. Reason: nvm
raizo11
BANNED
Join Date: Dec 2013
Location: https://t.me/pump_upp
Old 01-23-2016 , 17:03   Re: amxx request sma
Reply With Quote #7

Can make someone this?

https://www.youtube.com/watch?v=od4qo7Mg-NE

Last edited by raizo11; 01-24-2016 at 06:22.
raizo11 is offline
Send a message via ICQ to raizo11 Send a message via AIM to raizo11 Send a message via MSN to raizo11 Send a message via Yahoo to raizo11 Send a message via Skype™ to raizo11
Dr Zayd
Senior Member
Join Date: Jun 2014
Location: forums.alliedmods.net
Old 01-24-2016 , 04:57   Re: amxx request sma
Reply With Quote #8

https://forums.alliedmods.net/showthread.php?t=78625
__________________
Invisible System | 100%
ـــــــــــــــــــــــــــــ
Anti setinfo check | Ez Plugin and lite
ـــــــــــــــــــــــــــــ
[ZP] Free VIP Menu | Free VIP menu | ZP-Mod |
Dr Zayd is offline
raizo11
BANNED
Join Date: Dec 2013
Location: https://t.me/pump_upp
Old 01-24-2016 , 06:19   Re: amxx request sma
Reply With Quote #9

I want to Play 10 or more rounds in duel no only 1
look this video
https://www.youtube.com/watch?v=od4qo7Mg-NE

For example This code : But have only 1 round

Code:
#include < amxmodx >
#include < amxmisc >
#include < xs >
#include < fun >
#include < regex >
#include < engine >
#include < fakemeta >
#include < hamsandwich >

#define ADMIN_FLAG ADMIN_BAN

new const Float:VEC_BLANK[ 3 ] = { 9999.0, 9999.0, 9999.0 };

//new bool:g_bOriginSet;
new Float:g_vecOrigin[ 2 ][ 3 ];
new g_szMapFile[ 128 ];

#define ValidOrigin(%1) !xs_vec_equal( g_vecOrigin[ %1 ], VEC_BLANK )
#define ValidOrigins() ( ValidOrigin( 0 ) && ValidOrigin( 1 ) )

new const g_szMenuTitleAdmin[ ] = "KnifeDuelAdminMenu";

new bool:g_bChallenging;
new g_iChallenger, g_iChallenged;

new pCvarSlashCount;
new pCvarCountDown;
new pCvarSetHealth;

public plugin_init( )
{
    register_plugin( "Knife Duel", "0.0.1", "Sneaky.amxx AKA HumboldtAnon" );
    
    register_clcmd( "knifeduel_menu", "CmdAdminMenu" );
    
    register_menu( g_szMenuTitleAdmin, ( MENU_KEY_1 | MENU_KEY_2 | MENU_KEY_3 | MENU_KEY_0 ), "MenuHandlerAdmin" );
    
    register_forward( FM_EmitSound, "FwdEmitSound" );
    register_forward( FM_ClientKill, "FwdClientKill" );
    
    register_event( "DeathMsg", "EventDeathMsg", "a" );
    
    pCvarSlashCount = register_cvar( "knifeduel_slash_count", "3" );
    pCvarCountDown = register_cvar( "knifeduel_countdown", "3" );
    pCvarSetHealth = register_cvar( "knifeduel_set_health", "0" );
    
    //g_bOriginSet = LoadOrigins( );
}

public client_disconnect( iPlayer )
{
    if( g_bChallenging )
    {
        if( iPlayer == g_iChallenged || iPlayer == g_iChallenger )
        {
            new iOtherPlayer = ( iPlayer == g_iChallenged ) ? g_iChallenger : g_iChallenged;
            
            ExecuteHamB( Ham_CS_RoundRespawn, iOtherPlayer );
            
            entity_set_int( iOtherPlayer, EV_INT_flags, entity_get_int( iOtherPlayer, EV_INT_flags ) & ~FL_FROZEN );
            
            g_bChallenging = false;
            g_iChallenger = 0;
            g_iChallenged = 0;
        }
    }
}

public CmdAdminMenu( iPlayer )
{
    if( access( iPlayer, ADMIN_FLAG ) )
    {
        ShowAdminMenu( iPlayer );
    }
    else
    {
        console_print( iPlayer, "%L", iPlayer, "NO_ACC_COM" );
    }
    
    return PLUGIN_HANDLED;
}

ShowAdminMenu( iPlayer )
{
    static szMenu[ 512 ];
    new iLen = copy( szMenu, charsmax( szMenu ), "\yKnife Duel^n\rAdmin Menu" );
    
    new iKeys = MENU_KEY_1 | MENU_KEY_2 | MENU_KEY_0;
    new iValidCount;
    
    for( new i = 0; i < 2; i++ )
    {
        iLen += formatex( szMenu[ iLen ], charsmax( szMenu ), "^n^n\r%d. \wSet Position #%d^n   \yCurrent Position: ", ( i + 1 ), ( i + 1 ) );
        
        if( ValidOrigin( i ) )
        {
            iLen += formatex( szMenu[ iLen ], charsmax( szMenu ), "\w%.3f %.3f %.3f", g_vecOrigin[ i ][ 0 ], g_vecOrigin[ i ][ 1 ], g_vecOrigin[ i ][ 2 ] );
            
            iValidCount++;
        }
        else
        {
            iLen += copy( szMenu[ iLen ], charsmax( szMenu ), "\dNot Set" );
        }
    }
    
    if( iValidCount == 2 )
    {
        iLen += copy( szMenu[ iLen ], charsmax( szMenu ), "^n^n\r3. \wSave Origins" );
        
        iKeys |= MENU_KEY_3;
    }
    else
    {
        iLen += copy( szMenu[ iLen ], charsmax( szMenu ), "^n^n\d3. Save Origins" );
    }
    
    iLen += copy( szMenu[ iLen ], charsmax( szMenu ), "^n^n\r0. \wExit" );
    
    show_menu( iPlayer, iKeys, szMenu, _, g_szMenuTitleAdmin );
}

public MenuHandlerAdmin( iPlayer, iKey )
{
    switch( ++iKey % 10 )
    {
        case 1, 2:
        {
            entity_get_vector( iPlayer, EV_VEC_origin, g_vecOrigin[ iKey - 1 ] );
            
            ShowAdminMenu( iPlayer );
        }
        case 3:
        {
            SaveOrigins( );
            
            client_print( iPlayer, print_chat, "* Saved origins" );
            
            ShowAdminMenu( iPlayer );
        }
        case 0:
        {
            // exit
        }
    }
}

public FwdEmitSound( iPlayer, iChannel, const szSound[ ] )
{
    if( is_user_alive( iPlayer ) && equal( szSound, "weapons/knife_hitwall1.wav" ) )
    {
        static iHitCount[ 33 ], Float:flLastHit[ 33 ];
        
        new Float:flGameTime = get_gametime( );
        
        if( ( flGameTime - flLastHit[ iPlayer ] ) >= 1.0 )
        {
            iHitCount[ iPlayer ] = 0;
        }
        else if( ++iHitCount[ iPlayer ] >= get_pcvar_num( pCvarSlashCount ) )
        {
            
            if( g_bChallenging )
            {
                client_print( iPlayer, print_chat, "* Someone is already starting a challenge." );
            }
            else
            {
                g_bChallenging = true;
                g_iChallenger = iPlayer;
                
                ShowPlayerMenu( iPlayer );
            }
            
            iHitCount[ iPlayer ] = 0;
        }
        
        flLastHit[ iPlayer ] = flGameTime;
    }
}

public FwdClientKill( iPlayer )
{
    return ( g_bChallenging && ( iPlayer == g_iChallenger || iPlayer == g_iChallenged ) ) ? FMRES_SUPERCEDE : FMRES_IGNORED;
}

public EventDeathMsg( )
{
    if( g_bChallenging )
    {
        new iVictim = read_data( 1 );
        
        if( iVictim == g_iChallenger )
        {
            ShowWinner( g_iChallenged, g_iChallenger );
        }
        else if( iVictim == g_iChallenged )
        {
            ShowWinner( g_iChallenger, g_iChallenged );
        }
    }
}

ShowWinner( iWinner, iLoser )
{
    g_bChallenging = false;
    g_iChallenger = 0;
    g_iChallenged = 0;
    
    ExecuteHamB( Ham_CS_RoundRespawn, iWinner );
    
    client_print( 0, print_chat, "* %s has defeated %s in the knife duel!", GetUserNameReturned( iLoser ), GetUserNameReturned( iWinner ) );
}

ShowPlayerMenu( iPlayer )
{
    new const szTeamInfo[ ][ ] = { "", "CT", "TERRORIST", "" };
    
    new iPlayers[ 32 ], iNum;
    get_players( iPlayers, iNum, "ae", szTeamInfo[ get_user_team( iPlayer ) ] );
    
    if( !iNum )
    {
        g_bChallenging = false;
        g_iChallenger = 0;
        
        client_print( iPlayer, print_chat, "* There are no players to challenge to a knife duel!" );
        
        return;
    }
    
    new hMenu = menu_create( "\yKnife Duel^nPlayer Menu", "MenuPlayer" );
    
    for( new i = 0, iTarget, szName[ 32 ], szUserID[ 11 ]; i < iNum; i++ )
    {
        iTarget = iPlayers[ i ];
        
        get_user_name( iTarget, szName, charsmax( szName ) );
        num_to_str( get_user_userid( iTarget ), szUserID, charsmax( szUserID ) );

        // Temporarily add userid to name item
        format( szName, charsmax( szName ), "#%s %s", szUserID, szName );
        
        menu_additem( hMenu, szName, szUserID );
    }
    
    menu_display( iPlayer, hMenu );
}

public MenuPlayer( iPlayer, hMenu, iItem )
{
    if( iItem == MENU_EXIT )
    {
        menu_destroy( hMenu );
        
        g_bChallenging = false;
        g_iChallenger = 0;
        
        return;
    }
    
    new iAccess, szUserID[ 11 ], hCallback;
    menu_item_getinfo( hMenu, iItem, iAccess, szUserID, charsmax( szUserID ), _, _, hCallback );
    menu_destroy( hMenu );
    
    new iTarget = GetPlayerByUserID( str_to_num( szUserID ) );
    
    client_print( g_iChallenger, print_chat, "Target userid: %s; Found target: %d; Connected: %s; Alive: %s", szUserID, iTarget, is_user_connected( iTarget ) ? "true" : "false", is_user_alive( iTarget ) ? "true" : "false" );
    
    if( is_user_alive( iTarget ) )
    {
        g_iChallenged = iTarget;
        
        client_print( 0, print_chat, "* %s has challenged %s to a knife duel!", GetUserNameReturned( iPlayer ), GetUserNameReturned( iTarget ) );
        
        ShowChallengeMenu( );
    }
    else
    {
        client_print( iPlayer, print_chat, "* That player is no longer %s", is_user_connected( iTarget ) ? "alive" : "connected" );
        
        ShowPlayerMenu( iPlayer );
    }
}

ShowChallengeMenu( )
{
    if( !is_user_alive( g_iChallenger ) || !is_user_alive( g_iChallenged ) )
    {
        g_bChallenging = false;
        g_iChallenger = 0;
        g_iChallenged = 0;
        
        return;
    }
    
    new szTitle[ 128 ];
    formatex( szTitle, charsmax( szTitle ), "\yKnife Duel^n\w%s has challeneged you^nDo you accept?", GetUserNameReturned( g_iChallenger ) );
    
    new hMenu = menu_create( szTitle, "MenuChallenge" );
    
    menu_additem( hMenu, "Yes", "1" );
    menu_additem( hMenu, "No", "0" );
    
    menu_setprop( hMenu, MPROP_EXIT, MEXIT_NEVER );
    
    menu_display( g_iChallenged, hMenu );
}

public MenuChallenge( iPlayer, hMenu, iItem )
{
    menu_destroy( hMenu );
    
    if( iItem == MENU_EXIT || !is_user_alive( g_iChallenger ) || !is_user_alive( g_iChallenged ) )
    {
        g_bChallenging = false;
        g_iChallenger = 0;
        g_iChallenged = 0;
        
        return;
    }
    
    if( iItem == 0 )
    {
        SetPosition( g_iChallenger, 0 );
        SetPosition( g_iChallenged, 1 );
        
        new iHealth = get_pcvar_num( pCvarSetHealth );
        
        if( iHealth > 0 )
        {
            set_user_health( g_iChallenger, iHealth );
            set_user_health( g_iChallenged, iHealth );
        }
        
        client_print( 0, print_chat, "* %s accepted the knife duel with %s", GetUserNameReturned( g_iChallenged ), GetUserNameReturned( g_iChallenger ) );
        
        new iParam[ 1 ];
        iParam[ 0 ] = get_pcvar_num( pCvarCountDown );
        
        set_task( 1.0, "TaskCountDown", 123, iParam, 1 );
    }
    else
    {
        client_print( 0, print_chat, "* %s declined to have a knife duel with %s", GetUserNameReturned( g_iChallenged ), GetUserNameReturned( g_iChallenger ) );
        
        g_bChallenging = false;
        g_iChallenger = 0;
        g_iChallenged = 0;
    }
}

SetPosition( iPlayer, iOriginIndex )
{
    entity_set_int( iPlayer, EV_INT_flags, entity_get_int( iPlayer, EV_INT_flags ) | FL_FROZEN );
    
    entity_set_origin( iPlayer, g_vecOrigin[ iOriginIndex ] );
}

public TaskCountDown( iParams[ ] )
{
    if( !is_user_alive( g_iChallenger ) )
    {
        g_bChallenging = false;
        g_iChallenger = 0;
        g_iChallenged = 0;
        
        if( is_user_alive( g_iChallenged ) )
        {
            ExecuteHamB( Ham_CS_RoundRespawn, g_iChallenged );
            
            entity_set_int( g_iChallenged, EV_INT_flags, entity_get_int( g_iChallenged, EV_INT_flags ) & ~FL_FROZEN );
        }
        
        return;
    }
    
    if( !is_user_alive( g_iChallenged ) )
    {
        g_bChallenging = false;
        g_iChallenger = 0;
        g_iChallenged = 0;
        
        return;
    }
    
    new iTimeLeft = iParams[ 0 ]--;
    
    if( iTimeLeft > 0 )
    {
        set_hudmessage( 0, 255, 0, .holdtime = 1.0, .channel = -1 );
        show_hudmessage( g_iChallenger, "Knife Duel^nCount Down: %d", iTimeLeft );
        show_hudmessage( g_iChallenged, "Knife Duel^nCount Down: %d", iTimeLeft );
        
        set_task( 1.0, "TaskCountDown", 123, iParams, 1 );
    }
    else
    {
        entity_set_int( g_iChallenger, EV_INT_flags, entity_get_int( g_iChallenger, EV_INT_flags ) & ~FL_FROZEN );
        entity_set_int( g_iChallenged, EV_INT_flags, entity_get_int( g_iChallenged, EV_INT_flags ) & ~FL_FROZEN );
        
        set_hudmessage( 0, 255, 0, .holdtime = 3.0, .channel = -1 );
        show_hudmessage( g_iChallenger, "Knife Duel^nFIGHT!" );
        show_hudmessage( g_iChallenged, "Knife Duel^nFIGHT!" );
    }
}

bool:LoadOrigins( )
{
    new strDir[101], strMapname[32]
    get_datadir(strDir, charsmax(strDir));
    add(strDir, charsmax(strDir), "/knife_duel" );
    
    get_mapname(strMapname, charsmax(strMapname));
    strtolower(strMapname)
    formatex(g_szMapFile, charsmax(g_szMapFile), "%s/%s.txt", strDir, strMapname);
    
    if( !dir_exists( strDir ) )
    {
        mkdir( g_szMapFile );
        return false;
    }
    
    if( !file_exists( g_szMapFile ) )
    {
        return false;
    }
    
    new iFile = fopen( g_szMapFile, "rt" );
    
    if( !iFile )
    {
        return false;
    }
    
    new szData[ 96 ], iLen;
    new szX[ 16 ], szY[ 16 ], szZ[ 16 ];
    new iOriginCount;
    
    new Regex:pPattern = regex_compile( "^^(\d+\.\d+ ){2}\d+\.\d+$", iLen, "", 0 );
    
    while( !feof( iFile ) && iOriginCount < 2 )
    {
        fgets( iFile, szData, charsmax( szData ) );
        trim( szData );
        
        if( regex_match_c( szData, pPattern, iLen ) > 0 )
        {
            parse( szData, szX, charsmax( szX ), szY, charsmax( szY ), szZ, charsmax( szZ ) );
            
            g_vecOrigin[ iOriginCount ][ 0 ] = str_to_float( szX );
            g_vecOrigin[ iOriginCount ][ 1 ] = str_to_float( szY );
            g_vecOrigin[ iOriginCount ][ 2 ] = str_to_float( szZ );
            
            iOriginCount++;
        }
    }
    
    fclose( iFile );
    
    return ( iOriginCount == 2 && ValidOrigins( ) );
}

SaveOrigins( )
{
    new iFile = fopen(g_szMapFile, "wt+");
    
    if( !iFile )
    {
        return;
    }
    
    fprintf( iFile, "%f %f %f^n", g_vecOrigin[ 0 ][ 0 ], g_vecOrigin[ 0 ][ 1 ], g_vecOrigin[ 0 ][ 2 ] );
    fprintf( iFile, "%f %f %f", g_vecOrigin[ 1 ][ 0 ], g_vecOrigin[ 1 ][ 1 ], g_vecOrigin[ 1 ][ 2 ] );
    
    fclose( iFile );
    
    //g_bOriginSet = ValidOrigins( );
}

GetUserNameReturned( iPlayer )
{
    new szName[ 32 ];
    get_user_name( iPlayer, szName, charsmax( szName ) );
    return szName;
}

GetPlayerByUserID( iUserID )
{
    new iPlayers[ 32 ], iNum;
    get_players( iPlayers, iNum );

    for ( new i = 0, iTarget; i < iNum; i++ )
    {
        iTarget = iPlayers[ i ];

        if ( get_user_userid( iTarget ) == iUserID )
        {
            return iTarget;
        }
    }

    return 0;
}

Last edited by raizo11; 01-24-2016 at 06:26.
raizo11 is offline
Send a message via ICQ to raizo11 Send a message via AIM to raizo11 Send a message via MSN to raizo11 Send a message via Yahoo to raizo11 Send a message via Skype™ to raizo11
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:13.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode