Problema ZP 4.3 [rezolvat]

Discutii legate de instalarea, configurarea si modificarea unui server de Counter-Strike.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Locked
User avatar
JuNNNNkieWho
Membru, skill +1
Membru, skill +1
Posts: 106
Joined: 20 Dec 2015, 08:25
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Contact:

06 Jul 2016, 10:43

Salut am si eu o problema la sv de zm,cand da assasin sau dau eu assassin si xxx are un zombi cu putere dinainte,apoi o are si la assassin...de exemplu boomer zombie il da assassin si are puterea si la assassin HELP MEE
Last edited by Chris Duskblade on 08 Jul 2016, 00:51, edited 1 time in total.
Reason: rezolvat
RoyalServer 2
User avatar
JaiLBreaK
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 1517
Joined: 05 Jan 2016, 18:17
Detinator Steam: Nu
Detinator server CS: Da
Reputatie: Membru Club eXtreamCS (2 luni)
Fost Scripter eXtreamCS
Fond eXtream: 0
Has thanked: 5 times
Been thanked: 10 times
Contact:

06 Jul 2016, 20:10

pai clasele(majoritatea) sunt facute pentru 4.3 unde nu era modu acum ca e la clase verifica doar daca nu e nemesis sa ii dea puterea, daca vrei sa nu mai aiba lasa sursele de la clase aici
Image
CSGO Original Module[35%]
User avatar
JuNNNNkieWho
Membru, skill +1
Membru, skill +1
Posts: 106
Joined: 20 Dec 2015, 08:25
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Contact:

06 Jul 2016, 20:19

http://www104.zippyshare.com/v/BnaFT34J/file.html

Eu chiar iti multumesc daca le faci nu am ce zice..
User avatar
JaiLBreaK
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 1517
Joined: 05 Jan 2016, 18:17
Detinator Steam: Nu
Detinator server CS: Da
Reputatie: Membru Club eXtreamCS (2 luni)
Fost Scripter eXtreamCS
Fond eXtream: 0
Has thanked: 5 times
Been thanked: 10 times
Contact:

07 Jul 2016, 17:00

nu am mai intrat scuze, acum ti le fac dau edit
Edit: http://www54.zippyshare.com/v/p6f8JNtR/file.html
Image
CSGO Original Module[35%]
User avatar
JuNNNNkieWho
Membru, skill +1
Membru, skill +1
Posts: 106
Joined: 20 Dec 2015, 08:25
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Contact:

07 Jul 2016, 19:32

Man esti tare,si am inteles si cum faci pui && !zp_get_user_assassin(id) asa nu?
Dar 2 clase dau eroare la compliare adica jumper si undertaker

undertaker:

AMX Mod X Compiler 1.8.3-manual
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2013 AMX Mod X Team

Modified for www.Freakz.ro / amx.freakz.ro

amx/include/xs.inc(119) : fatal error 110: assertion failed: 0


Compilation aborted.
1 Error.
Done.

Jumper

:AMX Mod X Compiler 1.8.3-manual
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2013 AMX Mod X Team

Modified for www.Freakz.ro / amx.freakz.ro

zp_zclass_super_jumper_zombie.sma(98) : error 017: undefined symbol "id"
zp_zclass_super_jumper_zombie.sma(98) : error 029: invalid expression, assumed zero
zp_zclass_super_jumper_zombie.sma(98) : error 017: undefined symbol "id"
zp_zclass_super_jumper_zombie.sma(98) : fatal error 107: too many error messages on one line

Compilation aborted.
4 Errors.
Done.


Daca imi rezolvi si errorile astea mersi mult
User avatar
JaiLBreaK
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 1517
Joined: 05 Jan 2016, 18:17
Detinator Steam: Nu
Detinator server CS: Da
Reputatie: Membru Club eXtreamCS (2 luni)
Fost Scripter eXtreamCS
Fond eXtream: 0
Has thanked: 5 times
Been thanked: 10 times
Contact:

07 Jul 2016, 20:07

lasa sma ca nu pot sa descarc acu ca dupa imi mere downloadu de la csgo greu
Image
CSGO Original Module[35%]
User avatar
JuNNNNkieWho
Membru, skill +1
Membru, skill +1
Posts: 106
Joined: 20 Dec 2015, 08:25
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Contact:

07 Jul 2016, 20:39

| Afiseaza codul
/*
				[ZP] Class : Mega Jumper Zombie
				      (new zombie class)

				            by Fry!


	Description :
		
			This is new zombie class but this zombie can Jump very high even on the highest building, however jumps are limited so use them wisely.


			Note :

				If you want to use this class for admins only comment out this //#define FOR_ADMINS
	

	Cvars :

			zp_super_jumper_zombie_maxjumps "50" - How much you can jump per round. 


	Credits :

			twistedeuphoria - for his Multi Jump plugin


	Changelog : 

			10/10/2008 - v1.0 - First test 
			17/10/2008 - v1.1 - fixed that jumps worked only once in round, rewrited half of code, removed unnecessary code/lines, changed plugin and zombie name. ^^
			06/11/2008 - v1.1.2 - fixed bug that mega jump works for all zombie classes, changed plugin name.
			07/11/2008 - v1.1.3 - fixed last bug that jumps work for humans not for zombie class.
			26/12/2008 - v1.1.6 - removed chat message, fixed admin acces... Admins with flag A can use it already, fixed plugin crash.
			27/12/2008 - v1.1.8 - fixed my mistake that this zombie was only for admins, added simple way to use it for admins just comment out #define FOR_ADMINS.
			18/07/2009 - v1.2.4 - changed zombie and plugin name, fixed none working cvar, fixed now jumps are limited per round, added chat message how much jumps you have left, added chat message if this class is for admins only, dropped engine and using fakemeta instead.
*/

#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <zombie_plague_advance>

#define PLUGIN "[ZP] Class : Super Jumper Zombie"
#define VERSION "1.2.4"
#define AUTHOR "Fry!"

//#define FOR_ADMINS

#if defined FOR_ADMINS
	#define ADMINACCESS ADMIN_LEVEL_A
#endif

new const zclass_name[] = "Super Jumper"
new const zclass_info[] = "Jump Jump Jump"
new const zclass_model[] = "Jokey"
new const zclass_clawmodel[] = "v_knife_jockey.mdl"
const zclass_health = 13000
const zclass_speed = 250
const Float:zclass_gravity = 1.0
const Float:zclass_knockback = 0.5

new Jumpnum[33] = false 
new bool:canJump[33] = false
new g_zclass_super_jumper, g_super_jumper_maxjumps

public plugin_init() 
{
	register_plugin(PLUGIN, VERSION, AUTHOR)
	
	register_cvar("zp_zclass_mega_jumper_zombie",VERSION,FCVAR_SERVER|FCVAR_EXTDLL|FCVAR_UNLOGGED|FCVAR_SPONLY)
	
	g_super_jumper_maxjumps = register_cvar("zp_super_jumper_zombie_maxjumps", "50")
	
	register_forward(FM_PlayerPreThink, "fm_PlayerPreThink")
	register_forward(FM_PlayerPostThink, "fm_PlayerPostThink")
}

public plugin_precache()
{
	g_zclass_super_jumper = zp_register_zombie_class(zclass_name, zclass_info, zclass_model, zclass_clawmodel, zclass_health, zclass_speed, zclass_gravity, zclass_knockback)
}

public client_putinserver(id)
{
	Jumpnum[id] = 0
	canJump[id] = false
}

public client_disconnect(id)
{
	Jumpnum[id] = 0
	canJump[id] = false
}

public zp_user_infected_post(player, infector)
{
	if (zp_get_user_zombie_class(player) == g_zclass_super_jumper && !zp_get_user_assassin(id)) && !zp_get_user_nemesis(id))
	{
		canJump[player] = true
		Jumpnum[player] = true
	}
}

public fm_PlayerPreThink(id)
{
	if (!is_user_alive(id) || !zp_get_user_zombie(id) || zp_get_user_assassin(id) || zp_get_user_nemesis(id))
		return FMRES_IGNORED
	
	if (zp_get_user_zombie_class(id) != g_zclass_super_jumper)
		return FMRES_IGNORED
	
	#if defined FOR_ADMINS
		if ( !( get_user_flags(id) & ADMINACCESS) )
		{
			client_print(id, print_chat, "[Zombie] Sorry, but this class is available for admins only")
			
			return FMRES_IGNORED
		}
	#endif
		
	new nbut = pev(id, pev_button)
	new obut = pev(id, pev_oldbuttons)
	
	if ((nbut & IN_JUMP) && !(pev(id, pev_flags) & FL_ONGROUND) && !(obut & IN_JUMP))
	{
		if (Jumpnum[id] < get_pcvar_num(g_super_jumper_maxjumps))
		{
			canJump[id] = true 
			Jumpnum[id]++
			client_print(id, print_chat, "[Zombie] You did %d of %d jumps", Jumpnum[id], get_pcvar_num(g_super_jumper_maxjumps))
		}
		else
		{
			client_print(id, print_chat, "[Zombie] You did max jumps in this round")
		}
	}
	
	else if ((nbut & IN_JUMP) && !(pev(id, pev_flags) & FL_ONGROUND) && !(obut & IN_JUMP))
	{
		if (Jumpnum[id] == get_pcvar_num(g_super_jumper_maxjumps) || (nbut & IN_JUMP))
		{
			canJump[id] = false
			Jumpnum[id] = false
		}
	}
	
	return FMRES_IGNORED
}

public fm_PlayerPostThink(id)
{
	if (!is_user_alive(id) || !zp_get_user_zombie(id) || zp_get_user_assassin(id) || zp_get_user_nemesis(id)) 
		return FMRES_IGNORED
	
	if (zp_get_user_zombie_class(id) != g_zclass_super_jumper)
		return FMRES_IGNORED
	
	#if defined FOR_ADMINS
		if ( !( pev(id, pev_flags) & ADMINACCESS) )
		{
			client_print(id, print_chat, "[Zombie] Sorry, but this class is only available for admins")
			
			return FMRES_IGNORED
		}	
	#endif

	if (canJump[id] == true)
	{
		new Float:velocity[3]	
		pev(id, pev_velocity, velocity)
		velocity[2] = random_float(265.0,285.0)
		set_pev(id, pev_velocity, velocity)
		
		canJump[id] = false
		
		return FMRES_IGNORED
	}
	
	return FMRES_IGNORED
}
User avatar
JaiLBreaK
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 1517
Joined: 05 Jan 2016, 18:17
Detinator Steam: Nu
Detinator server CS: Da
Reputatie: Membru Club eXtreamCS (2 luni)
Fost Scripter eXtreamCS
Fond eXtream: 0
Has thanked: 5 times
Been thanked: 10 times
Contact:

07 Jul 2016, 20:44

if (zp_get_user_zombie_class(player) == g_zclass_super_jumper && !zp_get_user_assassin(id)) && !zp_get_user_nemesis(id))
{
=>
if (zp_get_user_zombie_class(player) == g_zclass_super_jumper && !zp_get_user_assassin(player)) && !zp_get_user_nemesis(player))
{
Image
CSGO Original Module[35%]
User avatar
JuNNNNkieWho
Membru, skill +1
Membru, skill +1
Posts: 106
Joined: 20 Dec 2015, 08:25
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Contact:

07 Jul 2016, 20:50

AMX Mod X Compiler 1.8.3-manual
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2013 AMX Mod X Team

Modified for http://www.Freakz.ro / amx.freakz.ro

zp_zclass_super_jumper_zombie.sma(99) : error 001: expected token: "(", but found "if"
zp_zclass_super_jumper_zombie.sma(99) : error 017: undefined symbol "id"
zp_zclass_super_jumper_zombie.sma(99) : warning 217: loose indentation
zp_zclass_super_jumper_zombie.sma(99) : error 029: invalid expression, assumed zero
zp_zclass_super_jumper_zombie.sma(99) : fatal error 107: too many error messages on one line

Compilation aborted.
4 Errors.
Done.
| Afiseaza codul
/*
				[ZP] Class : Mega Jumper Zombie
				      (new zombie class)

				            by Fry!


	Description :
		
			This is new zombie class but this zombie can Jump very high even on the highest building, however jumps are limited so use them wisely.


			Note :

				If you want to use this class for admins only comment out this //#define FOR_ADMINS
	

	Cvars :

			zp_super_jumper_zombie_maxjumps "50" - How much you can jump per round. 


	Credits :

			twistedeuphoria - for his Multi Jump plugin


	Changelog : 

			10/10/2008 - v1.0 - First test 
			17/10/2008 - v1.1 - fixed that jumps worked only once in round, rewrited half of code, removed unnecessary code/lines, changed plugin and zombie name. ^^
			06/11/2008 - v1.1.2 - fixed bug that mega jump works for all zombie classes, changed plugin name.
			07/11/2008 - v1.1.3 - fixed last bug that jumps work for humans not for zombie class.
			26/12/2008 - v1.1.6 - removed chat message, fixed admin acces... Admins with flag A can use it already, fixed plugin crash.
			27/12/2008 - v1.1.8 - fixed my mistake that this zombie was only for admins, added simple way to use it for admins just comment out #define FOR_ADMINS.
			18/07/2009 - v1.2.4 - changed zombie and plugin name, fixed none working cvar, fixed now jumps are limited per round, added chat message how much jumps you have left, added chat message if this class is for admins only, dropped engine and using fakemeta instead.
*/

#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <zombie_plague_advance>

#define PLUGIN "[ZP] Class : Super Jumper Zombie"
#define VERSION "1.2.4"
#define AUTHOR "Fry!"

//#define FOR_ADMINS

#if defined FOR_ADMINS
	#define ADMINACCESS ADMIN_LEVEL_A
#endif

new const zclass_name[] = "Super Jumper"
new const zclass_info[] = "Jump Jump Jump"
new const zclass_model[] = "Jokey"
new const zclass_clawmodel[] = "v_knife_jockey.mdl"
const zclass_health = 13000
const zclass_speed = 250
const Float:zclass_gravity = 1.0
const Float:zclass_knockback = 0.5

new Jumpnum[33] = false 
new bool:canJump[33] = false
new g_zclass_super_jumper, g_super_jumper_maxjumps

public plugin_init() 
{
	register_plugin(PLUGIN, VERSION, AUTHOR)
	
	register_cvar("zp_zclass_mega_jumper_zombie",VERSION,FCVAR_SERVER|FCVAR_EXTDLL|FCVAR_UNLOGGED|FCVAR_SPONLY)
	
	g_super_jumper_maxjumps = register_cvar("zp_super_jumper_zombie_maxjumps", "50")
	
	register_forward(FM_PlayerPreThink, "fm_PlayerPreThink")
	register_forward(FM_PlayerPostThink, "fm_PlayerPostThink")
}

public plugin_precache()
{
	g_zclass_super_jumper = zp_register_zombie_class(zclass_name, zclass_info, zclass_model, zclass_clawmodel, zclass_health, zclass_speed, zclass_gravity, zclass_knockback)
}

public client_putinserver(id)
{
	Jumpnum[id] = 0
	canJump[id] = false
}

public client_disconnect(id)
{
	Jumpnum[id] = 0
	canJump[id] = false
}

public zp_user_infected_post(player, infector)
{
	if 
if (zp_get_user_zombie_class(player) == g_zclass_super_jumper && !zp_get_user_assassin(id)) && !zp_get_user_nemesis(id))
	{
		canJump[player] = true
		Jumpnum[player] = true
	}
}

public fm_PlayerPreThink(id)
{
	if (zp_get_user_zombie_class(player) == g_zclass_super_jumper && !zp_get_user_assassin(player)) && !zp_get_user_nemesis(player))
{
		return FMRES_IGNORED
	
	if (zp_get_user_zombie_class(id) != g_zclass_super_jumper)
		return FMRES_IGNORED
	
	#if defined FOR_ADMINS
		if ( !( get_user_flags(id) & ADMINACCESS) )
		{
			client_print(id, print_chat, "[Zombie] Sorry, but this class is available for admins only")
			
			return FMRES_IGNORED
		}
	#endif
		
	new nbut = pev(id, pev_button)
	new obut = pev(id, pev_oldbuttons)
	
	if ((nbut & IN_JUMP) && !(pev(id, pev_flags) & FL_ONGROUND) && !(obut & IN_JUMP))
	{
		if (Jumpnum[id] < get_pcvar_num(g_super_jumper_maxjumps))
		{
			canJump[id] = true 
			Jumpnum[id]++
			client_print(id, print_chat, "[Zombie] You did %d of %d jumps", Jumpnum[id], get_pcvar_num(g_super_jumper_maxjumps))
		}
		else
		{
			client_print(id, print_chat, "[Zombie] You did max jumps in this round")
		}
	}
	
	else if ((nbut & IN_JUMP) && !(pev(id, pev_flags) & FL_ONGROUND) && !(obut & IN_JUMP))
	{
		if (Jumpnum[id] == get_pcvar_num(g_super_jumper_maxjumps) || (nbut & IN_JUMP))
		{
			canJump[id] = false
			Jumpnum[id] = false
		}
	}
	
	return FMRES_IGNORED
}

public fm_PlayerPostThink(id)
{
	if (!is_user_alive(id) || !zp_get_user_zombie(id) || zp_get_user_assassin(id) || zp_get_user_nemesis(id)) 
		return FMRES_IGNORED
	
	if (zp_get_user_zombie_class(id) != g_zclass_super_jumper)
		return FMRES_IGNORED
	
	#if defined FOR_ADMINS
		if ( !( pev(id, pev_flags) & ADMINACCESS) )
		{
			client_print(id, print_chat, "[Zombie] Sorry, but this class is only available for admins")
			
			return FMRES_IGNORED
		}	
	#endif

	if (canJump[id] == true)
	{
		new Float:velocity[3]	
		pev(id, pev_velocity, velocity)
		velocity[2] = random_float(265.0,285.0)
		set_pev(id, pev_velocity, velocity)
		
		canJump[id] = false
		
		return FMRES_IGNORED
	}
	
	return FMRES_IGNORED
}

Daca nu am facut bine...pune tu direct sursa facuta
User avatar
JaiLBreaK
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 1517
Joined: 05 Jan 2016, 18:17
Detinator Steam: Nu
Detinator server CS: Da
Reputatie: Membru Club eXtreamCS (2 luni)
Fost Scripter eXtreamCS
Fond eXtream: 0
Has thanked: 5 times
Been thanked: 10 times
Contact:

07 Jul 2016, 21:50

if
if (zp_get_user_zombie_class(player) == g_zclass_super_jumper && !zp_get_user_assassin(id)) && !zp_get_user_nemesis(id))
sterge primu if..
Image
CSGO Original Module[35%]
User avatar
JuNNNNkieWho
Membru, skill +1
Membru, skill +1
Posts: 106
Joined: 20 Dec 2015, 08:25
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Contact:

07 Jul 2016, 22:02

Mersi T/C
Locked

Return to “Probleme la servere dedicate de Counter-Strike”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 37 guests