RSSy MYGO.pl Opublikowano Październik 5, 2022 o 21:10 RSSy Udostępnij Opublikowano Październik 5, 2022 o 21:10 Description:Intended for intense hardcore servers. Allows to automatically respawn survivor within X seconds after he died. Features:Shield - player will be immune of damage for X sec. after respawn + visual effect Jokes Auto-giver of items & weapons Forwards Settings (ConVars):Can be found in: cfg/sourcemod/AutoRespawn.cfg PHP Code: // Enables/disables AutoRespawn on this server at any given time ar_enable "1" // Amount of time (in seconds) after players die before they are automatically respawned ar_respawn_delay "45" // Maximum number of respawns per round (0 - to set infinite) ar_respawn_count "2" // Enables/disables notification messages to players after they die that they will be respawned ar_respawn_msgs "1" // Enables/disables melee will be given on player respawn ar_melee_enabled "1" // Chance 0-100 for melee ar_melee_chance "20" // Enables/disables good weapon will be given on player respawn ar_goodweapon_enabled "1" // Chance 0-100 for good weapon ar_goodweapon_chance "100" // Enables/disables pills will be given on player respawn ar_pills_enabled "1" // Chance 0-100 for pills ar_pills_chance "20" // Enables/disables barrel will be given on player respawn ar_barrel_enabled "1" // Chance 0-100 for barrel ar_barrel_chance "20" Forwards: Spoiler PHP Code: /** * Get number of money earned during current round. * * @param iClient Client index given. * * @error Wrong number of arguments. * @return true on success. */ native int AR_RespawnPlayer(int iClient); /** * Gives shield to client for specified time interval * * @param iClient Client index given. * @param fDelay Life time of the shield (in sec.), 0.0 - infinite * @param fProtection Protection level - 0.0 to 1.0, where 1.0 - is immortal * * @error Wrong number of arguments * @return Shield entity reference index, or -1 on failure */ native int AR_CreateShield(int iClient, float fDelay, float fProtection); /** * Remove shield of client. * * @param iClient Client index given. * * @error Wrong number of arguments. * @noreturn */ native void AR_RemoveShield(int iClient); Supported games: - L4D1 - L4D2 Requirements: - SM Respawn Improved DonateDonates are very appreciated and welcomed for further inspiration, make me happy, and make next updates came out more often: - Patreon - BitCoin - Ю.Money P.S.: - It's my private plugin written for myself and my Bloody Witch team. - Project and updates discontinued. Don't ask. Attached Files AutoRespawn.zip (28.7 KB) Wyświetl pełny artykuł Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi