Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Yere silah koyma plugini
#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


Messages In This Thread
Yere silah koyma plugini - by hurracuran - 01-01-13, 14:29
Cevap: Yere silah koyma plugini - by akcaliberkk - 02-01-13, 21:41

Possibly Related Threads…
Thread Author Replies Views Last Post
  Mapa Göre Cvar plugini melof 8 9,387 16-11-20, 02:00
Last Post: es_Dark_Es
  Time 15 Plugini fenerbahce07 24 12,142 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,689 08-10-17, 14:21
Last Post: kronossbey
  Hosgeldin Plugini hpph1294 9 6,851 03-09-17, 18:08
Last Post: tahayasin
  Jailbreak Banka Plugini sefatokgoz 8 8,136 03-09-17, 18:06
Last Post: tahayasin
  [İSTEK]Jb Verme Plugini (/mg) NorDan 8 12,920 03-09-17, 18:06
Last Post: tahayasin
  250 Hp Plugini Sadece R Yetkisinde Olsun GurkanCounter 8 10,878 03-09-17, 18:04
Last Post: tahayasin
  [JB] CT Özel Hook Grab Rope Plugini Nobb 21 10,730 03-09-17, 18:03
Last Post: tahayasin
  Admin Zombie Model plugini satknun1997 3 3,809 01-01-17, 12:47
Last Post: RuLeT

Foruma Atla:


Users browsing this thread: