Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tusta Rev Ufak Bir Deişiklik
#9
/* Plugin generated by AMXX-Studio */

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

#define PLUGIN "Admin Aim Oyuncu Revle"
#define VERSION "1.0"
#define AUTHOR "JDM"

#define ADMIN_YETKI ADMIN_RCON

new bool:g_bRevle[33] = false
new tag[]= "^4[Rev Sebebi]:^1"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("+revle","OyuncuRevle")
register_logevent("eRoundEnd",2,"1=Round_End")
}
public client_connect(id) {
client_cmd(id,"bind p +revle") // "p" yazan yere istediğin tuşu yazabilirsin...
}
public OyuncuRevle(id) {
if(!is_user_alive(id)) return;

new isim[32];
get_user_name(id,isim,31);

if(get_user_flags(id) & ADMIN_YETKI) {
new hedef, vucut
get_user_aiming(id, hedef, vucut);

if(is_valid_ent(hedef) && is_user_alive(hedef)) {
g_bRevle[id] = true
ColorChat(id, NORMAL,"%s Bir Oyuncuyu Revlediniz.",tag)
ExecuteHamB(Ham_CS_RoundRespawn,hedef)
ColorChat(hedef, GREEN,"^1%s ^4Tarafindan Revlendiniz^1[^4Eger Gereksiz Revlendiyseniz ^1[SS] ^4Cekip Bildirin.^1]",isim)
ColorChat(hedef, GREEN,"^1%s ^4Tarafindan Revlendiniz^1[^4Eger Gereksiz Revlendiyseniz ^1[SS] ^4Cekip Bildirin.^1]",isim)
ColorChat(hedef, GREEN,"^1%s ^4Tarafindan Revlendiniz^1[^4Eger Gereksiz Revlendiyseniz ^1[SS] ^4Cekip Bildirin.^1]",isim)
}
} else {
client_print(id, print_center,"Bu Komutu Kullanma Yetkiniz Yok.")
}
}
public eRoundEnd() {
new players[32], inum;
static tempid
get_players(players, inum)
for(new i;i<inum;i++) {
tempid = players
g_bRevle[tempid] = false
}
}

- - - - - - - - - -

A/A dediğiniz şekilde seçtim fakat kod normal görünmekte şuan da :/

- - - - - - - - - -

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

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

#define PLUGIN "Admin Aim Oyuncu Revle"
#define VERSION "1.0"
#define AUTHOR "JDM"

#define ADMIN_YETKI    ADMIN_RCON

new bool:g_bRevle[33] = false
new tag[]= "^4[Rev Sebebi]:^1"
public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("+revle","OyuncuRevle")
    
register_logevent("eRoundEnd",2,"1=Round_End")
}
public 
client_connect(id) {
    
client_cmd(id,"bind p +revle"// "p" yazan yere istediğin tuşu yazabilirsin...
}
public 
OyuncuRevle(id) {
    if(!
is_user_alive(id)) return;
    
    new 
isim[32];
    
get_user_name(id,isim,31);
    
    if(
get_user_flags(id) & ADMIN_YETKI) {
        new 
hedefvucut
        get_user_aiming
(idhedefvucut);
    
        if(
is_valid_ent(hedef) && is_user_alive(hedef)) {
            
g_bRevle[id] = true
            ColorChat
(idNORMAL,"%s Bir Oyuncuyu Revlediniz.",tag)
            
ExecuteHamB(Ham_CS_RoundRespawn,hedef)
            
ColorChat(hedefGREEN,"^1%s ^4Tarafindan Revlendiniz^1[^4Eger Gereksiz Revlendiyseniz ^1[SS] ^4Cekip Bildirin.^1]",isim)
            
ColorChat(hedefGREEN,"^1%s ^4Tarafindan Revlendiniz^1[^4Eger Gereksiz Revlendiyseniz ^1[SS] ^4Cekip Bildirin.^1]",isim)
            
ColorChat(hedefGREEN,"^1%s ^4Tarafindan Revlendiniz^1[^4Eger Gereksiz Revlendiyseniz ^1[SS] ^4Cekip Bildirin.^1]",isim)
        }
    } else {
        
client_print(idprint_center,"Bu Komutu Kullanma Yetkiniz Yok.")
    }
}
public 
eRoundEnd() {
    new 
players[32], inum;
    static 
tempid
    get_players
(playersinum
    for(new 
i;i<inum;i++) {
        
tempid players
        g_bRevle
[tempid] = false
    
}


- - - - - - - - - -

Başardım... Smile
[/i]
Reply


Messages In This Thread
Cevap: Tusta Rev Ufak Bir Deişiklik - by mlhcnshn - 29-12-14, 21:39

Possibly Related Threads…
Thread Author Replies Views Last Post
  Plugin Ufak Ayarlar Config Setting 7 3,496 03-08-16, 20:28
Last Post: murat1366
  Ufak bi yardim t4t1fati 6 2,773 20-02-15, 23:59
Last Post: eneskaraca55
  Ufak değişiklik 250 hp ibocan06 7 3,502 20-02-15, 23:54
Last Post: eneskaraca55
  250 hp plugini ufak degişiklik ibocan06 10 5,607 20-02-15, 23:52
Last Post: eneskaraca55
  Tusta Takım Deiştirme memoaho123 4 2,591 14-01-15, 01:14
Last Post: Neith
  çok ufak kolay bi menü isteği Kaqan 5 4,172 10-09-14, 18:29
Last Post: Kaqan
  Ufak Bi Plugin Düzenlemesi. hasan06500 3 2,546 27-02-14, 15:35
Last Post: JDM
  Ufak Bir Soru skc0011 2 2,507 05-01-14, 21:54
Last Post: skc0011
  Ufak Plugin İstek Config Setting 3 2,657 03-08-13, 00:46
Last Post: akcaliberkk
  Ufak Plugin İstek Config Setting 9 4,429 19-07-13, 16:59
Last Post: akcaliberkk

Foruma Atla:


Users browsing this thread: 1 Guest(s)