AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   [REQ] Auto Revive On Connect (https://forums.alliedmods.net/showthread.php?t=328111)

RazerxD 10-27-2020 09:23

[REQ] Auto Revive On Connect
 
Hey,

I Want A Plugin Auto Revive Player If They Join , They Are Dead All The Time , so I Want A Solution Of It

Needed It For CT Only


THANKS!!!!!!!!!!!!

Napoleon_be 10-27-2020 12:22

Re: [REQ] Auto Revive On Connect
 
Made 2 versions, untested but should both work.

PHP Code:

/* Sublime AMXX Editor v2.2 */

#include <amxmodx>
// #include <amxmisc>
// #include <cstrike>
// #include <engine>
// #include <fakemeta>
#include <hamsandwich>
// #include <fun>
// #include <xs>
// #include <sqlx>

#define PLUGIN  "New Plug-In"
#define VERSION "1.0"
#define AUTHOR  "Author"

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR);

    
register_event("TeamInfo""TeamInfo""a");
}

public 
TeamInfo() {
    new 
id read_data(1);
    new 
szTeam[2];

    
read_data(2szTeamcharsmax(szTeam));

    switch(
szTeam[0]) {
        case 
'C'ExecuteHamB(Ham_CS_RoundRespawnid);
    }


PHP Code:

/* Sublime AMXX Editor v2.2 */

#include <amxmodx>
// #include <amxmisc>
// #include <cstrike>
// #include <engine>
// #include <fakemeta>
#include <hamsandwich>
// #include <fun>
// #include <xs>
// #include <sqlx>

#define PLUGIN  "New Plug-In"
#define VERSION "1.0"
#define AUTHOR  "Author"

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR);

    
register_event("TextMsg""PlayerJoinedCt""a""2&#Game_join_ct");
}

public 
PlayerJoinedCt() {
    new 
id read_data(1);

    
ExecuteHamB(Ham_CS_RoundRespawnid);



RazerxD 10-28-2020 04:19

Re: [REQ] Auto Revive On Connect
 
Thank you


All times are GMT -4. The time now is 18:51.

Powered by vBulletin®
Copyright ©2000 - 2022, vBulletin Solutions, Inc.