Merhaba 
afk slay eklentisinde yardımcı olabilecek varmı 
/afk yazınca ekranın ortasında afk modun aktif yazıyor ekran kırmızı oluyor
			
			
									
									
			AFK SLAY eklentisi
Moderatör: Moderatörler
- 
				distanced
Konu Sahibi - Mesajlar: 25
 - Kayıt: Cmt Nis 04, 2020 3:18 pm
 
- 
				mehmetxkonya
 - Mesajlar: 9
 - Kayıt: Sal Ara 20, 2016 5:43 pm
 
AFK SLAY eklentisi
Kod: Tümünü seç
 #include <amxmodx>
const PLUGIN_NAME[] = "AFK Plugin";
const PLUGIN_VERSION[] = "1.2";
const PLUGIN_AUTHOR[] = "Your Name";
public plugin_init() {
    register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR);
    register_clcmd("say /afk", "Cmd_AFKToggle");
}
public Cmd_AFKToggle(id) {
    if (!is_user_connected(id) || !is_user_alive(id))
        return PLUGIN_HANDLED;
    new isAFK = get_user_prop(id, "afk");
    if (isAFK) {
        // Eğer oyuncu zaten AFK ise, normale dön
        set_user_prop(id, "afk", 0);
        client_cmd(id, "echo AFK mode OFF - You are back!");
        client_cmd(id, "hudtxt2 " + id + " 1 -1 320 240 1 0 255 0 500.0 \"\"");
    } else {
        // Eğer oyuncu AFK değilse, ekranı kırmızı yap ve mesajı göster
        set_user_prop(id, "afk", 1);
        client_cmd(id, "echo AFK mode ON - You've been slayed!");
        client_cmd(id, "hudtxt2 " + id + " 1 -1 320 240 1 255 0 0 500.0 \"AFK MODE ACTIVE\"");
    }
    return PLUGIN_HANDLED;
}| Link: | |
| Linklerini gizle | 
- 
				distanced
Konu Sahibi - Mesajlar: 25
 - Kayıt: Cmt Nis 04, 2020 3:18 pm
 
AFK SLAY eklentisi
@mehmetxkonya 
HATA !
Eklenti Hatali:Derleme Hatasi,Eklenti kodlari Bozuk.!
Hata Detay
1704625195_afkmod1.sma(3) : error 001: expected token: "=", but found "["
1704625195_afkmod1.sma(4) : error 001: expected token: "=", but found "["
1704625195_afkmod1.sma(5) : error 001: expected token: "=", but found "["
1704625195_afkmod1.sma(8) : error 035: argument type mismatch (argument 1)
1704625195_afkmod1.sma(17) : error 017: undefined symbol "get_user_prop"
1704625195_afkmod1.sma(21) : error 017: undefined symbol "set_user_prop"
1704625195_afkmod1.sma(23) : error 037: invalid string (possibly non-terminated string)
1704625195_afkmod1.sma(23) : error 033: array must be indexed (variable "-unknown-")
1704625195_afkmod1.sma(23) : error 029: invalid expression, assumed zero
1704625195_afkmod1.sma(23) : fatal error 107: too many error messages on one line
			
			
									
									
			HATA !
Eklenti Hatali:Derleme Hatasi,Eklenti kodlari Bozuk.!
Hata Detay
1704625195_afkmod1.sma(3) : error 001: expected token: "=", but found "["
1704625195_afkmod1.sma(4) : error 001: expected token: "=", but found "["
1704625195_afkmod1.sma(5) : error 001: expected token: "=", but found "["
1704625195_afkmod1.sma(8) : error 035: argument type mismatch (argument 1)
1704625195_afkmod1.sma(17) : error 017: undefined symbol "get_user_prop"
1704625195_afkmod1.sma(21) : error 017: undefined symbol "set_user_prop"
1704625195_afkmod1.sma(23) : error 037: invalid string (possibly non-terminated string)
1704625195_afkmod1.sma(23) : error 033: array must be indexed (variable "-unknown-")
1704625195_afkmod1.sma(23) : error 029: invalid expression, assumed zero
1704625195_afkmod1.sma(23) : fatal error 107: too many error messages on one line
| Link: | |
| Linklerini gizle |