Raised This Month: $10 Target: $400
 2% 

why ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Firuz
Member
Join Date: Dec 2014
Location: Tajikistan
Old 12-30-2014 , 17:15   why ?
Reply With Quote #1

why I'm add this example: ExecuteHamB(Ham_Killed, id, i, 0)
He takes frag but does not consider the top15 on the outside? HELP

Thanks for all!
__________________
Firuz

Last edited by Firuz; 12-30-2014 at 17:17.
Firuz is offline
Send a message via Skype™ to Firuz
New.ZM.Life
Veteran Member
Join Date: Sep 2014
Location: Iran
Old 12-30-2014 , 18:11   Re: why ?
Reply With Quote #2

Because you dont kill enemy with knife/gun...you kill them with this ham.
And it this kills dont count in top15

For example:
Killed by assassin,killed by sniper,killed by infection bomb...
__________________
PLUGINS

Zombie Plague 5.0 + New Modes

Added NightCrawler Mode to ZP





New.ZM.Life is offline
Firuz
Member
Join Date: Dec 2014
Location: Tajikistan
Old 12-31-2014 , 07:00   Re: why ?
Reply With Quote #3

And think so?

set_msg_block(get_user_msgid("ScoreInfo"),BLO CK_ONCE);
set_msg_block(get_user_msgid("DeathMsg"), BLOCK_SET)
ExecuteHamB(Ham_Killed, i, entity_get_owner( iEntity ), 0)
set_msg_block(get_user_msgid("DeathMsg"), BLOCK_NOT)
message_begin(MSG_BROADCAST, get_user_msgid("DeathMsg"))
write_byte(entity_get_owner( iEntity ))
write_byte(i)
write_byte(0)
write_string("Ak 47")
message_end()
__________________
Firuz
Firuz is offline
Send a message via Skype™ to Firuz
Firuz
Member
Join Date: Dec 2014
Location: Tajikistan
Old 12-31-2014 , 07:00   Re: why ?
Reply With Quote #4

give example plugin
__________________
Firuz
Firuz is offline
Send a message via Skype™ to Firuz
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 12-31-2014 , 07:04   Re: why ?
Reply With Quote #5

Actually what are you trying to do.
zmd94 is offline
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 12-31-2014 , 07:14   Re: why ?
Reply With Quote #6

you can manually set frag.
Look at csstats.inc or somewhere... there was native for that i remember.
.Dare Devil. is offline
Firuz
Member
Join Date: Dec 2014
Location: Tajikistan
Old 01-01-2015 , 13:53   Re: why ?
Reply With Quote #7

Quote:
Originally Posted by zmd94 View Post
Actually what are you trying to do.
Give Frag
__________________
Firuz
Firuz is offline
Send a message via Skype™ to Firuz
Firuz
Member
Join Date: Dec 2014
Location: Tajikistan
Old 01-01-2015 , 13:54   Re: why ?
Reply With Quote #8

Please Help this Can do that he add frag in the top 15

Quote:
explosion_explode(ent)
{
// Get origin
static Floatrigin[3], i, Float:clorigin[3],Float: clvelocity[ 3 ], special[3],Float: dist, Float: dmg,hlt,own, name[ 32 ];
new packs;
pev(ent, pev_origin, origin)
FVecIVec(origin,special);
own=pev(ent,pev_owner);
if(!pev_valid(own)||!is_user_connected(own)){
engfunc(EngFunc_RemoveEntity,ent);
return;
}
message_begin(MSG_BROADCAST,SVC_TEMPENTITY);
write_byte(TE_EXPLOSION);
write_coord(special[0]);
write_coord(special[1]);
write_coord(special[2]);
write_short(explosion);
write_byte(random_num(25,30));
write_byte(18 );
write_byte(0 );
message_end();
for( i = 1 ; i <=g_maxplayers; i ++ )
{
if( !is_user_alive( i ) )
continue;

if( !g_zombie[ i ] )
continue;

pev( i, pev_origin, clorigin );
dist=get_distance_f(origin,clorigin);
if(dist<280)
{
dmg=650.0-dist;
hlt=get_user_health(i);
dmg=float(floatround(dmg));
pev( i , pev_velocity, clvelocity );
clvelocity[ 0 ] += random_float( -230.0, 230.0 );
clvelocity[ 1 ] += random_float( -230.0, 230.0 );
clvelocity[ 2 ] += random_float( 60.0, 129.0 );
set_pev( i, pev_velocity, clvelocity );

message_begin( MSG_ONE_UNRELIABLE, g_msgScreenFade, _, i );
write_short( 4096 );
write_short( 4096 );
write_short( 0x0000 );
write_byte( 225 );
write_byte( 0 );
write_byte( 0 );
write_byte( 220 );
message_end();
client_cmd( i, "spk fvox/flatline" );

message_begin(MSG_ONE_UNRELIABLE,g_msgScreenS hake,_,i);
write_short(4096*6);
write_short(4096*random_num(4,12));
write_short(4096*random_num(4,12));
message_end();


if(hlt-floatround(dmg)<0)
{
ExecuteHamB(Ham_Killed,i,own,2);
zp_set_user_ammo_packs ( own, zp_get_user_ammo_packs ( own ) + 2 );
}
else
{
if(dmg>=300)

packs = 2;
else
packs = 1;

zp_set_user_ammo_packs ( own, zp_get_user_ammo_packs ( own ) + packs );
ExecuteHamB(Ham_TakeDamage,i,ent,own,dmg,DMG_ BLAST);
}
new iPos = ++g_iPlayerPos[own]
if( iPos == sizeof(g_flCoords) )
{
iPos = g_iPlayerPos[own] = 0
}

get_user_name(i,name,31);
if( !g_nemesis[ i ] && !g_assassin[ i ] ) dmg *= 0.75;
ColorChat(own, GREY,"^x04[ZP]^x01 Damage to^x04 %s^x01 ::^x04 %i^x01 damage", name, floatround( dmg ) );

set_hudmessage( 0, 40, 80, Float:g_flCoords[iPos][0], Float:g_flCoords[iPos][1], 0, 0.1, 2.5, 0.02, 0.02, -1 )
show_hudmessage( own, "%i", floatround(dmg) )
}
}

// Get rid of the grenade
engfunc(EngFunc_RemoveEntity, ent)
}
__________________
Firuz

Last edited by Firuz; 01-01-2015 at 13:56.
Firuz is offline
Send a message via Skype™ to Firuz
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 01-01-2015 , 21:58   Re: why ?
Reply With Quote #9

PHP Code:
if(hlt-floatround(dmg)<0)
{
    
ExecuteHamB(Ham_Killediown0);
    
zp_set_user_ammo_packs ownzp_get_user_ammo_packs own ) + );

-->
PHP Code:
if(hlt-floatround(dmg)<0)
{
    
ExecuteHamB(Ham_Killediown0);
    
zp_set_user_ammo_packs ownzp_get_user_ammo_packs own ) + );
    
    
// We add 1 frag to player
    // If you want more, just edit value "1"
    
ExecuteHam(Ham_AddPointsown1true)


Last edited by zmd94; 01-01-2015 at 23:47.
zmd94 is offline
Firuz
Member
Join Date: Dec 2014
Location: Tajikistan
Old 01-01-2015 , 23:22   Re: why ?
Reply With Quote #10

hi, this don't work. ExecuteHam(Ham_AddPoints, own, 1, true)
I wish that he add the frags in top 15
__________________
Firuz

Last edited by Firuz; 01-01-2015 at 23:23.
Firuz is offline
Send a message via Skype™ to Firuz
Reply


Thread Tools
Display Modes

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 12:38.


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