Raised This Month: $12 Target: $400
 3% 

Request plugin Respawn ZM


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
CataFan21
Junior Member
Join Date: Mar 2021
Old 10-21-2021 , 07:40   Request plugin Respawn ZM
Reply With Quote #1

Hello friends,
I have a zombie plague 6.2 server and I only own amxx. I don't have sma sources for addons. It comes from Mr.Love bought by me.
I would like to know if I can introduce a respawn zm plugin in the game.
As far as I know, the addons does not have added CVARs.
Can anyone help me if I can understand how to get respawn to zm mode?
Thanks.
CataFan21 is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 10-21-2021 , 08:29   Re: Request plugin Respawn ZM
Reply With Quote #2

You should never buy/use plugins without the source code. Moreover, distributing AMXX files without source code is against the gnu license and therefore illegal.
__________________
HamletEagle is offline
CataFan21
Junior Member
Join Date: Mar 2021
Old 10-21-2021 , 08:56   Re: Request plugin Respawn ZM
Reply With Quote #3

I had no choice because it does not offer the source because he further rewrote the code after his hatrick source and started making a business out of it. By selling addons zm6.2.
Thank you very much for the replay and what you sent me but I had no choice because I did not know another way or good addons when I took it. We are looking for something without bugs, errors, etc.
Can you help me with a simple plugin to respawn round by round to zm?
Thx you.
CataFan21 is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 10-21-2021 , 09:01   Re: Request plugin Respawn ZM
Reply With Quote #4

Do you have the zombie plague include files? Should be in the addons/amxmodx/scripting/includes folder.
__________________








CrazY. is offline
CataFan21
Junior Member
Join Date: Mar 2021
Old 10-21-2021 , 10:47   Re: Request plugin Respawn ZM
Reply With Quote #5

zombie plague include files and this is amxx
CataFan21 is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 10-21-2021 , 12:21   Re: Request plugin Respawn ZM
Reply With Quote #6

You'll have to share your zombie plague includes. I'm not sure but there should be a zombieplague.inc. If there isn't you'll have show which ones you have.
__________________








CrazY. is offline
CataFan21
Junior Member
Join Date: Mar 2021
Old 10-21-2021 , 13:22   Re: Request plugin Respawn ZM
Reply With Quote #7

ZPA62.amxx

zombie_plague_amxx_i386.so

that is all bro what i have, i dont have source
CataFan21 is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 10-21-2021 , 13:51   Re: Request plugin Respawn ZM
Reply With Quote #8

Without the source there is not much we can do. Try this but I'm not sure if it is going to work.

Code:
#include <amxmodx>
#include <hamsandwich>

const TASK_RESPAWN = 1000

native zp_get_user_zombie(index)
native zp_infect_user(index, infector, silent, rewards)
forward zp_round_ended(winner_team)

public plugin_init()
{
	register_plugin("Respawn Zombie", "1.0", "Ainsley Harriott")
	RegisterHam(Ham_Killed, "player", "OnPlayerKilledPost", 1)
}

#if AMXX_VERSION_NUM < 183
public client_disconnect(index)
#else
public client_disconnected(index)
#endif
{
	remove_task(index+TASK_RESPAWN)
}

public zp_round_ended()
{
	new players[32], count
	get_players(players, count, "bh")

	for (new i = 0, player; i < count; i++)
	{
		player = players[i]
		remove_task(player+TASK_RESPAWN)
	}
}

public OnPlayerKilledPost(index)
{
	if (zp_get_user_zombie(index))
	{
		set_task(3.0, "TaskRespawnPlayer", TASK_RESPAWN+index)
	}
}

public TaskRespawnPlayer(task)
{
	new player = task - TASK_RESPAWN

	if (is_user_alive(player) || !is_user_connected(player))
	{
		return
	}

	ExecuteHamB(Ham_CS_RoundRespawn, player)
	zp_infect_user(player, 0, 1, 0)
}
__________________









Last edited by CrazY.; 10-21-2021 at 15:44.
CrazY. is offline
CataFan21
Junior Member
Join Date: Mar 2021
Old 10-21-2021 , 14:53   Re: Request plugin Respawn ZM
Reply With Quote #9

C:\Users\Hanibac Alexandru\Desktop\jsjdhajdh\scripting\respawn .sma(27) : error 017: undefined symbol "MAX_PLAYERS"
// C:\Users\Hanibac Alexandru\Desktop\jsjdhajdh\scripting\respawn .sma(27) : error 029: invalid expression, assumed zero
// C:\Users\Hanibac Alexandru\Desktop\jsjdhajdh\scripting\respawn .sma(27) : error 017: undefined symbol "count"
// C:\Users\Hanibac Alexandru\Desktop\jsjdhajdh\scripting\respawn .sma(27) : fatal error 107: too many error messages on one line


i can't compilate look this errors
CataFan21 is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 10-21-2021 , 15:45   Re: Request plugin Respawn ZM
Reply With Quote #10

I edited my previous post, should be fixed.
__________________








CrazY. is offline
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 11:02.


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