Quote:
Originally Posted by Accelerator74
Sometimes the newly-joined players will spawn under the map. I think happens it makes if the player did not select a team when entering the server.
Unfortunately, there is no source code for zbm3_addon_autorespawn, but through the lysis can see the following:
Code:
public void:OnClientPostAdminCheck(clientIndex)
{
if (IsFakeClient(clientIndex))
{
return void:0;
}
GetClientAuthId(clientIndex, AuthIdType:1, SteamID[clientIndex], 66, true);
new i;
while (i < 66)
{
if (StrEqual(SteamID[clientIndex], DataSteamID[i], true))
{
return void:0;
}
i++;
}
CreateTimer(10.0, EventAutoRespawn, clientIndex, 2);
return void:0;
}
public Action:EventAutoRespawn(Handle:hTimer, any:clientIndex)
{
if (!IsPlayerExist(clientIndex, false))
{
return Action:4;
}
if (!ZP_GetRoundState(ZPServerRound:1))
{
new CMode = ZP_GetRoundState(ZPServerRound:4);
switch (CMode)
{
case 4, 5:
{
}
default:
{
if (!IsPlayerAlive(clientIndex))
{
ZP_ForceClientRespawn(clientIndex);
}
}
}
}
return Action:4;
}
I think it's better to create a timer EventAutoRespawn in the event player_team.
|
It should be removed, probably i forget to remove it from plugins folder, in next version i already remove it from plugin folder.
NEXT UPDATE 7.9
Which things are done
PHP Code:
* Fix with death fake events
* Fix with change team for spectators
* Added saving of selected human and zombie classes in the sql database
* Added free weapon menu on the spawn (Like in classic ZP 4.3), you can disable it in the plugin of the weapons shop.
* Fix flare grenade.
* Psyh zombie class have a scream skill (Like shaman in zp 4.3)
* Girl zombie class have a bomb blast skill (Like deimos in zp 4.3)
* NormalM01 zombie class have a smoke stack skill
Which things i plan to start and finish soon, you also can suggest ideas for classes skills
PHP Code:
# Cvars for setting selection of zclass and hclass only for VIPs. Normal players selected class by random, like bots.
# TESLA CLASS (Electricty skill, like scream skill but dont deal damage, only make the confusion for the humans in the radius)
# TRAPER CLASS (Like fat skill (traps for humans) in cso)
# BLINDER CLASS (Like fat skill (black screen for attacker) in cso)
# HEALER CLASS (Like healer in cso)
# WITCH CLASS (Like witch in zp cso)
# ICER CLASS (Skill place ice wall where you can stand for and wall explose after)
# WATER CLASS (Skill spit water around him) Like a classic class without any special skill.
# Breaked ice effect for removing freeze.
# Zombie bombs (Like infect, jump) and unique models for each class (grenades with unique hands)
# Possibility to set the zombie grenade model (v_ & [I](possibly w_)[/I]) in the class addon
__________________