Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Glock Ve Usp'siz Respawn Plugini
#1
Arkadaşlar öncelikle belirtmek istiyorum > Sitemizde var diyip de çok bilmişlik yapmayın.Bulamadım. Varsada glocksuz respawn pluginiyle glocklu respawn plugininin hiç bir farkı yok. İkisindende glock geliyor. Anlamadım. :$


Konu başlığında belirttiğim gibi glock ve usp siz bir otomatik respawn plugini istiyorum.(Yani /respawn yazmadan doğan) Açma kapatma cvar kodu respawn_enable olsun ve default ayarı 0 olsun.( kapalı olsun yani)

Bütün Respawnların .sma sı böyle buradan glock ve usp olmaması lazım :

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
*    respawn_enable 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 

new bool:g_PistolsDisabled false

public plugin_init(){

    
register_plugin("Respawn Forever"VERSION"Pimp Daddy (OoTOAoO)")

    
register_event("DeathMsg","on_Death","a")
    
    
register_cvar("sv_checkpistols""1")
    
register_cvar("respawn_enable""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("respawn_enable") )
    {
        
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 
check_pistols()
{
    
/* Determine if we should give players a pistol or not */
    
if ( get_cvar_num("sv_checkpistols") )
    {
        
set_task(1.0"check_pistols")
        new 
mapname[32]
        
get_mapname(mapname,31
        if ( 
containi(mapname,"ka_")!=-|| containi(mapname,"scoutzknivez")!=-)
                
g_PistolsDisabled true
    
}
}

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)

    
/* Then give them a suit and a knife */
    
set_task(0.9,"player_giveitems",72,parm,1)
}

public 
on_Death()
{
    if ( !
get_cvar_num("respawn_enable") )
        return 
PLUGIN_CONTINUE
    
    
new victim_id read_data(2)
    
    
spawn_funcvictim_id )

    return 
PLUGIN_CONTINUE
}

public 
player_giveitems(parm[1])
{
    new 
id parm[0]

    
give_item(id"item_suit")
    
give_item(id"weapon_knife")

    
/* Determines if a players should be given a pistol */
    
if ( !g_PistolsDisabled )
    {
        new 
wpnList[32] = 0number 0bool:foundGlock falsebool:foundUSP false 
        get_user_weapons
(id,wpnList,number)
        
        
/* Determine if the player already has a pistol */
        
for (new 0;number;i++)
        { 
            if (
wpnList[i] == CSW_GLOCK18
                
foundGlock true 
            
if (wpnList == CSW_USP
                
foundUSP true 
        
}
        
        
/* Give a T his/her pistol */
        
if ( get_user_team(id)==TS && !foundGlock )
        {
                
give_item(id,"weapon_glock18")
                
give_item(id,"ammo_9mm")
                
give_item(id,"ammo_9mm")
        }
        
/* Give a CT his/her pistol */
        
else if ( get_user_team(id)==CTS && !foundUSP )
        {
                
give_item(id,"weapon_usp")
                
give_item(id,"ammo_45acp")
                
give_item(id,"ammo_45acp")
        }
    }

    return 
PLUGIN_CONTINUE
}

public 
player_spawn(parm[1])
{
    
spawn(parm[0])


Bu verdiğim .sma benim bütün istediklerimii karşılıyor aslında. Sadece yeniden doğduğunda glock veya usp veriyor. Buradan editleyebilirmisiniz


-----------------------------------------------------------------------------------------------------------------------------------




skc0011 dateline='' Wrote: Kardeşim Sağlam Bir Araştırma Yaparsanız Bulursunuz..




https://www.csplague.com/jail-deathrun-p...et007.html




"Kardeşim" sen bence konuşma çünkü daha respawn ile revive yi ayırt edemiyorsun.


respawn diyoruz . Cvar kodu "respawn_enable" olsun diyoruz .. LÜTFEN YAZMAK İÇİN YAZMAYIN.[/i][/i]
Reply


Messages In This Thread
Glock Ve Usp'siz Respawn Plugini - by futtuluk - 24-07-13, 15:41

Possibly Related Threads…
Thread Author Replies Views Last Post
  Mapa Göre Cvar plugini melof 8 9,378 16-11-20, 02:00
Last Post: es_Dark_Es
  Time 15 Plugini fenerbahce07 24 12,130 23-09-18, 03:19
Last Post: qalatas06
  ZP Spawn Koruması ve ZP Respawn sakarya42 6 6,577 10-10-17, 19:50
Last Post: EfeDursun125
  toplantı plugini bihterr 22 10,684 08-10-17, 14:21
Last Post: kronossbey
  [ZP] Respawn Sıkıntısı Çekenler İçeri ResidentEviL 3 5,054 08-10-17, 00:11
Last Post: EfeDursun125
  Hosgeldin Plugini hpph1294 9 6,847 03-09-17, 18:08
Last Post: tahayasin
  Jailbreak Banka Plugini sefatokgoz 8 8,134 03-09-17, 18:06
Last Post: tahayasin
  [İSTEK]Jb Verme Plugini (/mg) NorDan 8 12,915 03-09-17, 18:06
Last Post: tahayasin
  250 Hp Plugini Sadece R Yetkisinde Olsun GurkanCounter 8 10,873 03-09-17, 18:04
Last Post: tahayasin
  [JB] CT Özel Hook Grab Rope Plugini Nobb 21 10,719 03-09-17, 18:03
Last Post: tahayasin

Foruma Atla:


Users browsing this thread: 1 Guest(s)