CSPLague
[İSTEK] [DR] Oyuna Girince Otomatik Revive - Printable Version

+- CSPLague (https://www.csplague.com)
+-- Forum: CS 1.6 Plugin (Eklenti) Bölümü (https://www.csplague.com/forumdisplay.php?fid=6)
+--- Forum: [İSTEK] Cs 1.6 Plugin İstek Bölümü (https://www.csplague.com/forumdisplay.php?fid=80)
+---- Forum: Çözülmüş İstekler (https://www.csplague.com/forumdisplay.php?fid=87)
+---- Thread: [İSTEK] [DR] Oyuna Girince Otomatik Revive (/showthread.php?tid=953)



[İSTEK] [DR] Oyuna Girince Otomatik Revive - mightee - 12-01-12

Arkadaşlar oyuna girince millet /respawn yazarak kendini revleyebiliyor.Ancak bazı oyuna yeni başlayan yusuf yusuflar /respawn yazmayı bilmiyorlar. Oyuna girince otomatki revleyen bir plugin lazım.Bulursanız ve yardımcı olursanız çok teşekür ederim Smile


-DR Respawn Advanced 1.2 olmasın lütfen o çalışmıyor!


- NiCoMeDiA - 12-01-12

denermisin bunu.

PHP Code:
/* AMXX Mod script. 

* (c) Copyright 2004, developed by Geesu 
* This file is provided as is (no warranties).  

* Changelog 
* 1.1: 
*   Added /respawn command to spawn a player if they're dead 
*   Added a public cvar 
* 1.0:  
*    Pistols are now given to players when they respawn 
*    sv_checkpistols cvar added, if this is set to 0, then players will always spawn with a pistol, otherwise they will only spawn with a pistol when it is not scoutzknivez and not a ka map 
*    sv_respawn cvar added, set this to 0 to disable the plugin 
*/ 

new const VERSION[] =    "1.1" 

#include <amxmodx> 
#include <fun> 
#include <cstrike> 

#define DISABLE_CS 0 

// team ids  
#define UNASSIGNED 0  
#define TS 1  
#define CTS 2  
#define AUTO_TEAM 5  

public plugin_init(){ 
     
    
register_plugin("Respawn Forever"VERSION"Pimp Daddy (OoTOAoO)"
     
    
register_event("DeathMsg","on_Death","a"
     
    
register_cvar("sv_checkpistols""0"
    
register_cvar("sv_respawn""1"
    
register_cvar("respawn_forever_version"VERSIONFCVAR_SERVER
     
    
register_clcmd("say","on_Chat"
    
register_clcmd("say_team","on_Chat"


public 
on_Chat(id

    if ( !
get_cvar_num("sv_respawn") ) 
    { 
        
client_print(idprint_chat"* Respawn plugin disabled"
        
//return PLUGIN_CONTINUE 
    

     
    new 
szSaid[32
    
read_args(szSaid31)  
     
    if (
equali(szSaid,"^"/respawn^"") || equali(szSaid,"^"respawn^"")) 
    { 
        
spawn_func(id
    } 


public 
spawn_func(id

    new 
parm[1
    
parm[0]=id 
     
    
/* Spawn the player twice to avoid the HL engine bug */ 
    
set_task(0.5,"player_spawn",72,parm,1
    
set_task(0.7,"player_spawn",72,parm,1
     


public 
on_Death() 

    if ( !
get_cvar_num("sv_respawn") ) 
        return 
PLUGIN_CONTINUE 
     
    
new victim_id read_data(2
     
    
spawn_funcvictim_id 
     
    return 
PLUGIN_CONTINUE 


public 
player_spawn(parm[1]) 

    
spawn(parm[0]) 

public 
client_connect(id

    
set_task(1.0,"spawn_func",id
     




- Schwertle - 13-01-12

Konu 10dk içinde çözülmüş:d


- mightee - 16-01-12

yok
olmadı


Cevap: Serverimde Sv respawn yok lutfen bana pluginini verıın lütfen - 1232 - 30-04-13

arkadaslar benım sw de herkez oldungde yenıden doğuyor bende sv respawn cvar yok bana birsi pluginini vereblırmıSad