Raised This Month: $32 Target: $400
 8% 

CS 1.6 Revive Death


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Shyloo
Member
Join Date: Jan 2022
Old 01-30-2022 , 11:00   CS 1.6 Revive Death
Reply With Quote #1

Hello again , i'm looking for a plugin that revives a player from his death place , for example if an player died in the middle of the map i revive him in the same position when he dies not revive him on area T or area CT
Shyloo is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 01-30-2022 , 11:48   Re: CS 1.6 Revive Death
Reply With Quote #2

Why creating a useless thread for something already exist.

Please search before posting.
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Shyloo
Member
Join Date: Jan 2022
Old 01-30-2022 , 12:05   Re: CS 1.6 Revive Death
Reply With Quote #3

Search what ? , revive from death place is not already exist and it's not usless
Shyloo is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 01-30-2022 , 14:13   Re: CS 1.6 Revive Death
Reply With Quote #4

Revive when?
Is it for a deathmatch server?
Do you already have a plugin that revives the players?
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Shyloo
Member
Join Date: Jan 2022
Old 01-30-2022 , 14:42   Re: CS 1.6 Revive Death
Reply With Quote #5

I want the plugin like a command , if the player died in the middlfe of the map , i revive him on his death place , why revive him on Area T if he was T or Area CT if he was CT
Shyloo is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 01-30-2022 , 15:08   Re: CS 1.6 Revive Death
Reply With Quote #6

Code:
#include <amxmodx> #include <amxmisc> #include <fun> #include <hamsandwich> #tryinclude <cromchat> #if !defined _cromchat_included     #error "cromchat.inc" is missing in your "scripting/include" folder. Download it from: "https://amxx-bg.info/inc/" #endif #if !defined MAX_PLAYERS const MAX_PLAYERS = 32 #endif #if !defined MAX_NAME_LENGTH const MAX_NAME_LENGTH = 32 #endif new g_iGraveOrigin[MAX_PLAYERS + 1][3] new bool:g_bGraveSpawn[MAX_PLAYERS + 1] public plugin_init() {     register_plugin("Grave Revive", "1.0", "OciXCrom")
    register_concmd("amx_revive", "Cmd_Revive", ADMIN_BAN, "<player> -- revives a player on his death place")
    RegisterHam(Ham_Killed, "player", "OnPlayerKilled")     RegisterHam(Ham_Spawn, "player", "OnPlayerSpawn", 1)         CC_SetPrefix("&x04[Grave Revive]") } public client_putinserver(id) {     g_bGraveSpawn[id] = false     arrayset(g_iGraveOrigin[id], 0, sizeof(g_iGraveOrigin[])) } public OnPlayerKilled(id) {     get_user_origin(id, g_iGraveOrigin[id], 0) } public OnPlayerSpawn(id) {     if(g_bGraveSpawn[id] && is_user_alive(id))     {         g_bGraveSpawn[id] = false         if(g_iGraveOrigin[id][0] != 0 && g_iGraveOrigin[id][1] != 0 && g_iGraveOrigin[id][2])         {             set_user_origin(id, g_iGraveOrigin[id])         }     } } public Cmd_Revive(id, iLevel, iCid) {     if(!cmd_access(id, iLevel, iCid, 2))     {         return PLUGIN_HANDLED     }     new szPlayer[MAX_NAME_LENGTH]     read_argv(1, szPlayer, charsmax(szPlayer))     new iPlayer = cmd_target(id, szPlayer, CMDTARGET_ALLOW_SELF)     if(!iPlayer)     {         return PLUGIN_HANDLED     }     get_user_name(iPlayer, szPlayer, charsmax(szPlayer))     if(is_user_alive(iPlayer))     {         console_print(id, "* Player %s is alive!", szPlayer)         return PLUGIN_HANDLED     }     g_bGraveSpawn[iPlayer] = true     ExecuteHamB(Ham_CS_RoundRespawn, iPlayer)     new szAdmin[MAX_NAME_LENGTH]     get_user_name(id, szAdmin, charsmax(szAdmin))     CC_SendMessage(0, "ADMIN &x03%s &x01revived &x03%s", szAdmin, szPlayer)     return PLUGIN_HANDLED }
__________________

Last edited by OciXCrom; 01-30-2022 at 15:09.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Shyloo
Member
Join Date: Jan 2022
Old 01-30-2022 , 15:41   Re: CS 1.6 Revive Death
Reply With Quote #7

When i try to compile it , it tells me that there is errors or something
Shyloo is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 01-30-2022 , 16:04   Re: CS 1.6 Revive Death
Reply With Quote #8

Quote:
Originally Posted by Shyloo View Post
When i try to compile it , it tells me that there is errors or something
Quote:
#if !defined _cromchat_included
#error "cromchat.inc" is missing in your "scripting/include" folder. Download it from: "https://amxx-bg.info/inc/"
#endif
__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.
Supremache is offline
Shyloo
Member
Join Date: Jan 2022
Old 01-30-2022 , 16:15   Re: CS 1.6 Revive Death
Reply With Quote #9

Yeah i download cromchat and out it on includes
Shyloo is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 01-30-2022 , 16:23   Re: CS 1.6 Revive Death
Reply With Quote #10

And what is the error?...
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:08.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode