Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
250HP Plugini Biraz Değişik
#2
bunu hangi sunucuya koymayı düşünüyorsun?

neyse oyunyöneticisinde bile kullanabileceğin bir plugin oldu şanslısın ki konsol komutlarını daha bu öğlen kendim için yapmıştım işim kolaylaştı Big Grin

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

#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <hamsandwich>

#define PLUGIN "250hp-ozel"
#define VERSION "1.0"
#define AUTHOR "xPRoTeiNN"

new configsdir[64],inifile[96],hpmiktar

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
RegisterHam(Ham_Spawn,"player","fw_spawn",1);
    
get_configsdir(configsdir,63)
    
formatex(inifile,95,"%s/250hp.ini",configsdir)
    
    
hpmiktar register_cvar("amx_ozelhp","250")
    
    
register_concmd("amx_ozel_ekle","pluginekle",ADMIN_RCON)
    
register_concmd("amx_ozel_kaldir","pluginkaldir",ADMIN_RCON)
    
register_concmd("amx_ozeller","pluginler",ADMIN_RCON)
    
    if(!
file_exists(inifile))
    {
        
write_file(inifile,";Ozeller")
    }
}

public 
fw_spawn(id)
{
    if(
is_user_ozel(id)) set_user_health(id,get_pcvar_num(hpmiktar))
}

public 
ozelekle(id)
{
    new 
arg[32]
    
read_argv(1,arg,31)
    
    if(!
file_exists(inifile)) return PLUGIN_HANDLED
    
    write_file
(inifile,arg)
    
    return 
PLUGIN_CONTINUE
}

public 
ozelkaldir(id)
{
    new 
arg[32]
    
read_argv(1,arg,31)
    
    if(!
file_exists(inifile)) return PLUGIN_HANDLED
    
    
new satir[32],txtlen
    
new size =file_size(inifile,1)
    for(new 
i;i<size;i++)
    {
        
read_file(inifile,i,satir,31,txtlen)
        if(!
equali(satir[0],";") && !equali(satir[0],"/") && txtlen>2)
            if(
containi(satir,arg) != -1)
            {
                
write_file(inifile,"",i)
            }
    }
    return 
PLUGIN_CONTINUE
}

public 
ozeller(id)
{
    if(!
file_exists(inifile)) return PLUGIN_HANDLED
    
    client_print
(id,print_console,"--- Ozeller ---")
    
    new 
satir[32],txtlen
    
new size =file_size(inifile,1)
    for(new 
i;i<size;i++)
    {
        
read_file(inifile,i,satir,31,txtlen)
        if(
txtlen>2)
            
client_print(id,print_console,satir)
    }
    
client_print(id,print_console,"--- ----------- ---")
    return 
PLUGIN_CONTINUE
}



stock is_user_ozel(id)
{
    new 
text[128],len,name[32]
    new 
size file_size(inifile,1)
    
get_user_name(id,name,31)
    
    for(new 
i;i<size;i++)
    {
        
read_file(inifile,i,text,127,len)
        if(
text[0] != ';' && text[0] != '/' && len>2)
        {
            if(
containi(text,name) != -1)
            {
                return 
1
            
}
        }
    }
    return 
0

xPRoTeiNN


CS 1.6 : 95.173.173.115 --> Osmanli Gaming Jailbreak
TS3 : osmanlijb.ts3dns.com
Skype:ahmettmertt
Reply


Messages In This Thread
250HP Plugini Biraz Değişik - by Nefesim - 29-07-13, 23:03
[No subject] - by ahmetberkay - 30-07-13, 00:28

Possibly Related Threads…
Thread Author Replies Views Last Post
  Mapa Göre Cvar plugini melof 8 9,389 16-11-20, 02:00
Last Post: es_Dark_Es
  Time 15 Plugini fenerbahce07 24 12,148 23-09-18, 03:19
Last Post: qalatas06
  toplantı plugini bihterr 22 10,696 08-10-17, 14:21
Last Post: kronossbey
  Hosgeldin Plugini hpph1294 9 6,852 03-09-17, 18:08
Last Post: tahayasin
  Jailbreak Banka Plugini sefatokgoz 8 8,141 03-09-17, 18:06
Last Post: tahayasin
  [İSTEK]Jb Verme Plugini (/mg) NorDan 8 12,924 03-09-17, 18:06
Last Post: tahayasin
  250 Hp Plugini Sadece R Yetkisinde Olsun GurkanCounter 8 10,883 03-09-17, 18:04
Last Post: tahayasin
  [JB] CT Özel Hook Grab Rope Plugini Nobb 21 10,738 03-09-17, 18:03
Last Post: tahayasin
  Admin Zombie Model plugini satknun1997 3 3,811 01-01-17, 12:47
Last Post: RuLeT
  (JB) Can Revmenu plugini Furkan Dize 9 6,463 04-10-16, 23:35
Last Post: frozenbaba

Foruma Atla:


Users browsing this thread: 1 Guest(s)