CS 1.6 Crosshair Stilleri Menu (/crosshair) Plugin

Counter-Strike 1.6 Eklenti Paylaşımı

Moderatör: Moderatörler

Forum kuralları
DİKKAT !
Konu Başlığı veya içeriği BÜYÜK HARFLERLE olan konular direk silenecektir !
Burası eklenti paylaşım bölümüdür ve yönetici onaylıdır. Alakasız konular hiçbir şekilde onaylanmayacaktır

Eklenti eklerken eklenti kurallarına uyulması gerekir.
En önemlisi paylaşılan eklenti şablonuna uyulması gerekir.
Bu hususlara dikkat edilmeyip paylaşılan eklenti konuları silenecektir.
Pzt Tem 22, 2019 12:55 am
Kullanıcı avatarı

Mesajlar: 302
Kayıt: Çrş Tem 17, 2019 6:45 pm
Konum: Ordu
Clan İsmi: Alpha Game Clan
yeni sürümünü paylaşarak.
the alpha pack spiral symbol..

Etiketler:
Link:
Linklerini gizle
Linki Kopyala

Pzt Tem 22, 2019 12:57 am
Kullanıcı avatarı

Mesajlar: 179
Kayıt: Cum Ara 18, 2015 8:24 pm
Konum: Türkiye / İstanbul
hayku yazdı:
Pzt Tem 22, 2019 12:55 am
yeni sürümünü paylaşarak.
Yeni sürümü kim getirecek ve illa yeni sürüm mü gerek düzeltme ile olamaz mı ?

Link:
Linklerini gizle
Linki Kopyala

Çrş Tem 24, 2019 5:43 pm
Kullanıcı avatarı

Mesajlar: 86
Kayıt: Cum Eyl 07, 2018 6:01 pm
Konum: İstanbul
Server Ip/DNS: 213.238.173.124
Clan İsmi: gLd
İmam-POWER yazdı:
Pzr Tem 21, 2019 10:57 pm
@Yek'-ta eklentiyi ;

Kod: Tümünü seç

#include <amxmodx>
#include <engine>
#include <cstrike>
#include <fakemeta>
#include <hamsandwich>

new const SilahBilgi[27][3] = {
	{0,0,0},
	{12,1,4},
	{9,52,1},
	{5,32,5},
	{14,1,6},
	{6,100,7},
	{4,90,8},
	{13,1,9},
	{10,120,10},
	{7,100,11},
	{6,100,12},
	{4,90,14},
	{4,90,15},
	{6,100,16},
	{10,120,17},
	{10,120,19},
	{3,200,20},
	{5,32,21},
	{4,90,22},
	{10,120,23},
	{11,2,25},
	{8,35,26},
	{4,90,27},
	{2,90,28},
    {7,100,30},
    {0,0,29},
	{0,0,0}
}
new scope[33];
new const sprites[6][4][64] = {
    {"Cross Adi","Txt Yolu","Sprite Yolu","Txt Adi"},
    {"CS:GO Crosshair","sprites/custom_cross2_fix.txt","sprites/csgo_crosshair_32.spr","custom_cross2_fix"},
    {"Normal Sabit","sprites/custom_cross_fix_yeni3.txt","sprites/csgo_nisan_yeni3.spr","custom_cross_fix_yeni3"},
    {"CS:GO Arti Crosshair","sprites/custom_cross3_fix.txt","sprites/artinisan.spr","custom_cross3_fix"},
    {"CS:GO Ufak","sprites/custom_cross5_fix4.txt","sprites/dahakucuk4.spr","custom_cross5_fix4"},
    {"CS:GO Baslangic","sprites/custom_cross_baslangic.txt","sprites/csgo_baslangic.spr","custom_cross_baslangic"}
}

new weapon_weapon[][] =
{
	"weapon_aug",
	"weapon_sg552"
}

new cross[33];
public plugin_init()
{
    register_plugin("CS:GO Crosshair","1.1","KriTo");
    register_event("CurWeapon","Event_CurWeapon","be","1=1");
    register_clcmd("buyammo1","guncelle1");
    register_clcmd("buyammo2","guncelle1");
    register_clcmd("custom_cross2_fix","FakeSwitch");
    register_clcmd("say /crosshair","crossmenu");
    register_clcmd("say .crosshair","crossmenu");

    for(new i = 0; i < sizeof weapon_weapon; i++)
		RegisterHam(Ham_Weapon_Reload, weapon_weapon[i], "fw_Weapon_Reload_Post", 1)
}

public fw_Weapon_Reload_Post(ent)
{
	static id;
	id = pev(ent, pev_owner);
	
	if(get_user_weapon(id) == CSW_AUG || get_user_weapon(id) == CSW_SG552)
		if(scope[id]==1)
			scope[id]=0;
		
	return HAM_HANDLED
}

/*public client_disconnected(id){
    cross[id] = 1;
}*/
public client_putinserver(id){
    client_cmd(id, "crosshair 1")
    cross[id] = 0;
}
public client_PreThink(id)
{
    new button = pev(id, pev_oldbuttons);
    new oldbutton = pev(id, pev_button);
    if(oldbutton & IN_ATTACK2)
    {
        if(button & IN_ATTACK2)
            return PLUGIN_CONTINUE;

        new weapon = get_user_weapon(id);
        if(weapon == CSW_AUG || weapon == CSW_SG552)
        {
            if(scope[id]==0)
                scope[id]=1;
            else
                scope[id]=0;
            Guncelle(id);
        } else if(weapon != CSW_AUG || weapon != CSW_SG552)
        {
            scope[id]=0;
        }
    }
    
    return PLUGIN_CONTINUE;
}
public crossmenu(id)
{
    new Menu=menu_create("\rCS:GO \yCrosshair \wMenu^n","crossdevam");
    menu_additem(Menu,"Default Crosshair","1");
    for(new i=1;i<sizeof(sprites);i++)
    {
        new Item[128],text[12];
        formatex(Item,127,"%s",sprites[i][0]);
        num_to_str(i+1,text,11);
        menu_additem(Menu,Item,text);
    }
    menu_setprop(Menu, MPROP_EXIT, MEXIT_ALL);
    menu_display(id,Menu,0);
}
public crossdevam(id, menu, item)
{

    if( item == MENU_EXIT )
    {
        menu_destroy(menu);
        return PLUGIN_HANDLED;
    }

    new data[6], iName[64];
    new access, callback;
    menu_item_getinfo(menu, item, access, data,5, iName, 63, callback);
    new key = str_to_num(data);
    cross[id] = key-1;
    if(cross[id] == 0)
    {
        message_begin(MSG_ONE, get_user_msgid("HideWeapon"),  .player=id);
        write_byte(1<<7);
        message_end();
    }
    client_print_color(id, id, "^3%s ^1sectin.",sprites[cross[id]][0])
    Guncelle(id);
    client_cmd(id, "lastinv;wait;wait;wait;wait;wait;wait;lastinv")

    return PLUGIN_HANDLED;
}
public guncelle1(id)
{
    set_task(0.1,"Guncelle",id);
    return PLUGIN_CONTINUE;
}
public Guncelle(id)
{
    if(!is_user_alive(id) || cross[id] == 0)
        return PLUGIN_HANDLED;
    new weapon = get_user_weapon(id);
    if( weapon == CSW_AWP || weapon == CSW_SCOUT || weapon == CSW_SG550 || weapon == CSW_G3SG1 || weapon == CSW_KNIFE)
        return PLUGIN_CONTINUE

    if(weapon != CSW_SG552 && weapon != CSW_AUG)
        scope[id]=0

    new i;
    for(i=0;i<sizeof(SilahBilgi);i++)
    {
        new yeniweap = SilahBilgi[i][2];
        if(weapon == yeniweap)
        {
            break;
        } else if(i==sizeof(SilahBilgi)-1)
        {
            return PLUGIN_CONTINUE;
        }
    }
    message_begin(MSG_ONE, get_user_msgid("HideWeapon"),  .player=id);
    write_byte(1<<6);
    message_end();

    message_begin(MSG_ONE,get_user_msgid("WeaponList"),   .player=id);
    write_string(sprites[cross[id]][3]);
    write_byte(SilahBilgi[i-1][0]);
    write_byte(SilahBilgi[i-1][1]);
    write_byte(-1);
    write_byte(-1);
    write_byte(6);
    write_byte(0);
    write_byte(2);
    write_byte(0);
    message_end();

    message_begin(MSG_ONE,get_user_msgid("SetFOV"),        .player=id);
    if(scope[id] == 1)
        write_byte(55);
    else
        write_byte(89);
    message_end();

    new ammo,bpammo;
    get_user_ammo(id,weapon,ammo,bpammo);

    message_begin(MSG_ONE,get_user_msgid("CurWeapon"),    .player=id);
    write_byte(1);
    write_byte(2);
    write_byte(ammo);
    message_end();
    if(weapon != CSW_KNIFE) {
        message_begin(MSG_ONE,get_user_msgid("AmmoX"),      .player=id);
        write_byte(SilahBilgi[i-1][0]);
        write_byte(bpammo);
        message_end();
    }
    if(scope[id] == 0) {
        message_begin(MSG_ONE,get_user_msgid("SetFOV"),        .player=id);
        write_byte(90);
        message_end();
    }

    return PLUGIN_HANDLED;
}
public FakeSwitch(const client)engclient_cmd(client,"weapon_shield");
public plugin_precache()
{
    for(new i=1;i<sizeof(sprites);i++)
    {
        precache_generic(sprites[i][1]);
        precache_generic(sprites[i][2]);
    }
}

public Event_CurWeapon(id)
{
    if(!is_user_alive(id) || cross[id] == 0)
        return PLUGIN_HANDLED;
    new weapon = read_data(2);
    if( weapon == CSW_AWP || weapon == CSW_SCOUT || weapon == CSW_SG550 || weapon == CSW_G3SG1)
        return PLUGIN_CONTINUE
    new i;
    for(i=0;i<sizeof(SilahBilgi);i++)
    {
        new yeniweap = SilahBilgi[i][2];
        if(weapon == yeniweap)
        {
            break;
        }
    }

    if(weapon == CSW_KNIFE)
    {
        message_begin(MSG_ONE,get_user_msgid("WeaponList"),   .player=id);
        write_string(sprites[cross[id]][3]);
        write_byte(-1);
        write_byte(-1);
        write_byte(-1);
        write_byte(-1);
        write_byte(0);
        write_byte(11);
        write_byte(2);
        write_byte(0);
        message_end();

        message_begin(MSG_ONE,get_user_msgid("SetFOV"),        .player=id);
        write_byte(89);
        message_end();

        message_begin(MSG_ONE,get_user_msgid("CurWeapon"),    .player=id);
        write_byte(1);
        write_byte(2);
        write_byte(-1);
        message_end();

        message_begin(MSG_ONE,get_user_msgid("SetFOV"),        .player=id);
        write_byte(90);
        message_end();

        return PLUGIN_CONTINUE
    }

    message_begin(MSG_ONE, get_user_msgid("HideWeapon"),  .player=id);
    write_byte(1<<6);
    message_end();

    message_begin(MSG_ONE,get_user_msgid("WeaponList"),   .player=id);
    write_string(sprites[cross[id]][3]);
    write_byte(SilahBilgi[i-1][0]);
    write_byte(SilahBilgi[i-1][1]);
    write_byte(-1);
    write_byte(-1);
    write_byte(6);
    write_byte(0);
    write_byte(2);
    write_byte(0);
    message_end();

    if(weapon != CSW_SG552 && weapon != CSW_AUG)
        scope[id]=0

    message_begin(MSG_ONE,get_user_msgid("SetFOV"),        .player=id);
    if(scope[id] == 1)
        write_byte(55);
    else
        write_byte(89);
    message_end();

    new ammo,bpammo;
    get_user_ammo(id,weapon,ammo,bpammo);

    message_begin(MSG_ONE,get_user_msgid("CurWeapon"),    .player=id);
    write_byte(1);
    write_byte(2);
    write_byte(ammo);
    message_end();

    if(weapon != CSW_KNIFE) {
        message_begin(MSG_ONE,get_user_msgid("AmmoX"),      .player=id);
        write_byte(SilahBilgi[i-1][0]);
        write_byte(bpammo);
        message_end();
    }
    if(scope[id] == 0) {
        message_begin(MSG_ONE,get_user_msgid("SetFOV"),        .player=id);
        write_byte(90);
        message_end();
    }


    return PLUGIN_HANDLED;
}
günceller misin ? bu çalışır durumda.
HLDS sunucuda verdiği hata:
a.png
Bu mesaja eklenen dosyaları görüntülemek için gerekli izinlere sahip değilsiniz.

Link:
Linklerini gizle
Linki Kopyala

Çrş Tem 24, 2019 7:17 pm
Kullanıcı avatarı

Mesajlar: 179
Kayıt: Cum Ara 18, 2015 8:24 pm
Konum: Türkiye / İstanbul
@Vortex Güncellenmesi lazım pluginin.

Link:
Linklerini gizle
Linki Kopyala

Çrş Tem 24, 2019 8:42 pm
Kullanıcı avatarı

Mesajlar: 1047
Kayıt: Pzr Oca 28, 2018 11:45 pm
Konum: SAMSUNLUYUZ
Vortex yazdı:
Çrş Tem 24, 2019 5:43 pm
İmam-POWER yazdı:
Pzr Tem 21, 2019 10:57 pm
@Yek'-ta eklentiyi ;

Kod: Tümünü seç

#include <amxmodx>
#include <engine>
#include <cstrike>
#include <fakemeta>
#include <hamsandwich>

new const SilahBilgi[27][3] = {
	{0,0,0},
	{12,1,4},
	{9,52,1},
	{5,32,5},
	{14,1,6},
	{6,100,7},
	{4,90,8},
	{13,1,9},
	{10,120,10},
	{7,100,11},
	{6,100,12},
	{4,90,14},
	{4,90,15},
	{6,100,16},
	{10,120,17},
	{10,120,19},
	{3,200,20},
	{5,32,21},
	{4,90,22},
	{10,120,23},
	{11,2,25},
	{8,35,26},
	{4,90,27},
	{2,90,28},
    {7,100,30},
    {0,0,29},
	{0,0,0}
}
new scope[33];
new const sprites[6][4][64] = {
    {"Cross Adi","Txt Yolu","Sprite Yolu","Txt Adi"},
    {"CS:GO Crosshair","sprites/custom_cross2_fix.txt","sprites/csgo_crosshair_32.spr","custom_cross2_fix"},
    {"Normal Sabit","sprites/custom_cross_fix_yeni3.txt","sprites/csgo_nisan_yeni3.spr","custom_cross_fix_yeni3"},
    {"CS:GO Arti Crosshair","sprites/custom_cross3_fix.txt","sprites/artinisan.spr","custom_cross3_fix"},
    {"CS:GO Ufak","sprites/custom_cross5_fix4.txt","sprites/dahakucuk4.spr","custom_cross5_fix4"},
    {"CS:GO Baslangic","sprites/custom_cross_baslangic.txt","sprites/csgo_baslangic.spr","custom_cross_baslangic"}
}

new weapon_weapon[][] =
{
	"weapon_aug",
	"weapon_sg552"
}

new cross[33];
public plugin_init()
{
    register_plugin("CS:GO Crosshair","1.1","KriTo");
    register_event("CurWeapon","Event_CurWeapon","be","1=1");
    register_clcmd("buyammo1","guncelle1");
    register_clcmd("buyammo2","guncelle1");
    register_clcmd("custom_cross2_fix","FakeSwitch");
    register_clcmd("say /crosshair","crossmenu");
    register_clcmd("say .crosshair","crossmenu");

    for(new i = 0; i < sizeof weapon_weapon; i++)
		RegisterHam(Ham_Weapon_Reload, weapon_weapon[i], "fw_Weapon_Reload_Post", 1)
}

public fw_Weapon_Reload_Post(ent)
{
	static id;
	id = pev(ent, pev_owner);
	
	if(get_user_weapon(id) == CSW_AUG || get_user_weapon(id) == CSW_SG552)
		if(scope[id]==1)
			scope[id]=0;
		
	return HAM_HANDLED
}

/*public client_disconnected(id){
    cross[id] = 1;
}*/
public client_putinserver(id){
    client_cmd(id, "crosshair 1")
    cross[id] = 0;
}
public client_PreThink(id)
{
    new button = pev(id, pev_oldbuttons);
    new oldbutton = pev(id, pev_button);
    if(oldbutton & IN_ATTACK2)
    {
        if(button & IN_ATTACK2)
            return PLUGIN_CONTINUE;

        new weapon = get_user_weapon(id);
        if(weapon == CSW_AUG || weapon == CSW_SG552)
        {
            if(scope[id]==0)
                scope[id]=1;
            else
                scope[id]=0;
            Guncelle(id);
        } else if(weapon != CSW_AUG || weapon != CSW_SG552)
        {
            scope[id]=0;
        }
    }
    
    return PLUGIN_CONTINUE;
}
public crossmenu(id)
{
    new Menu=menu_create("\rCS:GO \yCrosshair \wMenu^n","crossdevam");
    menu_additem(Menu,"Default Crosshair","1");
    for(new i=1;i<sizeof(sprites);i++)
    {
        new Item[128],text[12];
        formatex(Item,127,"%s",sprites[i][0]);
        num_to_str(i+1,text,11);
        menu_additem(Menu,Item,text);
    }
    menu_setprop(Menu, MPROP_EXIT, MEXIT_ALL);
    menu_display(id,Menu,0);
}
public crossdevam(id, menu, item)
{

    if( item == MENU_EXIT )
    {
        menu_destroy(menu);
        return PLUGIN_HANDLED;
    }

    new data[6], iName[64];
    new access, callback;
    menu_item_getinfo(menu, item, access, data,5, iName, 63, callback);
    new key = str_to_num(data);
    cross[id] = key-1;
    if(cross[id] == 0)
    {
        message_begin(MSG_ONE, get_user_msgid("HideWeapon"),  .player=id);
        write_byte(1<<7);
        message_end();
    }
    client_print_color(id, id, "^3%s ^1sectin.",sprites[cross[id]][0])
    Guncelle(id);
    client_cmd(id, "lastinv;wait;wait;wait;wait;wait;wait;lastinv")

    return PLUGIN_HANDLED;
}
public guncelle1(id)
{
    set_task(0.1,"Guncelle",id);
    return PLUGIN_CONTINUE;
}
public Guncelle(id)
{
    if(!is_user_alive(id) || cross[id] == 0)
        return PLUGIN_HANDLED;
    new weapon = get_user_weapon(id);
    if( weapon == CSW_AWP || weapon == CSW_SCOUT || weapon == CSW_SG550 || weapon == CSW_G3SG1 || weapon == CSW_KNIFE)
        return PLUGIN_CONTINUE

    if(weapon != CSW_SG552 && weapon != CSW_AUG)
        scope[id]=0

    new i;
    for(i=0;i<sizeof(SilahBilgi);i++)
    {
        new yeniweap = SilahBilgi[i][2];
        if(weapon == yeniweap)
        {
            break;
        } else if(i==sizeof(SilahBilgi)-1)
        {
            return PLUGIN_CONTINUE;
        }
    }
    message_begin(MSG_ONE, get_user_msgid("HideWeapon"),  .player=id);
    write_byte(1<<6);
    message_end();

    message_begin(MSG_ONE,get_user_msgid("WeaponList"),   .player=id);
    write_string(sprites[cross[id]][3]);
    write_byte(SilahBilgi[i-1][0]);
    write_byte(SilahBilgi[i-1][1]);
    write_byte(-1);
    write_byte(-1);
    write_byte(6);
    write_byte(0);
    write_byte(2);
    write_byte(0);
    message_end();

    message_begin(MSG_ONE,get_user_msgid("SetFOV"),        .player=id);
    if(scope[id] == 1)
        write_byte(55);
    else
        write_byte(89);
    message_end();

    new ammo,bpammo;
    get_user_ammo(id,weapon,ammo,bpammo);

    message_begin(MSG_ONE,get_user_msgid("CurWeapon"),    .player=id);
    write_byte(1);
    write_byte(2);
    write_byte(ammo);
    message_end();
    if(weapon != CSW_KNIFE) {
        message_begin(MSG_ONE,get_user_msgid("AmmoX"),      .player=id);
        write_byte(SilahBilgi[i-1][0]);
        write_byte(bpammo);
        message_end();
    }
    if(scope[id] == 0) {
        message_begin(MSG_ONE,get_user_msgid("SetFOV"),        .player=id);
        write_byte(90);
        message_end();
    }

    return PLUGIN_HANDLED;
}
public FakeSwitch(const client)engclient_cmd(client,"weapon_shield");
public plugin_precache()
{
    for(new i=1;i<sizeof(sprites);i++)
    {
        precache_generic(sprites[i][1]);
        precache_generic(sprites[i][2]);
    }
}

public Event_CurWeapon(id)
{
    if(!is_user_alive(id) || cross[id] == 0)
        return PLUGIN_HANDLED;
    new weapon = read_data(2);
    if( weapon == CSW_AWP || weapon == CSW_SCOUT || weapon == CSW_SG550 || weapon == CSW_G3SG1)
        return PLUGIN_CONTINUE
    new i;
    for(i=0;i<sizeof(SilahBilgi);i++)
    {
        new yeniweap = SilahBilgi[i][2];
        if(weapon == yeniweap)
        {
            break;
        }
    }

    if(weapon == CSW_KNIFE)
    {
        message_begin(MSG_ONE,get_user_msgid("WeaponList"),   .player=id);
        write_string(sprites[cross[id]][3]);
        write_byte(-1);
        write_byte(-1);
        write_byte(-1);
        write_byte(-1);
        write_byte(0);
        write_byte(11);
        write_byte(2);
        write_byte(0);
        message_end();

        message_begin(MSG_ONE,get_user_msgid("SetFOV"),        .player=id);
        write_byte(89);
        message_end();

        message_begin(MSG_ONE,get_user_msgid("CurWeapon"),    .player=id);
        write_byte(1);
        write_byte(2);
        write_byte(-1);
        message_end();

        message_begin(MSG_ONE,get_user_msgid("SetFOV"),        .player=id);
        write_byte(90);
        message_end();

        return PLUGIN_CONTINUE
    }

    message_begin(MSG_ONE, get_user_msgid("HideWeapon"),  .player=id);
    write_byte(1<<6);
    message_end();

    message_begin(MSG_ONE,get_user_msgid("WeaponList"),   .player=id);
    write_string(sprites[cross[id]][3]);
    write_byte(SilahBilgi[i-1][0]);
    write_byte(SilahBilgi[i-1][1]);
    write_byte(-1);
    write_byte(-1);
    write_byte(6);
    write_byte(0);
    write_byte(2);
    write_byte(0);
    message_end();

    if(weapon != CSW_SG552 && weapon != CSW_AUG)
        scope[id]=0

    message_begin(MSG_ONE,get_user_msgid("SetFOV"),        .player=id);
    if(scope[id] == 1)
        write_byte(55);
    else
        write_byte(89);
    message_end();

    new ammo,bpammo;
    get_user_ammo(id,weapon,ammo,bpammo);

    message_begin(MSG_ONE,get_user_msgid("CurWeapon"),    .player=id);
    write_byte(1);
    write_byte(2);
    write_byte(ammo);
    message_end();

    if(weapon != CSW_KNIFE) {
        message_begin(MSG_ONE,get_user_msgid("AmmoX"),      .player=id);
        write_byte(SilahBilgi[i-1][0]);
        write_byte(bpammo);
        message_end();
    }
    if(scope[id] == 0) {
        message_begin(MSG_ONE,get_user_msgid("SetFOV"),        .player=id);
        write_byte(90);
        message_end();
    }


    return PLUGIN_HANDLED;
}
günceller misin ? bu çalışır durumda.
HLDS sunucuda verdiği hata:a.png
Sunucuda çalışıyor. Bu arada müsaitsen bi konuşalım ?
  • Bu kitabı ve ölçüyü hakla indiren Allah'tır. Ne bilirsin, belki de kıyamet saati yakındır! ( Şura süresi 17. ayet. )





#Loading..

Link:
Linklerini gizle
Linki Kopyala

Pzt May 18, 2020 10:48 am

Mesajlar: 2
Kayıt: Cum Mar 20, 2020 7:49 pm
When I shoot, becomes invisible sign

What is the problem?

Please help

Link:
Linklerini gizle
Linki Kopyala

Pzt May 18, 2020 11:16 am

Mesajlar: 2
Kayıt: Cum Mar 20, 2020 7:49 pm
I have this problem on the online server

my online server is amx mod x version 1.8.2

There is no problem with offline

cs offline amx mox x version 1.8.2

Link:
Linklerini gizle
Linki Kopyala

Prş May 21, 2020 4:29 pm

Mesajlar: 1
Kayıt: Prş May 21, 2020 4:28 pm
ÇOK GÜZEL OLMUL

Link:
Linklerini gizle
Linki Kopyala

Cevapla