Raised This Month: $ Target: $400
 0% 

DeathRun when the Terrorist left to transfer one of the CT's to T


Post New Thread Reply   
 
Thread Tools Display Modes
DIREKTOR
Senior Member
Join Date: Jan 2010
Location: On server
Old 05-20-2010 , 13:01   Re: DeathRun when the Terrorist left to transfer one of the CT's to T
Reply With Quote #41

it isnt Drm by xpaw dosent have this ability
__________________
Quote:
Originally Posted by KadiR View Post
Learn the fucking server rules you idiot.
DIREKTOR is offline
Send a message via MSN to DIREKTOR
human_Torch
Senior Member
Join Date: Dec 2009
Location: Serbia
Old 05-20-2010 , 13:10   Re: DeathRun when the Terrorist left to transfer one of the CT's to T
Reply With Quote #42

Quote:
Originally Posted by wacK View Post
That is in the Deathrun manager by xPaw.
No it isnt ,i have xPaw menager and it doesnt have that funkcion
human_Torch is offline
Send a message via MSN to human_Torch Send a message via Skype™ to human_Torch
Old 05-20-2010, 19:59
human_Torch
This message has been deleted by Exolent[jNr]. Reason: Don't bump until 2 weeks have passed since last post.
WTFx
Junior Member
Join Date: Dec 2009
Old 05-22-2010 , 13:57   Re: DeathRun when the Terrorist left to transfer one of the CT's to T
Reply With Quote #43

Here my friends:

PHP Code:
#define BONUS
#define LOGS

#define START_DISTANCE 32
#define MAX_ATTEMPTS 128
    
#include < amxmodx >

#include < hamsandwich >
#include < fakemeta >

#include < fun >
#include < engine >

/*================================================================================
                [Start...]
=================================================================================*/

enum Coord_e Float:xFloat:yFloat:}

enum CsTeams 
{
    
CS_TEAM_UNASSIGNED 0,
    
CS_TEAM_T 1,
    
CS_TEAM_CT 2,
    
CS_TEAM_SPECTATOR 3
}

#define TASK_TEAM        59813
#define ID_TEAM            (taskid - TASK_TEAM)

new const CS_TEAM_NAMES[ ][ ] = { "UNASSIGNED""TERRORIST""CT""SPECTATOR" }

#define GetPlayerHullSize(%1)    ( ( pev ( %1, pev_flags ) & FL_DUCKING ) ? HULL_HEAD : HULL_HUMAN )
#define IsPlayer(%1)        ( 1 <= %1 <= g_iMaxPlayers )
  
#define DMG_FALL        (1<<5)

new Float:g_fTeamsUpdates

new g_iMaxPlayers
new g_iMsgTeamInfo
new g_iHamCZbots
new g_iMsgSayText

new g_iIsNewTs33 ], g_iIsAlive33 ], g_iIsConnected33 ]

#if defined BONUS
new g_iMsgScoreInfo
#endif

new g_pBotQuota

new g_iOrigin33 ][ ]

/*================================================================================
                [Init]
=================================================================================*/

public plugin_init() 
{
    
register_plugin"[DR] FIX Round""1.0""P.Of.Pw" )
    
register_cvar"dr_fixround""1.0/P.Of.Pw"FCVAR_SERVER FCVAR_SPONLY )
    
    
RegisterHamHam_Spawn"player""fw_PlayerSpawn_Post")
    
RegisterHamHam_Killed"player""fw_PlayerKilled" )
    
RegisterHamHam_TakeDamage"player""fw_TakeDamage" )
    
    
register_forwardFM_ClientDisconnect"fw_ClientDisconnect" )
    
    
g_iMaxPlayers get_maxplayers()
    
g_iMsgTeamInfo get_user_msgid"TeamInfo" )
    
g_iMsgSayText get_user_msgid"SayText" )
    
g_iMsgScoreInfo get_user_msgid"ScoreInfo" )

    
g_pBotQuota get_cvar_pointer"bot_quota" )
}

/*================================================================================
                [Client put in server]
=================================================================================*/

public client_putinserverid )
{
    
g_iIsConnectedid ] = true
    
    
if( is_user_botid ) )
    {
        if( !
g_iHamCZbots && g_pBotQuota )
        {
            
set_task0.1"register_ham_czbots"id )
        }
    }
}

/*================================================================================
                [Register Ham forwards for CZ bots]
=================================================================================*/

public register_ham_czbotsid )
{
    if( 
g_iHamCZbots || !is_user_connectedid ) || !get_pcvar_numg_pBotQuota ) )
        return;
        
    
RegisterHamFromEntityHam_Spawnid"fw_PlayerSpawn_Post")
    
RegisterHamFromEntityHam_Killedid"fw_PlayerKilled" )
    
RegisterHamFromEntityHam_TakeDamageid"fw_TakeDamage" )
    
    
g_iHamCZbots true
    
    
if( is_user_aliveid ) ) fw_PlayerSpawn_Postid )
}

/*================================================================================
                [Ham player spawn post forward]
=================================================================================*/

public fw_PlayerSpawn_Postid )
{
    if( !
is_user_aliveid ) || !fm_cs_get_user_teamid ) )
        return;
    
    
g_iIsAliveid ] = true
    remove_task
id+TASK_TEAM )
}

/*================================================================================
                [Ham player killed forward]
=================================================================================*/

public fw_PlayerKilledvictim )
{
    
g_iIsAlivevictim ] = false
}

/*================================================================================
                [Ham player damage forward]
=================================================================================*/

public fw_TakeDamageidinflictorattackerFloat:damagedamage_type )
{
    if( 
g_iIsNewTsid ] && ( damage_type DMG_FALL ) )
    {
        
g_iIsNewTsid ] = false
        
return HAM_SUPERCEDE
    
}

        return 
HAM_IGNORED
}

/*================================================================================
                [Eng get user origin] ; not very good method ;(
=================================================================================*/

public client_PreThinkid )
{
    if( !
g_iIsAliveid ] )
        return;
        
    
get_user_originidg_iOriginid ] )
}

/*================================================================================
                [Fm client disconnecting]
=================================================================================*/

public fw_ClientDisconnectid )
{    
    if( 
g_iIsAliveid ] ) check_roundid )
    
    
remove_taskid+TASK_TEAM )
    
    
g_iIsAliveid ] = false
    g_iIsConnected
id ] = false
}

/*================================================================================
                [Set new Ts]
=================================================================================*/

public check_roundleaving_player )
{
    static 
iPlayersnumid
    iPlayersnum 
fnGetPlaying()
    
    if( 
iPlayersnum )
        return;
    
    new 
iTnum fnGetTeamCountCS_TEAM_T )
    new 
iCTnum fnGetTeamCountCS_TEAM_CT )
    
    if( 
iTnum )
    {
        if( 
iCTnum == )
            return;
        
        
id fnGetRandomPlayer()
        
        if( !
is_user_aliveid ) )
            
ExecuteHamBHam_CS_RoundRespawnid )
            
        
set_terrorist_teamid )
        
        
g_iIsNewTsid ] = true
        DispatchSpawn
id )
        
        
g_iOriginleaving_player ][ ] += 20
        set_user_origin
idg_iOriginleaving_player ] )
                
        new 
name32 ]
        
get_user_nameidname31 )
        
        static 
Float:newOrigin]
        
        
entity_get_vectoridEV_VEC_originnewOrigin )
        
IVecFVecg_iOriginid ], newOrigin )
        
        if( 
IsUserStuckidnewOriginentity_get_intidEV_INT_flags ) ) )
        {
            
UTIL_UnstickPlayeridSTART_DISTANCEMAX_ATTEMPTS )
        }
        
        
ColorChatSimple0"^4[DR] ^3%s ^1este terrorist nou!"name )
        
#if defined BONUS
        
set_user_fragsidget_user_fragsid ) + 10 )
        
set_user_frags_updateid )
#endif
        
#if defined LOGS        
        
static buffer200 ]
        new 
name_leav32 ]
        
get_user_nameleaving_playername_leav31 )
        
        
formatexbuffercharsmaxbuffer ), "%s a fost mutat la Ts, deoarece %s s-a deconectat!"namename_leav )
        
log_to_file"dr_last_t_disc.txt"buffer  )
#endif        
    
}
}

/*================================================================================
                [Fn stocks]
=================================================================================*/

fnGetPlaying()
{
    static 
iPlayingidCsTeams:team
    iPlaying 
0
    
    
for( id 1id <= g_iMaxPlayersid++ )
    {
        if( 
g_iIsConnectedid ] && IsPlayerid ) )
        {
            
team fm_cs_get_user_teamid )
            
            if( 
team != CS_TEAM_UNASSIGNED && team != CS_TEAM_SPECTATOR )
                
iPlaying++
        }
    }
    
    return 
iPlaying;
}

fnGetRandomPlayer( const flags[ ] = "", const teamORname[ ] = "" )
{
    new 
players32 ], pnum
    get_players
playerspnumflagsteamORname )
    
    return ( 
pnum ) ? playersrandompnum ) ] : 0
}

fnGetTeamCountCsTeams:iTeam )
{
    new 
iPlayers32 ], iPlayerCount
    
new iTeamPlayersCsTeams ]
    
    
get_playersiPlayersiPlayerCount )
    
    for ( new 
0iPlayerCounti++ )
        
iTeamPlayersfm_cs_get_user_teamiPlayers] ) ]++
  
    return 
iTeamPlayersiTeam ]
}

/*================================================================================
                [......]
=================================================================================*/

set_terrorist_teamid )
{    
    if( 
fm_cs_get_user_teamid ) != CS_TEAM_T )
    {
        
remove_taskid+TASK_TEAM )
        
fm_cs_set_user_teamidCS_TEAM_T )
        
user_team_updateid )
    }
}

ColorChatSimpleid, const message[ ], any:...)
{
    new 
Buffer512 ], bBuffer512 ]

    
formatexbBuffercharsmaxbBuffer ), "%s"message )
       
vformatBuffercharsmaxBuffer ), bBuffer)
    
    new 
MSG_TARGET id MSG_ONE MSG_ALL 
    message_begin
MSG_TARGETg_iMsgSayText, .player MSG_TARGET )
    {
        
write_byteid id )
        
write_stringBuffer )
    }
       
message_end()
}

/*================================================================================
                [Stocks]
=================================================================================*/

stock CsTeams:fm_cs_get_user_teamid )

    return 
CsTeams:get_pdata_intid114)
}

stock fm_cs_set_user_teamid, { CsTeams}:team )
{
    
set_pdata_intid114_:team)
}

stock user_team_updateid )
{
    static 
Float:current_time
    current_time 
get_gametime()
    
    if( 
current_time g_fTeamsUpdates >= 0.1 )
    {
        
set_task0.1"set_user_team_msg"id+TASK_TEAM )
        
g_fTeamsUpdates current_time 0.1
    
}
    else
    {
        
set_task( ( g_fTeamsUpdates 0.1 ) - current_time"set_user_team_msg"id+TASK_TEAM )
        
g_fTeamsUpdates g_fTeamsUpdates 0.1
    
}
}

public 
set_user_team_msgtaskid )
{    
    
emessage_beginMSG_ALLg_iMsgTeamInfo )
    
ewrite_byteID_TEAM )
    
ewrite_stringCS_TEAM_NAMES_:fm_cs_get_user_teamID_TEAM ) ] )
    
emessage_end()
}

#if defined BONUS
set_user_frags_updateid )
{
    
message_beginMSG_ALLg_iMsgScoreInfo )
    
write_byteid )
    
write_shortget_user_fragsid ) )
    
write_shortget_user_deathsid ) )
    
write_short)
    
write_shortget_user_teamid ) )
    
message_end()
}
#endif

// by Arkshine
bool:IsUserStuck( const id, const Float:vOrigin], const iFlags )
    return 
bool:( trace_hullvOriginiFlags FL_DUCKING HULL_HEAD HULL_HUMANidIGNORE_MONSTERS ) & )
    
UTIL_UnstickPlayer( const id, const i_StartDistance, const i_MaxAttempts )
{
    if( !
is_user_aliveid ) )  return -1
        
    
static Float:vf_OriginalOriginCoord_e ], Float:vf_NewOriginCoord_e ]
    static 
i_Attemptsi_Distance
        
    pev
idpev_originvf_OriginalOrigin )
        
    
i_Distance i_StartDistance
        
    
while( i_Distance 1000 )
    {
        
i_Attempts i_MaxAttempts
            
        
while( i_Attempts-- )
        {
            
vf_NewOrigin] = random_floatvf_OriginalOrigin] - i_Distancevf_OriginalOrigin] + i_Distance )
            
vf_NewOrigin] = random_floatvf_OriginalOrigin] - i_Distancevf_OriginalOrigin] + i_Distance )
            
vf_NewOrigin] = random_floatvf_OriginalOrigin] - i_Distancevf_OriginalOrigin] + i_Distance )
            
            
engfuncEngFunc_TraceHullvf_NewOriginvf_NewOriginDONT_IGNORE_MONSTERSGetPlayerHullSizeid ), id)
            
            if( 
get_tr20TR_InOpen ) && !get_tr20TR_AllSolid ) && !get_tr20TR_StartSolid ) )
            {
                
engfuncEngFunc_SetOriginidvf_NewOrigin )
                return 
1;
            }
        }
            
        
i_Distance += i_StartDistance
    
}
        
    return 
0;

WTFx is offline
human_Torch
Senior Member
Join Date: Dec 2009
Location: Serbia
Old 05-22-2010 , 13:59   Re: DeathRun when the Terrorist left to transfer one of the CT's to T
Reply With Quote #44

You test it,is it working,if it i love you man xD
human_Torch is offline
Send a message via MSN to human_Torch Send a message via Skype™ to human_Torch
debian
BANNED
Join Date: Apr 2009
Old 05-22-2010 , 16:01   Re: DeathRun when the Terrorist left to transfer one of the CT's to T
Reply With Quote #45

i get
Code:
/groups/amxmodx/tmp3/textFJnNXA.sma(148) : warning 217: loose indentation
/groups/amxmodx/tmp3/textFJnNXA.sma(304) : warning 217: loose indentation
/groups/amxmodx/tmp3/textFJnNXA.sma(306) : warning 217: loose indentation
/groups/amxmodx/tmp3/textFJnNXA.sma(312) : warning 217: loose indentation
debian is offline
Send a message via Skype™ to debian
DIREKTOR
Senior Member
Join Date: Jan 2010
Location: On server
Old 05-22-2010 , 16:02   Re: DeathRun when the Terrorist left to transfer one of the CT's to T
Reply With Quote #46

@debian that dosent matter
the main problem plug isnt working i mean it isnt transfering
__________________
Quote:
Originally Posted by KadiR View Post
Learn the fucking server rules you idiot.
DIREKTOR is offline
Send a message via MSN to DIREKTOR
human_Torch
Senior Member
Join Date: Dec 2009
Location: Serbia
Old 05-23-2010 , 13:07   Re: DeathRun when the Terrorist left to transfer one of the CT's to T
Reply With Quote #47

any help with this tipe of plugin??
human_Torch is offline
Send a message via MSN to human_Torch Send a message via Skype™ to human_Torch
D@NG3R
Member
Join Date: Feb 2010
Old 05-24-2010 , 16:23   Re: DeathRun when the Terrorist left to transfer one of the CT's to T
Reply With Quote #48

Not working i get @debian error's as well, in game i can pause or unpause the plugin but it has no effect.
D@NG3R is offline
Old 05-24-2010, 16:56
human_Torch
This message has been deleted by Exolent[jNr]. Reason: Don't bump until 2 weeks have passed since last post.
Old 05-29-2010, 13:07
human_Torch
This message has been deleted by Exolent[jNr]. Reason: Don't bump until 2 weeks have passed since last post.
Old 05-29-2010, 13:11
DIREKTOR
This message has been deleted by Exolent[jNr]. Reason: Don't bump until 2 weeks have passed since last post.
dFF
sıɹɹoɥɔ ʞɔnu
Join Date: Oct 2009
Old 06-18-2010 , 10:12   Re: DeathRun when the Terrorist left to transfer one of the CT's to T
Reply With Quote #49

Here is new version:
Attached Files
File Type: sma Get Plugin or Get Source (dr_fixround.sma - 574 views - 13.2 KB)
dFF is offline
human_Torch
Senior Member
Join Date: Dec 2009
Location: Serbia
Old 06-18-2010 , 12:45   Re: DeathRun when the Terrorist left to transfer one of the CT's to T
Reply With Quote #50

i will try it tnx

Did you test it is it working
human_Torch is offline
Send a message via MSN to human_Torch Send a message via Skype™ to human_Torch
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 00:26.


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