Участник
Пользователь
- Сообщения
- 278
- Реакции
- 137
public plugin_precache() {
new const szRemoveEntities[][] = {
"func_bomb_target", "func_escapezone", "func_hostage_rescue", "func_vip_safetyzone", "info_vip_start",
"hostage_entity", "info_bomb_target", "info_hostage_rescue", "monster_scientist"
};
g_tRemoveEntities = TrieCreate();
for(new i = 0; i < sizeof(szRemoveEntities); i++) {
TrieSetCell(g_tRemoveEntities, szRemoveEntities[i], i);
}
g_iForwardSpawn = register_forward(FM_Spawn, "@FM_Spawn_Pre", ._post = false);
}
/* *amxmodx* */
@AmxmodxHooks() {
register_clcmd("jointeam", "@clcmd_jointeam");
register_clcmd("chooseteam", "@clcmd_jointeam");
}
When I looked at the current plugins written on Reapi, I saw that they deleted them this way and I did this. I don't know how to delete it, but I will investigate. Thanks.The code under spoiler is not needed, since everything can be turned off by ReGameDLL.
Part of entitis can be blocked without deleting or using spawn hook.
and copy paste u got 'deathrun' mod. Why this better deathrun mod by mistrick? - NothingWhen I looked at the current plugins written on Reapi
I tell by giving an example from myself, I do not use existing lots of plugins in deathrun mode. And I have to constantly edit the plugin. That's why I reduced it to a simple state. It may not be better, but it is not bad either. I don't make money by sharing plugins, my only goal is to share plugins that people can use easily. I am also doing this. I do not care about whatever you say.and copy paste u got 'deathrun' mod. Why this better deathrun mod by mistrick? - Nothing
I do not think that people love being spectators and watching them that how lovely bunny hop. That's why I do not support spectator but respawn.What would be with spectators?
Resource ReDeathrun has been updated:
Update to version (0.0.2)
Click on this link for update details
// before
get_players(iPlayers, iNum);
pNextTerrorist = iPlayers[random(iNum)];
////after. bots fix.
get_players(iPlayers, iNum,"ach");
pNextTerrorist = iPlayers[random(iNum)];
// fixed
@CSGameRules_RestartRound_Pre() {
if(!get_member_game(m_bGameStarted)) {
return;
}
if(!is_user_connected(pNextTerrorist)) {
new iPlayers[32], iNum;
get_players(iPlayers, iNum,"ach");
pNextTerrorist = iPlayers[random(iNum)];
client_print_color(0, print_team_red, "%L", LANG_PLAYER, "REDEATHRUN_NEXT_TERRORIST", pNextTerrorist);
}
for(new pPlayer = 1; pPlayer <= MaxClients; pPlayer++) {
if(!is_user_alive(pPlayer) || !is_user_bot(pPlayer) || pPlayer == pNextTerrorist) {
continue;
}
rg_set_user_team(pPlayer, TEAM_CT);
}
rg_set_user_team(pNextTerrorist, TEAM_TERRORIST);
}