[Rezolvat] Plugin ostatici , bomba

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 .
Gossu
Membru, skill 0
Membru, skill 0
Posts: 0
Joined: 27 May 2014, 15:31
Detinator Steam: Da
Fond eXtream: 0
Has thanked: 16 times

12 Jun 2014, 23:36

Descriere plugin cerut: Salut , vreau un plugin care sa scoata bomba si ostaticii de pe sv-ul meu , adica sa spunem pe cs_assault sa nu mai exista ostatici , iar pe d2x2 .. sa nu mai fie bomba deloc ,sa nu o poti planta si sa nu existe.
Alte informatii: Multumesc.
Last edited by Gossu on 25 Jun 2014, 19:18, edited 1 time in total.
RoyalServer 2
User avatar
sUperstar
Utilizator neserios (tepar)
Utilizator neserios (tepar)
Posts: 0
Joined: 01 Mar 2013, 23:08
Detinator Steam: Da
Reputatie: Restrictie moderator [abuz de functie]
Fost eXtream mod
Utilizator neserios (tepar!)
Has thanked: 42 times
Been thanked: 97 times

13 Jun 2014, 02:24

RIPPLE FAUCET - Castiga pana la 1 Ripple pe zi!
Gossu
Membru, skill 0
Membru, skill 0
Posts: 0
Joined: 27 May 2014, 15:31
Detinator Steam: Da
Fond eXtream: 0
Has thanked: 16 times

13 Jun 2014, 12:26

Cand pun o mapa cu bmb de ex. d2x2 , funtioneaza perfect , cand bag o mapa cu ostatici gen cs_assault imi iese direct din HL Dedicated Server , fara nici o eroare , ma poti ajuta ?
Gossu
Membru, skill 0
Membru, skill 0
Posts: 0
Joined: 27 May 2014, 15:31
Detinator Steam: Da
Fond eXtream: 0
Has thanked: 16 times

14 Jun 2014, 13:01

UPP , ma ajuta cineva ?
User avatar
Adventx
Membru, skill 0
Membru, skill 0
Posts: 0
Joined: 17 Sep 2013, 21:44
Detinator Steam: Da
Reputatie: Fost moderator ajutator
Has thanked: 128 times
Been thanked: 142 times
Contact:

14 Jun 2014, 17:31

Code: Select all

#include <amxmodx>
#include <hamsandwich>

new const PLUGIN[] = "Remove Hostage";
new const VERSION[] = "1.0";

#pragma semicolon 1

plugin_init()
{
	register_plugin(PLUGIN, VERSION, "Adventx");

	// HAM Forwards
	RegisterHam(Ham_Spawn, "hostage_entity", "fw_HostageSpawn");
}

public fw_HostageSpawn(id)
{
	remove_entity(id);
	return PLUGIN_CONTINUE;
}
Gossu
Membru, skill 0
Membru, skill 0
Posts: 0
Joined: 27 May 2014, 15:31
Detinator Steam: Da
Fond eXtream: 0
Has thanked: 16 times

14 Jun 2014, 18:15

Imi da aceste erori la compilare :

Code: Select all

/tmp/textI7c5wi.sma(19) : error 017: undefined symbol "remove_entity"
/tmp/textI7c5wi.sma(21) : warning 203: symbol is never used: "plugin_init"
User avatar
DaNNe.
Fost moderator
Fost moderator
Posts: 0
Joined: 08 Nov 2013, 20:43
Detinator Steam: Da
CS Status: Activitate scăzută
SteamID: /id/FurienMaster
Reputatie: Nick anterior: DnD. Gold, Emrys
0.5/3
Fost moderator ajutator
Fost Membru Club eXtreamCS (doua luni)
Has thanked: 244 times
Been thanked: 129 times
Contact:

14 Jun 2014, 18:34

| Afiseaza codul
#include <amxmodx>
#include <hamsandwich>
#include <engine>

new const PLUGIN[] = "Remove Hostage";
new const VERSION[] = "1.0";

public plugin_init() {
   register_plugin(PLUGIN, VERSION, "Adventx");

   RegisterHam(Ham_Spawn, "hostage_entity", "fw_HostageSpawn");
}

public fw_HostageSpawn(Ent) {
   remove_entity(Ent);
   return PLUGIN_CONTINUE;
}
User avatar
Adventx
Membru, skill 0
Membru, skill 0
Posts: 0
Joined: 17 Sep 2013, 21:44
Detinator Steam: Da
Reputatie: Fost moderator ajutator
Has thanked: 128 times
Been thanked: 142 times
Contact:

14 Jun 2014, 18:41

Gossu wrote:Imi da aceste erori la compilare :

Code: Select all

/tmp/textI7c5wi.sma(19) : error 017: undefined symbol "remove_entity"
/tmp/textI7c5wi.sma(21) : warning 203: symbol is never used: "plugin_init"
Scuze, eram sigur ca nu va merge pentru ca l-am scris intr-un txt, nu am instalat amxmodx, sunt de pe alt pc :)

Foloseste ceea ce ti-a dat DaNNe. :)
Cosmin
Fost moderator
Fost moderator
Posts: 0
Joined: 06 Jul 2013, 22:08
Detinator Steam: Da
Detinator server CS: Nu
Reputatie: Fost eXtream Mod
Fost Scripter eXtreamCS
Nume anterior: scosmynnnn
Has thanked: 492 times
Been thanked: 547 times

14 Jun 2014, 18:42

DaNNe. wrote:
| Afiseaza codul
#include <amxmodx>
#include <hamsandwich>
#include <engine>

new const PLUGIN[] = "Remove Hostage";
new const VERSION[] = "1.0";

public plugin_init() {
   register_plugin(PLUGIN, VERSION, "Adventx");

   RegisterHam(Ham_Spawn, "hostage_entity", "fw_HostageSpawn");
}

public fw_HostageSpawn(Ent) {
   remove_entity(Ent);
   return PLUGIN_CONTINUE;
}
return 0 stergel ca e pus degeaba,nu ai de ce sa il ti ;)
Gossu
Membru, skill 0
Membru, skill 0
Posts: 0
Joined: 27 May 2014, 15:31
Detinator Steam: Da
Fond eXtream: 0
Has thanked: 16 times

14 Jun 2014, 18:49

DaNNe. wrote:
| Afiseaza codul
#include <amxmodx>
#include <hamsandwich>
#include <engine>

new const PLUGIN[] = "Remove Hostage";
new const VERSION[] = "1.0";

public plugin_init() {
   register_plugin(PLUGIN, VERSION, "Adventx");

   RegisterHam(Ham_Spawn, "hostage_entity", "fw_HostageSpawn");
}

public fw_HostageSpawn(Ent) {
   remove_entity(Ent);
   return PLUGIN_CONTINUE;
}

Nu are nici un efec t asupra sv-ului. Ostaticii inca sunt acolo , iar cand ii salvezi CT castiga , cu bmb la fel.
Gossu
Membru, skill 0
Membru, skill 0
Posts: 0
Joined: 27 May 2014, 15:31
Detinator Steam: Da
Fond eXtream: 0
Has thanked: 16 times

15 Jun 2014, 09:09

UPP , ma poate ajuta cineva ?
User avatar
HamletEagle
Fost moderator
Fost moderator
Posts: 0
Joined: 21 Sep 2013, 15:05
Detinator Steam: Da
CS Status: Inactiv cateva zile.
SteamID: privat
Reputatie: Fost Scripter eXtreamCS.com
Fost Moderator ajutator
Has thanked: 19 times
Been thanked: 85 times

15 Jun 2014, 10:22

E gresit ce a facut advent, nu poti sterge o entitate care s-a spawnat, daca faci cu spawn hostage trebuie sa dai return HAM_SUPERCEDE si le va bloca spawn-ul.
| Afiseaza codul
#include < amxmodx >
#include < fakemeta >
#include < engine >
#include < cstrike >
#include < hamsandwich >

new bool: g_bHostageMap, g_bBombMap
new BombMsgId

public plugin_init ( ) {
	
	register_plugin ( "No bomb and hostages" , "0.1" , "HamletEagle" )
	
	FindAndRemoveStuffs ( )
	
	RegisterHam(Ham_Spawn, "hostage_entity", "fw_HostageSpawn");
	register_logevent("LogEvent_Spawned_With_Bomb", 3, "2=Spawned_With_The_Bomb")
	
	BombMsgId = get_user_msgid("StatusIcon")
}

public FindAndRemoveStuffs ( ) {
	
	new iEnt [ 4 ]
	
	iEnt [ 0 ] = find_ent_by_class ( -1 , "func_bomb_target"            )
	iEnt [ 1 ] = find_ent_by_class ( iEnt [ 1 ] , "info_bomb_target"    ) 
	
	iEnt [ 2 ] = find_ent_by_class ( -1 , "func_hostage_rescue"         )
	iEnt [ 3 ] = find_ent_by_class ( iEnt [ 2 ] , "info_hostage_rescue" )
	
	for ( new i = 0 ; i < 2 ; i++ ) {
		
		if ( pev_valid ( iEnt [ i ] ) ) {
			
			g_bBombMap = true
			remove_entity ( iEnt [ i ] )
			
		}
		
	}
	
	for ( new i = 2 ; i < 4 ; i++ ) {
		
		if ( pev_valid ( iEnt [ i ] ) ) {
			
			g_bHostageMap = true
			remove_entity ( iEnt [ i ] )
			
		}
		
	}
	
	if ( ! g_bBombMap && ! g_bHostageMap )
		pause ( "a" )
	
}

public LogEvent_Spawned_With_Bomb ( ) {
	
	new id = get_loguser_index()
	
	cs_set_user_bpammo(id, CSW_C4, 0)
	
	message_begin(MSG_ONE, BombMsgId, _, id)
	write_byte(0)
	write_string("c4")
	message_end()
	
	
}

stock get_loguser_index() {
	new loguser[80], name[32]
	read_logargv(0, loguser, 79)
	parse_loguser(loguser, name, 31)
	
	return get_user_index(name)
}  

public fw_HostageSpawn ( Hostage ) {
	
	return HAM_SUPERCEDE;
	
}
Astept sa imi zici daca merge.
Last edited by HamletEagle on 15 Jun 2014, 11:10, edited 1 time in total.
Daca vreti ajutorul meu, nu dati bump la topic, fara intrebari de genu "cat mai dureaza/mai astept mult?".
Post Reply

Return to “Cereri”

  • Information