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

[REQ] Plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sevrajol
Member
Join Date: Feb 2010
Old 09-14-2010 , 06:56   [REQ] Plugin
Reply With Quote #1

I want to modify this plugin.After receiving Slay me not to put a death to be same score before slay
Exemple : Sevraj frags 10 death 5 after slay to be the same score to not put me 1 death !

Sorry for me english !
Attached Files
File Type: sma Get Plugin or Get Source (slaylosers.sma - 134 views - 5.1 KB)

Last edited by sevrajol; 09-14-2010 at 06:59.
sevrajol is offline
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 09-14-2010 , 16:58   Re: [REQ] Plugin
Reply With Quote #2

Code:
/* AMX MOD X script. 
* This file is provided as is with no warranty. 
*
* Presenting: Slay Losers
* 
* Effect: Losing the objective results in a random orgy of GFX destruction
*       for the losing team (everyone on the losing team DIES).
*  
* NOTE: The slaying will NOT remove frags.
*
* CVAR: Set mp_slaylosers to 0 if you want to turn it off. 
*
* Written by: Denkkar Seffyd, now in a seperate WC3 independent package (no XP removal though)
*
* Install: compile then add slaylosers.amx to addons/amx/plugin.ini
*         
*/ 

#include <amxmodx> 
#include <amxmisc>
    

new white
new lightning
new g_sModelIndexSmoke


public plugin_init(){ 
                     
    register_plugin("AMX Slay Losers","1.0","[email protected]") 
    register_event("SendAudio","end_round","a","2=%!MRAD_terwin","2=%!MRAD_ctwin","2=%!MRAD_rounddraw") 
    
    register_cvar("mp_slaylosers","1",FCVAR_SERVER)
    
    return PLUGIN_CONTINUE 
} 


public end_round(){
        
    // Only active if CVAR is not equal to 0
    if( get_cvar_num("mp_slaylosers") ){
        new parm[32] 
        new len = read_data(2,parm,31) 
        set_task(1.0,"slay_those_losers",0,parm, len + 1)
    }
        
    return PLUGIN_CONTINUE
}

// Slays each player who failed to stop the other team from completing the objective.
// A random slay method is chosen for each player.
public slay_those_losers(parm[]) { 
    new origin[3], srco[3]
    new player[32], playersnum 
    new id
            
    get_players(player,playersnum,"ea",(parm[7] == 't') ? "CT" : "TERRORIST" ) 
    
    for(new i = 0; i < playersnum; ++i){    
        id = player[i]    
        get_user_origin(id,origin)            
        origin[2] -= 26
        srco[0]=origin[0]+150
        srco[1]=origin[1]+150
        srco[2]=origin[2]+800
        switch(random_num(1,3)){    
            case 1:{
                slay_lightning(srco,origin)
                emit_sound(id,CHAN_ITEM, "ambience/thunder_clap.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
            }
            case 2:{
                slay_blood(origin)
                emit_sound(id,CHAN_ITEM, "weapons/headshot2.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
            }
            case 3:    {
                slay_explode(origin)
                emit_sound(id,CHAN_ITEM, "weapons/explode3.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
            }
        }
        set_hudmessage(178, 14, 41, -1.0, -0.4, 1, 0.5, 1.7, 0.2, 0.2,5);
        show_hudmessage(id, "Objective Failed^nFailure Is Not An Option^nYou Die Now" );
        user_kill(id,1)    
                set_user_frags(id, get_user_frags(id)-1)
    }    
} 
    

slay_explode(vec1[3]) { 
    // blast circles 
    message_begin( MSG_BROADCAST,SVC_TEMPENTITY,vec1) 
    write_byte( 21 ) 
    write_coord(vec1[0]) 
    write_coord(vec1[1]) 
    write_coord(vec1[2] + 16) 
    write_coord(vec1[0]) 
    write_coord(vec1[1]) 
    write_coord(vec1[2] + 1936) 
    write_short( white ) 
    write_byte( 0 ) // startframe 
    write_byte( 0 ) // framerate 
    write_byte( 2 ) // life 
    write_byte( 16 ) // width 
    write_byte( 0 ) // noise 
    write_byte( 188 ) // r 
    write_byte( 220 ) // g 
    write_byte( 255 ) // b 
    write_byte( 255 ) //brightness 
    write_byte( 0 ) // speed 
    message_end()
    //Explosion2 
    message_begin( MSG_BROADCAST,SVC_TEMPENTITY) 
    write_byte( 12 ) 
    write_coord(vec1[0]) 
    write_coord(vec1[1]) 
    write_coord(vec1[2]) 
    write_byte( 188 ) // byte (scale in 0.1's) 
    write_byte( 10 ) // byte (framerate) 
    message_end()
    //Smoke 
    message_begin( MSG_BROADCAST,SVC_TEMPENTITY,vec1) 
    write_byte( 5 ) 
    write_coord(vec1[0]) 
    write_coord(vec1[1]) 
    write_coord(vec1[2]) 
    write_short( g_sModelIndexSmoke ) 
    write_byte( 2 )  
    write_byte( 10 )  
    message_end()
} 

slay_blood(vec1[3]) { 
    //LAVASPLASH 
    message_begin( MSG_BROADCAST,SVC_TEMPENTITY) 
    write_byte( 10 ) 
    write_coord(vec1[0]) 
    write_coord(vec1[1]) 
    write_coord(vec1[2]) 
    message_end() 
} 

slay_lightning(vec1[3],vec2[3]) { 
    //Lightning 
    message_begin( MSG_BROADCAST,SVC_TEMPENTITY) 
    write_byte( 0 ) 
    write_coord(vec1[0]) 
    write_coord(vec1[1]) 
    write_coord(vec1[2]) 
    write_coord(vec2[0]) 
    write_coord(vec2[1]) 
    write_coord(vec2[2]) 
    write_short( lightning ) 
    write_byte( 1 ) // framestart 
    write_byte( 5 ) // framerate 
    write_byte( 2 ) // life 
    write_byte( 20 ) // width 
    write_byte( 30 ) // noise 
    write_byte( 200 ) // r, g, b 
    write_byte( 200 ) // r, g, b 
    write_byte( 200 ) // r, g, b 
    write_byte( 200 ) // brightness 
    write_byte( 200 ) // speed 
    message_end()
    //Sparks 
    message_begin( MSG_PVS, SVC_TEMPENTITY,vec2) 
    write_byte( 9 ) 
    write_coord( vec2[0] ) 
    write_coord( vec2[1] ) 
    write_coord( vec2[2] ) 
    message_end()
    //Smoke     
    message_begin( MSG_BROADCAST,SVC_TEMPENTITY,vec2) 
    write_byte( 5 ) 
    write_coord(vec2[0]) 
    write_coord(vec2[1]) 
    write_coord(vec2[2]) 
    write_short( g_sModelIndexSmoke ) 
    write_byte( 10 )  
    write_byte( 10 )  
    message_end()
}

    
public plugin_precache() {
    
    g_sModelIndexSmoke = precache_model("sprites/steam1.spr")
    lightning = precache_model("sprites/lgtning.spr")
    white = precache_model("sprites/white.spr")
    precache_sound( "ambience/thunder_clap.wav")
    precache_sound( "weapons/headshot2.wav")
    precache_sound( "weapons/explode3.wav")

    
    return PLUGIN_CONTINUE
}
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
sevrajol
Member
Join Date: Feb 2010
Old 09-15-2010 , 03:39   Re: [REQ] Plugin
Reply With Quote #3

Not working to compile
Code:
Welcome to the AMX Mod X 1.8.1-300 Compiler. Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team  /home/groups/amxmodx/compiler3/core(0) : error 075: input line too long (after substitutions) /home/groups/amxmodx/compiler3/core(4) : error 075: input line too long (after substitutions) /home/groups/amxmodx/compiler3/core(5) : error 075: input line too long (after substitutions) /home/groups/amxmodx/compiler3/core(6) : error 075: input line too long (after substitutions) /home/groups/amxmodx/compiler3/core(7) : error 075: input line too long (after substitutions) /home/groups/amxmodx/compiler3/core(8) : error 075: input line too long (after substitutions) /home/groups/amxmodx/compiler3/core(9) : error 075: input line too long (after substitutions) /home/groups/amxmodx/compiler3/core(10) : error 075: input line too long (after substitutions) /home/groups/amxmodx/compiler3/core(11) : error 075: input line too long (after substitutions) /home/groups/amxmodx/compiler3/core(12) : error 075: input line too long (after substitutions) /home/groups/amxmodx/compiler3/core(13) : error 075: input line too long (after substitutions) /home/groups/amxmodx/compiler3/core(14) : error 075: input line too long (after substitutions) /home/groups/amxmodx/compiler3/core(15) : error 075: input line too long (after substitutions) /home/groups/amxmodx/compiler3/core(17) : error 075: input line too long (after substitutions) /home/groups/amxmodx/compiler3/core(18) : error 075: input line too long (after substitutions) /home/groups/amxmodx/compiler3/core(19) : error 075: input line too long (after substitutions) /home/groups/amxmodx/compiler3/core(20) : error 075: input line too long (after substitutions) /home/groups/amxmodx/compiler3/core(21) : error 075: input line too long (after substitutions) /home/groups/amxmodx/compiler3/core(22) : error 075: input line too long (after substitutions) /home/groups/amxmodx/compiler3/core(23) : error 075: input line too long (after substitutions) /home/groups/amxmodx/compiler3/core(24) : error 075: input line too long (after substitutions) /home/groups/amxmodx/compiler3/core(25) : error 075: input line too long (after substitutions) /home/groups/amxmodx/compiler3/core(26) : error 075: input line too long (after substitutions) /home/groups/amxmodx/compiler3/core(27) : error 075: input line too long (after substitutions) /home/groups/amxmodx/compiler3/core(28) : error 075: input line too long (after substitutions) /home/groups/amxmodx/compiler3/core(29) : error 075: input line too long (after substitutions)  Compilation aborted. 26 Errors.
sevrajol is offline
sevrajol
Member
Join Date: Feb 2010
Old 09-15-2010 , 03:40   Re: [REQ] Plugin
Reply With Quote #4

Not working to compile
Quote:
Welcome to the AMX Mod X 1.8.1-300 Compiler. Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team /home/groups/amxmodx/compiler3/core(0) : error 075: input line too long (after substitutions) /home/groups/amxmodx/compiler3/core(4) : error 075: input line too long (after substitutions) /home/groups/amxmodx/compiler3/core(5) : error 075: input line too long (after substitutions) /home/groups/amxmodx/compiler3/core(6) : error 075: input line too long (after substitutions) /home/groups/amxmodx/compiler3/core(7) : error 075: input line too long (after substitutions) /home/groups/amxmodx/compiler3/core( : error 075: input line too long (after substitutions) /home/groups/amxmodx/compiler3/core(9) : error 075: input line too long (after substitutions) /home/groups/amxmodx/compiler3/core(10) : error 075: input line too long (after substitutions) /home/groups/amxmodx/compiler3/core(11) : error 075: input line too long (after substitutions) /home/groups/amxmodx/compiler3/core(12) : error 075: input line too long (after substitutions) /home/groups/amxmodx/compiler3/core(13) : error 075: input line too long (after substitutions) /home/groups/amxmodx/compiler3/core(14) : error 075: input line too long (after substitutions) /home/groups/amxmodx/compiler3/core(15) : error 075: input line too long (after substitutions) /home/groups/amxmodx/compiler3/core(17) : error 075: input line too long (after substitutions) /home/groups/amxmodx/compiler3/core(1 : error 075: input line too long (after substitutions) /home/groups/amxmodx/compiler3/core(19) : error 075: input line too long (after substitutions) /home/groups/amxmodx/compiler3/core(20) : error 075: input line too long (after substitutions) /home/groups/amxmodx/compiler3/core(21) : error 075: input line too long (after substitutions) /home/groups/amxmodx/compiler3/core(22) : error 075: input line too long (after substitutions) /home/groups/amxmodx/compiler3/core(23) : error 075: input line too long (after substitutions) /home/groups/amxmodx/compiler3/core(24) : error 075: input line too long (after substitutions) /home/groups/amxmodx/compiler3/core(25) : error 075: input line too long (after substitutions) /home/groups/amxmodx/compiler3/core(26) : error 075: input line too long (after substitutions) /home/groups/amxmodx/compiler3/core(27) : error 075: input line too long (after substitutions) /home/groups/amxmodx/compiler3/core(2 : error 075: input line too long (after substitutions) /home/groups/amxmodx/compiler3/core(29) : error 075: input line too long (after substitutions) Compilation aborted. 26 Errors.
sevrajol is offline
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 03:44.


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