Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[JB] Mahkum Sayısı [Eksik var]
#1
arkadaşlar plugin çalışıyor fakat güncellenmesinde sıkıntı var mesela adam çıkınca yada adam ölünce güncelleniyor adam artınca güncellenmiyor anca bi adam eksilince güncelleniyor yardım eder misiniz?
PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <hamsandwich>

#define PLUGIN "Show Prisoners"
#define VERSION "1.0"
#define AUTHOR "akcaliberk"

new canli,toplam;
public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
    
register_event("DeathMsg","DeathEvent","a")
    
register_logevent("RoundStart",2,"1=Round_Start")
    
    
RegisterHam(Ham_Spawn,"player","EventSpawn")
    
}
public 
client_authorized(id) {
    
set_task(1.0,"Guncelle",id,_,_,"b")
}
public 
Guncelle(id) {
    
client_print(id,print_center,"[%d Mahkumdan %d Tanesi Yasiyor]",toplam,canli)
}
public 
EventSpawn(id) {
    
checkTerror()
}
public 
DeathEvent() {
    new 
olen read_data(2);
    
    if(
get_user_team(olen) == 1) {
        
set_task(0.5,"checkTerror")
    }
}
public 
RoundStart() {
    
set_task(0.5,"checkTerror")
}
public 
checkTerror() {
    
    new 
players[32],terortop,teroralv;
    
get_players(players,teroralv,"ae","TERRORIST")
    
get_players(players,terortop,"e","TERRORIST")
    
    
canli teroralv;
    
toplam terortop;

Reply
#2
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <hamsandwich>

#define PLUGIN "Show Prisoners"
#define VERSION "1.0"
#define AUTHOR "akcaliberk"

new canli,toplam;
public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
    
register_event("DeathMsg","DeathEvent","a")
    
register_logevent("RoundStart",2,"1=Round_Start")
    
    
RegisterHam(Ham_Spawn,"player","EventSpawn")
    
}
public 
client_authorized(id) {
    
set_task(1.0,"Guncelle",id,_,_,"b")
}
public 
Guncelle(id) {
    
client_print(id,print_center,"[%d Mahkumdan %d Tanesi Yasiyor]",toplam,canli)
}
public 
EventSpawn(id) {
    
checkTerror()
}
public 
DeathEvent() {
    new 
olen read_data(2);
    
    if(
get_user_team(olen) == 1) {
        
set_task(0.5,"checkTerror")
    }
}
public 
RoundStart() {
    
set_task(0.5,"checkTerror")
}
public 
checkTerror() {
    
    new 
players[32],terortop,teroralv;
    
get_players(players,teroralv,"ae","TERRORIST")
    
get_players(players,terortop,"e","TERRORIST")
    
    
canli teroralv;
    
toplam terortop;


public 
client_connect(id)
{
    
checkTerror()
}

public 
client_disconnect(id)
{
    
checkTerror()

Reply
#3
Olmadı hacı
Reply
#4
Hacı şöyle düzenleyelim bunu sadece Yaşayanları göstersin Toplam Tleri göstermesin?
Reply
#5
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <hamsandwich>

#define PLUGIN "Show Prisoners"
#define VERSION "1.0"
#define AUTHOR "akcaliberk"

new canli,toplam;
public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
    
register_event("DeathMsg","DeathEvent","a")
    
register_logevent("RoundStart",2,"1=Round_Start")
    
    
RegisterHam(Ham_Spawn,"player","EventSpawn")
    
}
public 
client_authorized(id) {
    
set_task(1.0,"Guncelle",id,_,_,"b")
}
public 
Guncelle(id) {
    
client_print(id,print_center,"[%d Mahkumdan %d Tanesi Yasiyor]",toplam,canli)
}
public 
EventSpawn(id) {
    
set_task(3.0,"checkTerror",id)
}
public 
DeathEvent() {
    new 
olen read_data(2);
    
    if(
get_user_team(olen) == 1) {
        
set_task(0.5,"checkTerror")
    }
}
public 
RoundStart() {
    
set_task(0.5,"checkTerror")
}
public 
checkTerror() {
    
    new 
players[32],terortop,teroralv;
    
get_players(players,teroralv,"ae","TERRORIST")
    
get_players(players,terortop,"e","TERRORIST")
    
    
canli teroralv;
    
toplam terortop;


public 
client_connect(id)
{
    
checkTerror()
}

public 
client_disconnect(id)
{
    
checkTerror()


dene


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
#6
Oldu hacı fakat ping artışı oldu plugini kurdum 10-15 arası daha fazla ping oluyor bu normal birşey mi ?
Reply
#7
ekstradan 3 saniyelik zamanlayıcı kurdum diye böyle bir şey olmaz, farklı bir sebeptendir.


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
#8
Peki sağolasın
Reply
#9
Konu Cözüldüğü İçin Çözülmüş İstekler Bölümüne Taşınmıştır !
İletişim ;

MSN : DeaTReX[email protected]

SKYPE : DeaTReX

Fakelerim Çıkmaya Başlamış Lütfen [email protected] & DeaTReX Adreslerinden Başka Hesabım Yoktur Lütfen Onlara Kanmayınız !

Sunuculara Ve Serverlara Özel Plugin Ve Mod Kodlanır
Reply
#10
Cok sagol işime yaradı
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Canlı Mahkum Sayisi meyhanegaming 3 2,667 14-01-15, 21:10
Last Post: Neith
  Dr T Sayısı mcym 8 3,708 26-12-13, 11:45
Last Post: JDM
  Takım Sayısı Eşitleme Plugini wizardcs 11 6,295 07-07-13, 22:22
Last Post: akcaliberkk
  mevcut oyuncu sayısı ve bir kaç soru akinpc 5 4,578 28-03-13, 21:49
Last Post: akcaliberkk
  [JB] Aimin ortasında toplam tlerin ve yaşayan Tlerinin Sayısı Furkan Dize 15 4,747 17-10-12, 00:24
Last Post: DeaTReX
  Kendi Mahkum Messi 2 2,724 28-06-12, 23:41
Last Post: DeaTReX

Foruma Atla:


Users browsing this thread: 1 Guest(s)