@noeldayi
senin plugin
public CurentWeapon(id) {
if(get_user_weapon(id) == CSW_awp) {
if(awp1[id])
set_pev(id, pev_viewmodel2, awp1Model);
if(awp2[id])
set_pev(id, pev_viewmodel2, awp2Model);
kırmızı olan kısımda uyarı verdi ve hiç çalışmadı ?
Moderatör: Moderatörler
@noeldayi
Link: | |
Linklerini gizle |
okul bitmedi hocam sanırsamPoseidon* yazdı: Pzt Nis 02, 2018 7:23 am Eğer beklerseniz 5-6 bıçak ve awp li skin menü akşam okuldan gelince elinizde olacaktır.
Link: | |
Linklerini gizle |
Bitti eve geldim de hastayım kusura bakma yataktan kalkamıyorum, yemek yedikten sonra bakıcağım
Link: | |
Linklerini gizle |
tamamdır hocam geçmiş olsun tekrardan.Poseidon* yazdı: Pzt Nis 02, 2018 8:02 pmBitti eve geldim de hastayım kusura bakma yataktan kalkamıyorum, yemek yedikten sonra bakıcağım
Link: | |
Linklerini gizle |
hocam müsait misin acaba ?Poseidon* yazdı: Pzt Nis 02, 2018 8:02 pmBitti eve geldim de hastayım kusura bakma yataktan kalkamıyorum, yemek yedikten sonra bakıcağım
Link: | |
Linklerini gizle |
Link: | |
Linklerini gizle |
Link: | |
Linklerini gizle |
Link: | |
Linklerini gizle |
Kod: Tümünü seç
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <hamsandwich>
#define PLUGIN "Silah Menusu"
#define VERSION "1.0"
#define AUTHOR "vaveylaSS"
#define swnick "'esL"
new const Awp1Model[66] = "models/silahmenu/v_ak47fireserphent.mdl";
new const Awp2Model[66] = "models/silahmenu/v_awpdragonlore.mdl";
new const Awp3Model[66] = "models/silahmenu/v_m4a1howl.mdl";
new const Awp4Model[66] = "models/silahmenu/v_gammadopplerbayonet.mdl";
new const Awp5Model[66] = "models/silahmenu/v_gammadopplerkarambit.mdl";
new bool: Awp1[33];
new bool: Awp2[33];
new bool: Awp3[33];
new bool: Awp4[33];
new bool: Awp5[33];
new bool: AwpKitle[33];
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /silahmenusu","Silah Menusu")
register_event("CurWeapon", "CurentWeapon", "be", "1=1");
}
public Menu(id) {
new menu = menu_create("\d[\r'esL\y|\risim\d] \r// \wSilah Menusu \r\\ ^n\d // cs188.csduragi.com // \r- \r\\ \d esl.tsklan.com \r//", "menu_handler")
menu_additem(menu, "\d['esL] \w-- \rAWP Dragon Lore", "1", 0);
menu_additem(menu, "\d['esL] \w-- \rAK47 Fire Serphent", "2");
menu_additem(menu, "\d['esL] \w-- \rM4A1 Howl", "3", 0);
menu_additem(menu, "\d['esL] \w-- \rBayonet Gamma Doppler", "4", 0);
menu_additem(menu, "\d['esL] \w-- \rKarambit Gamma Doppler ", "5", 0);
menu_setprop(menu,MPROP_NEXTNAME,"\yIleri")
menu_setprop(menu,MPROP_BACKNAME,"\yGeri")
menu_setprop(menu,MPROP_EXITNAME,"\yCIKIS");
menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);
menu_display(id, menu, 0);
return PLUGIN_CONTINUE
}
public menu_handler(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);
new adminismi[32]
get_user_name(id,adminismi,31)
switch(key)
{
case 1: {
AwpKitle[id] = true;
Awp1[id] = true;
CurentWeapon(id);
renkli_yazi(id, "!t[ !g%s !t] !nAWP [ Dragon Lore ] Sectiniz",swnick)
}
case 2: {
AwpKitle[id] = true;
Awp2[id] = true;
CurentWeapon(id);
renkli_yazi(id, "!t[ !g%s !t] !nAK47 [ Fire Serphent ] Sectiniz",swnick)
}
case 3: {
AwpKitle[id] = true;
Awp3[id] = true;
CurentWeapon(id);
renkli_yazi(id, "!t[ !g%s !t] !nM4A1 [ Howl] Sectiniz",swnick)
}
case 4: {
AwpKitle[id] = true;
Awp4[id] = true;
CurentWeapon(id);
renkli_yazi(id, "!t[ !g%s !t] !nBayonet [ Gamma Doppler ] Sectiniz",swnick)
}
case 5: {
Awp5[id] = true;
AwpKitle[id] = true;
CurentWeapon(id);
renkli_yazi(id, "!t[ !g%s !t] !nKarambit [ Gamma Doppler ] Sectiniz",swnick)
}
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}
public oyuncu_dogunca(id)
{
if(is_user_alive(id))
{
AwpKitle[id]= false;
Awp1[id] = false;
Awp2[id] = false;
Awp3[id] = false;
Awp4[id] = false;
Awp5[id] = false;
}
}
public plugin_precache()
{
precache_model(Awp2Model);
precache_model(Awp1Model);
precache_model(Awp3Model);
precache_model(Awp4Model);
precache_model(Awp5Model);
}
public client_putinserver(id)
{
Awp1[id] = false;
Awp2[id] = false;
Awp3[id] = false;
Awp4[id] = false;
Awp5[id] = false;
}
public CurentWeapon(id) {
if(get_user_weapon(id) == CSW_AWP)
if(get_user_weapon(id) == CSW_AK47)
if(get_user_weapon(id) == CSW_AWP)
if(get_user_weapon(id) == CSW_AWP)
{
if(Awp1[id])
set_pev(id, pev_viewmodel2, Awp1Model);
if(Awp2[id])
set_pev(id, pev_viewmodel2, Awp2Model);
if(Awp3[id])
set_pev(id, pev_viewmodel2, Awp3Model);
if(Awp4[id])
set_pev(id, pev_viewmodel2, Awp4Model);
if(Awp5[id])
set_pev(id, pev_viewmodel2, Awp5Model);
}
}
stock renkli_yazi(const id, const input[], any:...)
{
new count = 1, players[32];
static msg[191];
vformat(msg, 190, input, 3);
replace_all(msg, 190, "!n", "^x01");
replace_all(msg, 190, "!g", "^x04");
replace_all(msg, 190, "!t", "^x03");
if (id) players[0] = id; else get_players(players, count, "ch");{
for (new i = 0; i < count; i++)
{
if (is_user_connected(players[i]))
{
message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i]);
write_byte(players[i]);
write_string(msg);
message_end();
}
}
}
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ ansicpg1254\\ deff0\\ deflang1055{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ f0\\ fs16 \n\\ par }
*/
Link: | |
Linklerini gizle |