Cerere plugin kill effect

Categoria cu cereri de pluginuri si nu numai.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Forum rules
Accesează link-ul pentru a putea vedea regulile forumului

Daca doriti sa vi se modifice un plugin, va rugam postati aici .
Post Reply
PigoExtreamCS
Membru, skill 0
Membru, skill 0
Posts: 52
Joined: 18 Dec 2013, 21:24
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 7 times
Been thanked: 1 time
Contact:

17 Aug 2014, 20:29

Descriere plugin cerut: Cand omori pe cineva iese o fantoma din el
Alte informatii: am testat acest plugin pe serveru meu si cand omor persoana respectiva imi da server shutting down si m-am gandit sa va cer alt plugin asemanator sau o cauza de ce nu-ar merge.
| Afiseaza codul
#include <amxmodx>
#include <fakemeta_util>
#include <message_const>

new SpriteModel;

public plugin_init()
{
   register_plugin("Plugin", "1.0", "GhosT ***");
   
   register_event("DeathMsg", "DeathMsg", "a");
}
public DeathMsg()
{
   new iVictim = read_data(2);
   new iAttacker = read_data(1);
   
   if(iVictim != iAttacker)
   {
      new iOrigin[3];
      get_user_origin(iAttacker, iOrigin);
      
      message_begin(MSG_ONE, SVC_TEMPENTITY); // MSG START
      write_byte(TE_SPRITE); // TE ID
      write_coord(iOrigin[0]); // X
      write_coord(iOrigin[1]); // Y
      write_coord(iOrigin[2] + 4); // Z
      write_short(SpriteModel); // Sprite
      write_byte(3); // Scale (0.1 seconds)
      write_byte(2); // brightness
      message_end( ); // MSG END
   }
   
   return PLUGIN_HANDLED;
}
public plugin_precache()
   SpriteModel = precache_generic("sprites/kill-effect.spr");
eXtreamSHOP
User avatar
w3zoo_RedX
Membru, skill +2
Membru, skill +2
Posts: 737
Joined: 21 Dec 2013, 22:16
Detinator Steam: Da
CS Status: Scripter CS.
Detinator server CS: PM.
SteamID: PM.
Location: Bucuresti sector 2
Has thanked: 45 times
Been thanked: 45 times
Contact:

18 Aug 2014, 07:48

este sprites/kill-effect.spr?
User avatar
cyby
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 1779
Joined: 16 Jul 2011, 20:46
Detinator Steam: Da
Detinator server CS: Da
Reputatie: Scripter eXtreamCS
Fost Moderator ajutator
Location: Bacău
Has thanked: 145 times
Been thanked: 392 times
Contact:

18 Aug 2014, 08:03

| Afiseaza codul
#include <amxmodx>

new SpriteModel;

public plugin_init()
{
	register_plugin("Plugin", "1.0", "GhosT ***");

	register_event("DeathMsg", "event_death", "a");
}

public event_death()
{
	new iVictim = read_data(2);
	new iAttacker = read_data(1);

	if(!is_user_alive(iAttacker) || !is_user_connected(iVictim))
		return;
	
	if(iVictim != iAttacker)
	{
		new iOrigin[3];
		get_user_origin(iAttacker, iOrigin);

		message_begin(MSG_ONE_UNRELIABLE, SVC_TEMPENTITY)
		write_byte(TE_SPRITE); // TE ID
		write_coord(iOrigin[0]); // X
		write_coord(iOrigin[1]); // Y
		write_coord(iOrigin[2] + 4); // Z
		write_short(SpriteModel); // Sprite
		write_byte(3); // Scale (0.1 seconds)
		write_byte(2); // brightness
		message_end( ); // MSG END
	}
}

public plugin_precache()
	SpriteModel = precache_model("sprites/kill-effect.spr");
89.34.25.17:27015 - XMAS MOD
89.34.25.38:27015 - XMAS MOD
PigoExtreamCS
Membru, skill 0
Membru, skill 0
Posts: 52
Joined: 18 Dec 2013, 21:24
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 7 times
Been thanked: 1 time
Contact:

18 Aug 2014, 10:55

la fel server shutting down
User avatar
w3zoo_RedX
Membru, skill +2
Membru, skill +2
Posts: 737
Joined: 21 Dec 2013, 22:16
Detinator Steam: Da
CS Status: Scripter CS.
Detinator server CS: PM.
SteamID: PM.
Location: Bucuresti sector 2
Has thanked: 45 times
Been thanked: 45 times
Contact:

18 Aug 2014, 15:12

w3zoo_RedX wrote:este sprites/kill-effect.spr?
PigoExtreamCS
Membru, skill 0
Membru, skill 0
Posts: 52
Joined: 18 Dec 2013, 21:24
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 7 times
Been thanked: 1 time
Contact:

18 Aug 2014, 16:21

Normal ma daca nu era nu rula server-ul :|
User avatar
cyby
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 1779
Joined: 16 Jul 2011, 20:46
Detinator Steam: Da
Detinator server CS: Da
Reputatie: Scripter eXtreamCS
Fost Moderator ajutator
Location: Bacău
Has thanked: 145 times
Been thanked: 392 times
Contact:

18 Aug 2014, 18:18

Ce eroare mai exact ca nu inteleg de ce nu ar merge.
89.34.25.17:27015 - XMAS MOD
89.34.25.38:27015 - XMAS MOD
PigoExtreamCS
Membru, skill 0
Membru, skill 0
Posts: 52
Joined: 18 Dec 2013, 21:24
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 7 times
Been thanked: 1 time
Contact:

18 Aug 2014, 18:22

Deci omor persoana nu apuca sa moara ca ma deconecteaza de pe server si da server shutting down si dupa 2 secunde se reaprinde.
User avatar
cyby
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 1779
Joined: 16 Jul 2011, 20:46
Detinator Steam: Da
Detinator server CS: Da
Reputatie: Scripter eXtreamCS
Fost Moderator ajutator
Location: Bacău
Has thanked: 145 times
Been thanked: 392 times
Contact:

18 Aug 2014, 18:55

Ma refer in logs, copiaza inainte de shutting down erorile.
89.34.25.17:27015 - XMAS MOD
89.34.25.38:27015 - XMAS MOD
User avatar
bbbstar
Membru, skill 0
Membru, skill 0
Posts: 21
Joined: 28 Dec 2013, 20:34
Detinator Steam: Nu
CS Status: Fumat
Detinator server CS: xxx.WarGods.ro
Location: Baia Mare
Has thanked: 2 times
Been thanked: 9 times
Contact:

18 Aug 2014, 21:07

Normal ca iti inchide server-u mesaju e scris gresit..

Code: Select all

#include <amxmodx>

new sprite

public plugin_init()
{
	register_plugin("Death Effect","0.1","bbb")
	
	register_event("DeathMsg","EventDeathMsg", "a" )
}

public plugin_precache()
{
	sprite = precache_model("locatia animatiei tale...")
}

public EventDeathMsg()
{
	new killer = read_data(1)
	new id = read_data(2)
	
	if(id != killer)
	{
		new origin[3]
		get_user_origin(id,origin)
		
		message_begin(MSG_BROADCAST,SVC_TEMPENTITY,origin,id)
		write_byte(TE_EXPLOSION)
		write_coord(origin[0])
		write_coord(origin[1])
		write_coord(origin[2])
		write_short(sprite)
		write_byte(10)
		write_byte(5)
		write_byte(TE_EXPLFLAG_NOSOUND)
		message_end()
	}
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/
PigoExtreamCS
Membru, skill 0
Membru, skill 0
Posts: 52
Joined: 18 Dec 2013, 21:24
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 7 times
Been thanked: 1 time
Contact:

18 Aug 2014, 23:33

Multumesc bbb merge super ai thanks dela mine mai salvat.
Mersi si tie cyby c-ai incercat , eu nu-s ca altii sa nu apreciez .
Post Reply

Return to “Cereri”

  • Information