View Single Post
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 10-27-2020 , 12:22   Re: [REQ] Auto Revive On Connect
Reply With Quote #2

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);

__________________
My Plugins:


Accepting private projects.

Last edited by Napoleon_be; 10-27-2020 at 12:27.
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be