respawn plugin
I need a good auto respawn plugin which will respawn player when they're dead and also respawn newly connected players.
which won't respawn spec players |
Re: respawn plugin
PHP Code:
|
Re: respawn plugin
@iceeedr, the only 1.9 specific thing is RegisterHamPlayer and that can be easily replaced with RegisterHam. Given that 1.9 is not the stable release yet you should try to post code that works in 1.8.2 whenever possible.
For example if you were to change some gamerules offsets I would understand using 1.9 specific natives because the alternative for 1.8.2 is orpheu and it is not a trivial replacement. |
Re: respawn plugin
Quote:
|
Re: respawn plugin
If it was considered perfectly stable by the people developing it then it would have been already released.
The point of having both stable and dev versions is that people are not forced to use the new version until it was thoroughly tested. We should not be trying to get people to switch to a dev version, they should switch because they feel like it. |
Re: respawn plugin
Code:
I use the dev version for over 1 year and it at least for me is perfectly stable |
Re: respawn plugin
Error
PHP Code:
|
Re: respawn plugin
Quote:
|
Re: respawn plugin
#include <amxmodx>
#include <hamsandwich> #include <fakemeta> #define PLUGIN "Respawn" #define VERSION "100.0" #define AUTHOR "iceeedR" new pRespawnEnabled new const m_iMenu = 205 new const CS_Menu_ChooseAppearance = 3 public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) RegisterHam(Ham_Killed, "player", "PostPlayerKilled", 1) pRespawnEnabled = register_cvar("amx_respawn","1") register_clcmd("joinclass","JoinClass") register_clcmd("menuselect","JoinClass") } public PostPlayerKilled(iVictim, iAttacker, shouldgib) { if(get_pcvar_num(pRespawnEnabled)) { set_task(100.0, "RespawnVictim", iVictim) } } public RespawnVictim(id) { if(get_pcvar_num(pRespawnEnabled) && !is_user_alive(id)) { ExecuteHamB(Ham_CS_RoundRespawn, id) } } public JoinClass(id) { if(pev_valid(id) == 2 && get_pdata_int(id, m_iMenu) == CS_Menu_ChooseAppearance) set_task(100.0, "RespawnVictim", id) } #define VERSION "100.0" set_task(100.0, "RespawnVictim", iVictim) set_task(100.0, "RespawnVictim", id) N time debugging will immediately resurrection, 10 seconds resurrection do friends, thank you |
Re: respawn plugin
1.82 platform
|
All times are GMT -4. The time now is 01:47. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.