WhiteFang
Пользователь
- Регистрация
- 9 Июн 2017
- Сообщения
- 38
- Симпатии
- 0
- Пол
- Мужской
Hi. I've been trying to use ReApi to swap players and then respawn them.
Been using this code for swap and it works but I don't know how to do for respawn.. I need to respawn players who are alive in both teams and ignore spectators.
Been using this code for swap and it works but I don't know how to do for respawn.. I need to respawn players who are alive in both teams and ignore spectators.
#include <amxmodx>
#include <reapi>
public plugin_init()
{
register_concmd("amx_swap","ConsoleCommand_SwapTeams", ADMIN_KICK);
}
public ConsoleCommand_SwapTeams()
{
rg_swap_all_players();
rg_round_respawn(0);
}