reapi
reapi copied to clipboard
Issue with default weapon spawn
When using rg_set_user_team or rg_join_team for a player from SPECTATOR to (TEAM_CT or TEAM_TERRORIST), followed by rg_respawn_round(player), default weapons don't get spawned.
/*
* Give the player default items
*
* @param index Client index
*
* @noreturn
*/
native rg_give_default_items(const index);
you can use this after rg_respawn_round(player) i guess ?
Yes that does work. Though, it'd be more sensible if it were to give default weapons when player goes from spectator to any other team. I assume my next issue has some evidence that may be related to this issue as well. It's regarding DEAD flag of player when moved to spectator using reAPI.