Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[ İSTEK ] Belirli Yetkiler Hariç Autokick
#1
Serverda specde playerlar ve normal adminler hariç herkesi 5 dk sonra oto olarak kick atan bi plugin istiyorum. Normal admin derkende sadece "L" yetkisi olan adminleri oyundan atmıcak.
excellenT
Reply
#2
yapabileceğim bir plugin.Ama demek istediğini tam anlayamadım kimi atacak ?
Reply
#3
wolf5094 dateline='' Wrote: yapabileceğim bir plugin.Ama demek istediğini tam anlayamadım kimi atacak ?
Yani şöle bişe server normalde specte duran herkesi belirli bi süre sonra oto olarak atıyo ama ben "L" yetkisi olan adminlerin atılmamasını istiyorum diğerleri ise 5 dk sonra oto olarak atılacak.
excellenT
Reply
#4
Anladım.Autokick pluginini düzenlerim yapmaya çalışırım...
Reply
#5
sendeki autokick pluginini koyabilir misin ben bulamadım da
Reply
#6
wolf5094 dateline='' Wrote: sendeki autokick pluginini koyabilir misin ben bulamadım da
Bende autokick plugini yok o server.cfg den ayarlanıyo sonunu 1 veya 0 yapıyoruz. Öyle bi pugininde olduğunu sanmıyorum eğer yapabilirsen baştan çok makbule geçer.
excellenT
Reply
#7
autokick plugini olmazsa server.cfg den ayarlayamazsın Smile büyük ihtimal ya bi pluginin içinde var yada yüklü ama sen farkında değilsin Wink o yüzden yapsam bile senin serverinde çakışma yapabilir buda sorun olusturabilir. ama ben yapmaya çalışacağım 0 dan yapamam okadar profesyonel değilim ben de plugin yapmaya yeni basladım internette hazır otokick pluginleri var onları düzenlemeye çalışırım

---------- Alttaki Mesaj Zamani 01:11 ---------- Önceki Mesaj Zamani 00:27 ----------

excellenT dateline='' Wrote: Bende autokick plugini yok o server.cfg den ayarlanıyo sonunu 1 veya 0 yapıyoruz. Öyle bi pugininde olduğunu sanmıyorum eğer yapabilirsen baştan çok makbule geçer.

PHP Code:
Spec Kick 1.0
by foo
.bar (foo.bar@arrobaponto.com)

Description:
Kicks all spectatorsexcept players with the immunity tagon round startThis plugin is Steam Counter-strike 1.6 specific.

Motivations:
I run a very popular CS server and folks that connect don't like to leave the server whenever they go out for dinner, take a shower or go to sleep (yes, I've really had players going to bed when they went into spectator mode). I whipped up this script to keep those asshats off the server.


Usage:
1. If you wantedit the MIN_PLAYERS to set the minimum number of players on the server before it starts checking for spectators.
2. Compile.
3. Plug into the the plugin.ini file.
4. There is no step 4
5. Finnish
!

Possible future additions:
Interface 
with a database to keep track of repeat offenders
Ban repeat offeners 
for a few minutes to teach them a lesson
Code optimizations
?

Acknowledgments:
Freecodethanks for the help with debugging the code

For those of you that like to browse code...

#include <amxmodx>
#include <cstrike>

#define MIN_PLAYERS 9

public Round_Time()
{
new 
Float:roundtime get_cvar_float("mp_roundtime") * 60.0
new rtime read_data(1)

if ( 
roundtime == rtime ) {
new 
playerCount get_playersnum()

if (
playerCount MIN_PLAYERS) {
new 
Players[32]
get_players(PlayersplayerCount)

for (new 
0playerCounti++) {
if (
is_user_connected(Players[i])) {
if (!(
get_user_flags(Players) & ADMIN_IMMUNITY)) {
if ((
cs_get_user_team(Players) == 3)) {
new 
name[32], authid[32]

get_user_name(Players,name,31)
get_user_authid(Players,authid,31)

new 
userid get_user_userid(Players)
server_cmd("kick #%d ^"Spectators aren't welcome on this server.^"",userid)

log_amx("Spec Kick: ^"%s<%d><%s>^" was spec kicked)", name,userid,authid)
}
}
}
}
}
}
return PLUGIN_CONTINUE
}

public plugin_init() {
register_plugin("Spec Kick","1.0","foo.bar")
register_event("RoundTime", "Round_Time", "bc")

return PLUGIN_CONTINUE


bu specotokick plugininin sma sı şimdi bana istediğin özellikleri madde madde yaz yapmayı deneyim.

1:bu plugin roundtimeye orantılı olarak atar mesela roundtime 9 dakika ise onu 60 ile çarpar o dakika sonunda hala specteyse oto atar kaç dakika sonra atmasını istiyorsan onu yaz ona göre düzenleyeceğim.

2:atmama olayını tüm adminleri mi yapıyım yoksa belli bir yetkiye göre miayarlayım ?

3:aklına gelen diğer istediklerini yaz

bunları yazarsan düzenlemeye calısırım.[/i][/i][/i][/i][/i][/i]
Reply
#8
PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Auto Spec Kick" 
#define VERSION "1.0" 
#define AUTHOR "akcaliberkk" 


new UserTeam[33] = {'U' , ... };

public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_event"TeamInfo" "fw_EvTeamInfo" "a" )
}
public 
fw_EvTeamInfo( ) {
    static 
id,szTeam[2];
    
id read_data(1);
    
read_data(2,szTeam,1);
    
    if (
UserTeam[id] != szTeam[0]) {
        
        
UserTeam[id] = szTeam[0];
        
        switch(
szTeam[0]) {
            
            case 
'S':{
                if(!
access(id,ADMIN_RCON)) set_task(300.0,"CheckTeam",id)
            }
            default:{
                
remove_task(id)
            }
        }
    }
}  
public 
CheckTeam(id) {
    if(
get_user_team(id) == 3) {
        
server_cmd("kick #%d ^"AutoKick5 Dakika Spectator^"",get_user_userid(id))
    }
    return 
PLUGIN_HANDLED



CS:GO ve CS 1.6 için ücretli eklenti yapılır.
Plugin yazmak isteyenlere yardımcı olabilirim.
Skype adresimden ulaşabilirsiniz:
destek_596
Steam: http://steamcommunity.com/id/ca-nemesis/

Reply
#9
akcaliberkk dateline='' Wrote:
PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Auto Spec Kick" 
#define VERSION "1.0" 
#define AUTHOR "akcaliberkk" 


new UserTeam[33] = {'U' , ... };

public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_event"TeamInfo" "fw_EvTeamInfo" "a" )
}
public 
fw_EvTeamInfo( ) {
    static 
id,szTeam[2];
    
id read_data(1);
    
read_data(2,szTeam,1);
    
    if (
UserTeam[id] != szTeam[0]) {
        
        
UserTeam[id] = szTeam[0];
        
        switch(
szTeam[0]) {
            
            case 
'S':{
                if(!
access(id,ADMIN_RCON)) set_task(300.0,"CheckTeam",id)
            }
            default:{
                
remove_task(id)
            }
        }
    }
}  
public 
CheckTeam(id) {
    if(
get_user_team(id) == 3) {
        
server_cmd("kick #%d ^"AutoKick5 Dakika Spectator^"",get_user_userid(id))
    }
    return 
PLUGIN_HANDLED

Specteki herkesimi atıyo yoksa belirli yetki hariç herkesimi atıyor.

---------- Alttaki Mesaj Zamani 21:25 ---------- Önceki Mesaj Zamani 21:23 ----------

wolf5094 dateline='' Wrote: autokick plugini olmazsa server.cfg den ayarlayamazsın Smile büyük ihtimal ya bi pluginin içinde var yada yüklü ama sen farkında değilsin Wink o yüzden yapsam bile senin serverinde çakışma yapabilir buda sorun olusturabilir. ama ben yapmaya çalışacağım 0 dan yapamam okadar profesyonel değilim ben de plugin yapmaya yeni basladım internette hazır otokick pluginleri var onları düzenlemeye çalışırım

---------- Alttaki Mesaj Zamani 01:11 ---------- Önceki Mesaj Zamani 00:27 ----------



PHP Code:
Spec Kick 1.0
by foo
.bar (foo.bar@arrobaponto.com)

Description:
Kicks all spectatorsexcept players with the immunity tagon round startThis plugin is Steam Counter-strike 1.6 specific.

Motivations:
I run a very popular CS server and folks that connect don't like to leave the server whenever they go out for dinner, take a shower or go to sleep (yes, I've really had players going to bed when they went into spectator mode). I whipped up this script to keep those asshats off the server.


Usage:
1. If you wantedit the MIN_PLAYERS to set the minimum number of players on the server before it starts checking for spectators.
2. Compile.
3. Plug into the the plugin.ini file.
4. There is no step 4
5. Finnish
!

Possible future additions:
Interface 
with a database to keep track of repeat offenders
Ban repeat offeners 
for a few minutes to teach them a lesson
Code optimizations
?

Acknowledgments:
Freecodethanks for the help with debugging the code

For those of you that like to browse code...

#include <amxmodx>
#include <cstrike>

#define MIN_PLAYERS 9

public Round_Time()
{
new 
Float:roundtime get_cvar_float("mp_roundtime") * 60.0
new rtime read_data(1)

if ( 
roundtime == rtime ) {
new 
playerCount get_playersnum()

if (
playerCount MIN_PLAYERS) {
new 
Players[32]
get_players(PlayersplayerCount)

for (new 
0playerCounti++) {
if (
is_user_connected(Players[i])) {
if (!(
get_user_flags(Players) & ADMIN_IMMUNITY)) {
if ((
cs_get_user_team(Players) == 3)) {
new 
name[32], authid[32]

get_user_name(Players,name,31)
get_user_authid(Players,authid,31)

new 
userid get_user_userid(Players)
server_cmd("kick #%d ^"Spectators aren't welcome on this server.^"",userid)

log_amx("Spec Kick: ^"%s<%d><%s>^" was spec kicked)", name,userid,authid)
}
}
}
}
}
}
return PLUGIN_CONTINUE
}

public plugin_init() {
register_plugin("Spec Kick","1.0","foo.bar")
register_event("RoundTime", "Round_Time", "bc")

return PLUGIN_CONTINUE

bu specotokick plugininin sma sı şimdi bana istediğin özellikleri madde madde yaz yapmayı deneyim.

1:bu plugin roundtimeye orantılı olarak atar mesela roundtime 9 dakika ise onu 60 ile çarpar o dakika sonunda hala specteyse oto atar kaç dakika sonra atmasını istiyorsan onu yaz ona göre düzenleyeceğim.

2:atmama olayını tüm adminleri mi yapıyım yoksa belli bir yetkiye göre miayarlayım ?

3:aklına gelen diğer istediklerini yaz

bunları yazarsan düzenlemeye calısırım.
1: Ortalama 5 ile 10 dk arasında atsın.
2: Sadece "L" yetkisi olan dışındaki herkesi atsın.[/i][/i][/i][/i][/i][/i]
excellenT
Reply
#10
rcon yetkisi dışındakileri atıyor


CS:GO ve CS 1.6 için ücretli eklenti yapılır.
Plugin yazmak isteyenlere yardımcı olabilirim.
Skype adresimden ulaşabilirsiniz:
destek_596
Steam: http://steamcommunity.com/id/ca-nemesis/

Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [İSTEK]Jb Verme Plugini (/mg) NorDan 8 12,911 03-09-17, 18:06
Last Post: tahayasin
  [ İSTEK ] Belirli Yetki Hariç 3 Raund Weapon Engel excellenT 15 6,326 21-07-17, 03:49
Last Post: SINCAPP
  [İSTEK] CT MAVi - T Kırmızı ışık yanan Plugin + Video Çektim ademcan36 9 10,454 26-04-17, 16:15
Last Post: h4m4s
  [ISTEK] Hızlı Dowload Link [ISTEK] TagaL 13 7,734 05-01-17, 01:30
Last Post: marvel1905
  Menu ve jbmenu istek hamhum 10 12,365 05-01-17, 01:30
Last Post: marvel1905
  İSTEK ! Sadece Ct de hook basabilmek playman01 17 7,516 28-08-16, 14:42
Last Post: QuarsS
  Acil Sorun istek hasanx9 6 3,984 03-08-16, 20:44
Last Post: murat1366
  Plugin İstek CFG Tarzı erenstrkl 6 3,764 03-08-16, 20:31
Last Post: murat1366
  Reklamcılara karsi Acil İstek[Plugin] hasan0650 22 5,544 17-07-16, 18:03
Last Post: BYHAZARD7
  [pawn] istek batuopoz0770 4 6,539 19-04-15, 16:27
Last Post: akcaliberkk

Foruma Atla:


Users browsing this thread: