25-05-13, 13:46
PHP Code:
stock drop_primary_weapons( index ) {
new weapons[32],inum;
get_user_weapons(index,weapons,inum)
for(new i;i<inum;i++) {
switch(weapons[i]) {
case CSW_DEAGLE,CSW_C4,CSW_ELITE,
CSW_FIVESEVEN,CSW_FLASHBANG,CSW_GLOCK18,
CSW_HEGRENADE,CSW_KNIFE,CSW_P228,
CSW_SMOKEGRENADE,CSW_USP,CSW_VEST,
CSW_VESTHELM:{
continue;
}
default: {
new weaponname[32];
get_weaponname(weapons,weaponname,31)
client_cmd(index,"drop %s",weaponname)
}
}
}
}
Bu stocku kullan, awp publicinde awp yi oyuncuya vermeden önce bu kodla oyuncunun sahip olduğu tüm birincil silahları düşürmesini sağla. Yani önce bu kod sonra give_item ile awp ver[/i][/i]
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/


![[Image: amxxlarge.jpg]](https://www.amxmodx.org/images/amxxlarge.jpg)