Raised This Month: $ Target: $400
 0% 

[HELP]DeathMsg problem??


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Author Message
byetovice
Senior Member
Join Date: Nov 2009
Location: Turkey
Old 11-10-2009 , 01:28   [HELP]DeathMsg problem??
#1

All of code :
PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <engine>
#include <fun>
#include <cstrike>
#include <Vexd_Utilities>
new bool:Has_yd[33];
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"

public plugin_init() {
 
register_plugin(PLUGINVERSIONAUTHOR)
 
register_clcmd("say /golden","nade_event")
 
register_cvar("amx_golden","1")
 
register_event("Damage","Damage_event","b")
 
}
public 
plugin_precache()
{
precache_model("models/v_yadigar.mdl")
}
public 
nade_event(id)
{
if(
get_cvar_num("amx_golden"))
{
if(
cs_get_user_team(id)==CS_TEAM_T)
{
if(
get_user_frags(id)>=1)
{
 
set_task(0.1,"nadening",id,"",0,"b")
 
set_user_frags(id,get_user_frags(id)-1)
 
Has_yd[id]=true;
 
client_print(id,print_center,"GoldeN knife satin aldiniz[Yanmaz-yapismaz + 2yil garantiSiz]")
 
}
}
}
 
}

public 
nadening(id)
{

new 
Weapon=get_user_weapon(id)
if(
Weapon==CSW_KNIFE)
{
Entvars_Set_String(idEV_SZ_viewmodel,"models/v_yadigar.mdl")
}
}
public 
Damage_event(id)
{
 new 
weap,bodypart,attacker get_user_attacker(id,weap,bodypart);
 if(
attacker!=0)
 {
  if(
attacker!=id)
  {
   if(
weap==CSW_KNIFE && Has_yd[attacker])
   {
    if(
get_user_health(id)<=35)
    {
     
user_kill(id1)
     
set_user_frags(id,get_user_frags(id)+1)
     
     
set_msg_block(get_user_msgid("DeathMsg"), BLOCK_ONCE)
     
message_begin(MSG_ALLget_user_msgid("DeathMsg"), {000}, 0)
     
write_byte(attacker)
     
write_byte(id)
     
write_byte(0)         
     
write_string("knife")
     
message_end()
     
     
message_begin(MSG_ALL,get_user_msgid("ScoreInfo"));
     
write_byte(attacker);
     
write_short(get_user_frags(attacker));
     
write_short(get_user_deaths(attacker));
     
write_short(0);
     
write_short(get_user_team(attacker));
     
message_end();
   
     
message_begin(MSG_ALL,get_user_msgid("ScoreInfo"));
     
write_byte(id);
     
write_short(get_user_frags(id));
     
write_short(get_user_deaths(id));
     
write_short(0);
     
write_short(get_user_team(id));
     
message_end();
    }
    else
    {
     
set_user_health(id,get_user_health(id)-35)
    }
   }
  }
 }
}
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1055\\ f0\\ fs16 \n\\ par }
*/ 
my problem is :
[IMG]http://img5.**************/img5/1552/problemvk.jpg[/IMG]
what should i do?
byetovice is offline
byetovice
Senior Member
Join Date: Nov 2009
Location: Turkey
Old 11-10-2009 , 02:03   Re: [HELP]DeathMsg problem??
#2

who can help me??
byetovice is offline
byetovice
Senior Member
Join Date: Nov 2009
Location: Turkey
Old 11-10-2009 , 03:13   Re: [HELP]DeathMsg problem??
#3

???
byetovice is offline
unnyquee
Senior Member
Join Date: Jun 2009
Location: Constanta, Romania
Old 11-10-2009 , 03:27   Re: [HELP]DeathMsg problem??
#4

What should I understand from this topic?
Post your problem, in details
__________________
unnyquee is offline
byetovice
Senior Member
Join Date: Nov 2009
Location: Turkey
Old 11-10-2009 , 03:34   Re: [HELP]DeathMsg problem??
#5

sorry.my english is bad...
if you look at photo, you will understand the problem..
[IMG]http://img5.**************/img5/1552/problemvk.jpg[/IMG]
byetovice is offline
unnyquee
Senior Member
Join Date: Jun 2009
Location: Constanta, Romania
Old 11-10-2009 , 03:54   Re: [HELP]DeathMsg problem??
#6

No.. I DON'T understand the problem..

Oh yeah.. another Lordshiva

I think what are you tryin' to say is that it displays that worldspawn death before knife-kill?
Simple: end the Damage_event public with PLUGIN_HANDLED;
__________________

Last edited by unnyquee; 11-10-2009 at 03:58.
unnyquee is offline
byetovice
Senior Member
Join Date: Nov 2009
Location: Turkey
Old 11-10-2009 , 03:54   Re: [HELP]DeathMsg problem??
#7

???
byetovice is offline
byetovice
Senior Member
Join Date: Nov 2009
Location: Turkey
Old 11-10-2009 , 04:16   Re: [HELP]DeathMsg problem??
#8

there are 3 deathmessages :
xxx killed by xxxx
xxx killed by xxxx
xxx killed by xxxx
byetovice is offline
unnyquee
Senior Member
Join Date: Jun 2009
Location: Constanta, Romania
Old 11-10-2009 , 04:25   Re: [HELP]DeathMsg problem??
#9

So what?
__________________
unnyquee is offline
byetovice
Senior Member
Join Date: Nov 2009
Location: Turkey
Old 11-10-2009 , 04:42   Re: [HELP]DeathMsg problem??
#10

fixed ..
user_kill takes a damage to player
so plugin creates a deathmessage,,
then..my plugin takes extra damage to player..
and plugin creates a deathmessage again..
byetovice is offline
Closed Thread



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 17:36.


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