reapi icon indicating copy to clipboard operation
reapi copied to clipboard

Issue with default weapon spawn

Open souvikdas95 opened this issue 7 years ago • 2 comments

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.

souvikdas95 avatar Apr 08 '17 11:04 souvikdas95

/*
* 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 ?

justgo97 avatar Apr 08 '17 11:04 justgo97

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.

souvikdas95 avatar Apr 08 '17 11:04 souvikdas95