RSSy MYGO.pl Opublikowano Wrzesień 3, 2022 o 20:42 RSSy Udostępnij Opublikowano Wrzesień 3, 2022 o 20:42 Plugin blocks game function called GiveDefaultItems(), depends cvar setting. - And have global callback forward after function. Code: "sm_givedefaultitems_mode" = "1" min. 0.000000 max. 2.000000 - 0 - disabled 1 - no default items when game_player_equip exist 2 - no default items PHP Code: /** * Global post listener for the GiveDefaultItems function. * * @param client Client index. * @param OriginalFunctionBlocked Was original GiveDefaultItems function blocked. */ forward void GiveDefaultItemsPost(int client, const bool OriginalFunctionBlocked); This plugin works on hl2mp and cstrike only. - HL2:Deathmatch has unfinished code, it still give default weapons to player even game_player_equip entity exist. This plugin fix that problem. - Counter-Strike:Source works right with game_player_equip - In both games, you can block default weapons after all with cvar mode 2 - givedefaultitems.smx has global forward function GiveDefaultItemsPost(), this is called when ever game GiveDefaultItems() happens. You can make own plugin and give your own collection weapons to player. I have only tested on Windows. - Linux signatures are included but have not tested, do those work. Attached Files blockgivedefaultitems_hl2mp_cstrike.zip (10.2 KB) Wyświetl pełny artykuł Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi