Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Yere silah koyma plugini
#1
Varmıdır böyle bi plugin ?
Reply
#2
artık var Smile

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

#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <fakemeta_util>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"

#define is_valid_player(%1) (1 <= %1 <= 32)

public plugin_init()
{
    
register_clcmd("say","HookSay");
    
register_forward(FM_Touch,"fwd_touch")
    
}
public 
fwd_touch(dokunan,dokunulan) {
    
    
    new class[
32],class2[32];
    
pev(dokunan,pev_classname,class,31)
    
pev(dokunulan,pev_classname,class2,31)
    if(
equali(class2,"player")) {
        if(!
has_primary_weapon(dokunulan)) {
            if(
containi(class,"weapon_") != -1) {
                
fm_give_item(dokunulan,class)
                
remove_entity(dokunan)
            }
        }
    }
    
}
public 
HookSay(id) {
    
    if(!
access(id,ADMIN_BAN)) {
        return 
PLUGIN_CONTINUE
    
}
    
    new 
szSaid[32];
    
read_args(szSaid,31);
    
remove_quotes(szSaid);
    new 
komut[32],silah[32];
    
parse(szSaid,komut,31,silah,31)
    if(!
equali(komut,"/silahkoy")) {
        return 
PLUGIN_CONTINUE
    
}
    
    new 
arg[32]
    
format(arg,31,"weapon_%s",silah)
    new 
wpid get_weaponid(arg);
    if(!
wpid) {
        
client_print(id,print_chat,"Lutfen Gecerli Bir Silah Ismi Girin")
        return 
PLUGIN_HANDLED
    
}
    
    new 
Float:origin[3];
    
fm_get_aim_origin(id,origin)
    
    new 
GUN create_entity("info_target")
    
entity_set_string(GUNEV_SZ_classnamearg)
    
format(arg,31,"models/w_%s.mdl",silah)
    
entity_set_model(GUNarg)
    
entity_set_origin(GUNorigin)
    
    
entity_set_int(GUNEV_INT_solid1)
    
entity_set_int(GUNEV_INT_movetype6)
    
    
entity_set_int(GUNEV_INT_iuser1120)
    
    return 
PLUGIN_HANDLED
}
stock has_primary_weapon(id) {
    new 
weapons[32],inum;
    
get_user_weapons(id,weapons,inum)
    new 
tempid,gun;
    for(new 
i=0;i<inum;i++) {
        
tempid weapons[i];
        if(
tempid != CSW_KNIFE && tempid != CSW_DEAGLE && tempid != CSW_USP && tempid != CSW_GLOCK18 && tempid != CSW_ELITE
        
&& tempid != CSW_FIVESEVEN && tempid != CSW_C4 && tempid != CSW_SMOKEGRENADE && tempid != CSW_HEGRENADE 
        
&& tempid != CSW_FLASHBANG && tempid != CSW_SMOKEGRENADE ) {
            
gun++
            break;
        }
    }
    
    if(
gun) return 1;
    return 
0;


İstedigin yere nişan al;
/silahkoy silah_adı
şeklinde yaz.

Silah Adları:
m4a1
ak47
m3
awp
deagle
mp5
.
.
gibi.


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
#3
Sağol deniyorum Smile
Peki bunu sadece A yetkisi olanlar için ayarlayabilirmiyiz ?
-Birde yere konan silah şarjorsuz oluyor :S
Reply
#4
PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <fakemeta_util>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"

#define is_valid_player(%1) (1 <= %1 <= 32)

public plugin_init()
{
    
register_clcmd("say","HookSay");
    
register_forward(FM_Touch,"fwd_touch")
    
}
public 
fwd_touch(dokunan,dokunulan) {
    
    
    new class[
32],class2[32];
    
pev(dokunan,pev_classname,class,31)
    
pev(dokunulan,pev_classname,class2,31)
    if(
equali(class2,"player")) {
        if(!
has_primary_weapon(dokunulan)) {
            if(
containi(class,"weapon_") != -1) {
                
fm_give_item(dokunulan,class)
                new 
wpid get_weaponid(class);
                
fm_set_user_bpammo(dokunulan,wpid,500)
                
remove_entity(dokunan)
            }
        }
    }
    
}
public 
HookSay(id) {
    
    if(!
access(id,ADMIN_IMMUNITY)) {
        return 
PLUGIN_CONTINUE
    
}
    
    new 
szSaid[32];
    
read_args(szSaid,31);
    
remove_quotes(szSaid);
    new 
komut[32],silah[32];
    
parse(szSaid,komut,31,silah,31)
    if(!
equali(komut,"/silahkoy")) {
        return 
PLUGIN_CONTINUE
    
}
    
    new 
arg[32]
    
format(arg,31,"weapon_%s",silah)
    new 
wpid get_weaponid(arg);
    if(!
wpid) {
        
client_print(id,print_chat,"Lutfen Gecerli Bir Silah Ismi Girin")
        return 
PLUGIN_HANDLED
    
}
    
    new 
Float:origin[3];
    
fm_get_aim_origin(id,origin)
    
    new 
GUN create_entity("info_target")
    
entity_set_string(GUNEV_SZ_classnamearg)
    
format(arg,31,"models/w_%s.mdl",silah)
    
entity_set_model(GUNarg)
    
entity_set_origin(GUNorigin)
    
    
entity_set_int(GUNEV_INT_solid1)
    
entity_set_int(GUNEV_INT_movetype6)
    
    
entity_set_int(GUNEV_INT_iuser1120)
    
    return 
PLUGIN_HANDLED
}
stock has_primary_weapon(id) {
    new 
weapons[32],inum;
    
get_user_weapons(id,weapons,inum)
    new 
tempid,gun;
    for(new 
i=0;i<inum;i++) {
        
tempid weapons[i];
        if(
tempid != CSW_KNIFE && tempid != CSW_DEAGLE && tempid != CSW_USP && tempid != CSW_GLOCK18 && tempid != CSW_ELITE
        
&& tempid != CSW_FIVESEVEN && tempid != CSW_C4 && tempid != CSW_SMOKEGRENADE && tempid != CSW_HEGRENADE 
        
&& tempid != CSW_FLASHBANG && tempid != CSW_SMOKEGRENADE ) {
            
gun++
            break;
        }
    }
    
    if(
gun) return 1;
    return 
0;

const 
OFFSET_AWM_AMMO  377  
const OFFSET_SCOUT_AMMO 378 
const OFFSET_PARA_AMMO 379 
const OFFSET_FAMAS_AMMO 380 
const OFFSET_M3_AMMO 381 
const OFFSET_USP_AMMO 382 
const OFFSET_FIVESEVEN_AMMO 383 
const OFFSET_DEAGLE_AMMO 384 
const OFFSET_P228_AMMO 385 
const OFFSET_GLOCK_AMMO 386 
const OFFSET_FLASH_AMMO 387 
const OFFSET_HE_AMMO 388 
const OFFSET_SMOKE_AMMO 389 
const OFFSET_C4_AMMO 390 

const OFFSET_LINUX 5  
stock fm_set_user_bpammo
(idweaponamount

    static 
offset 
    
    
switch(weapon
    { 
        case 
CSW_AWPoffset OFFSET_AWM_AMMO
            case 
CSW_SCOUT,CSW_AK47,CSW_G3SG1offset OFFSET_SCOUT_AMMO
            case 
CSW_M249offset OFFSET_PARA_AMMO
            case 
CSW_M4A1,CSW_FAMAS,CSW_AUG,CSW_SG550,CSW_GALI,CSW_SG552offset OFFSET_FAMAS_AMMO
            case 
CSW_M3,CSW_XM1014offset OFFSET_M3_AMMO
            case 
CSW_USP,CSW_UMP45,CSW_MAC10offset OFFSET_USP_AMMO
            case 
CSW_FIVESEVEN,CSW_P90offset OFFSET_FIVESEVEN_AMMO
            case 
CSW_DEAGLEoffset OFFSET_DEAGLE_AMMO
            case 
CSW_P228offset OFFSET_P228_AMMO
            case 
CSW_GLOCK18,CSW_MP5NAVY,CSW_TMP,CSW_ELITEoffset OFFSET_GLOCK_AMMO
            case 
CSW_FLASHBANGoffset OFFSET_FLASH_AMMO
            case 
CSW_HEGRENADEoffset OFFSET_HE_AMMO
            case 
CSW_SMOKEGRENADEoffset OFFSET_SMOKE_AMMO
            case 
CSW_C4offset OFFSET_C4_AMMO
            default: return; 
    } 
    
    
set_pdata_int(idoffsetamountOFFSET_LINUX); 


Yetki, A olarak değiştirildi.
Mermi sorunu düzeltildi.


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
#5
teşekkür ederim konu kapatılabilir...
Reply
#6
Konu Çözülmüş İstekler Bölümüne Taşınmıştır.


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
  Mapa Göre Cvar plugini melof 8 9,375 16-11-20, 02:00
Last Post: es_Dark_Es
  Time 15 Plugini fenerbahce07 24 12,127 23-09-18, 03:19
Last Post: qalatas06
  El başı silah HijyeniK 2 4,685 10-02-18, 17:18
Last Post: Grafter
  toplantı plugini bihterr 22 10,681 08-10-17, 14:21
Last Post: kronossbey
  Hosgeldin Plugini hpph1294 9 6,846 03-09-17, 18:08
Last Post: tahayasin
  Jailbreak Banka Plugini sefatokgoz 8 8,132 03-09-17, 18:06
Last Post: tahayasin
  [İSTEK]Jb Verme Plugini (/mg) NorDan 8 12,915 03-09-17, 18:06
Last Post: tahayasin
  250 Hp Plugini Sadece R Yetkisinde Olsun GurkanCounter 8 10,873 03-09-17, 18:04
Last Post: tahayasin
  [JB] CT Özel Hook Grab Rope Plugini Nobb 21 10,716 03-09-17, 18:03
Last Post: tahayasin
  Admin Zombie Model plugini satknun1997 3 3,806 01-01-17, 12:47
Last Post: RuLeT

Foruma Atla:


Users browsing this thread: