Cvar Ayarları:
  • respawn_sure "9.0" // Respawn Süresi



PHP- Kodu:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <hamsandwich>

#define PLUGIN "Saniyeli Respawn"
#define VERSION "1.0"
#define AUTHOR "JDM"

new cvar_sure;
public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_event("DeathMsg","eDeath","a")

    
cvar_sure register_cvar("respawn_sure","9.0"// Respawn Süresi (Varsayılan: 9 saniye)
}
public 
eDeath() {
    new 
victim read_data(2)
    
    
set_task(get_pcvar_float(cvar_sure),"Respawn",victim)
}
public 
Respawn(id) {
    if(
is_user_connected(id)) {
        
ExecuteHamB(Ham_CS_RoundRespawn,id)
        
RenkliSay(id,"!gYeniden Dogdunuz.!n")
        
remove_task(id)
    }
}
stock RenkliSay(const id, const input[], any:...)  { 
    new 
count 1players[32]; 
    static 
msg[191]; 
    
vformat(msg190input3); 
    
    
replace_all(msg190"!g""^x04"); // Green Color 
    
replace_all(msg190"!n""^x01"); // Default Color 
    
replace_all(msg190"!t""^x03"); // Team Color 
    
    
if (idplayers[0] = id; else get_players(playerscount"ch"); 
    { 
        for (new 
0counti++) { 
            if (
is_user_connected(players[i])) { 
                
message_begin(MSG_ONE_UNRELIABLEget_user_msgid("SayText"), _players[i]); 
                
write_byte(players[i]); 
                
write_string(msg); 
                
message_end(); 
            } 
        } 
    } 
}  
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ ansicpg1254\\ deff0\\ deflang1055{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ f0\\ fs16 \n\\ par }
*/