Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
/sat Plugini [Örnek Video Koydum]
#1
Merhaba Arkadaşlar Bana /sat Plugini Lazım Yani sell_weapons Yerine sat_weapons Plugini İstiyorum.Cs 1.6 Serverime Girince Say'a /sat Yazınca Silahı Satsın Örnek Video Koydum Ama Bu sell_weapons Videosu Bu Plugini sat_weapons Pluginine Çevirmenizi İstiyorum.

Video ;

Sell Weapons: Example Movie - YouTube
Coder İmza
PHP Code:
İletişim => cebinihat@hotmail.com 

Model İmza
PHP Code:
İletişim => cebinihat@hotmail.com 

CSP Signatür
PHP Code:
İletişim => cebinihat@hotmail.com 


En İyi Konularım:
Leqend Shop | Furkan Dize Shop |

Reply
#2
Bir pluginin kendi istekleriniz doğrultusunda değiştirilmesini/modifiye edilmesini istiyorsanız öncelikle düzenlenecek plugini göndermeniz gerekir.


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
say komutunu değiştirmen yeterli dostum Wink

EDIT:

Yani orjinal pluginde /sell ise sen onu /sat olarak değiştir.
Reply
#4
Ben Değiştiremiyorum İşte Siz Değiştiriniz Ve Bana Veriniz..! Onu Demek İstiyorum...
Coder İmza
PHP Code:
İletişim => cebinihat@hotmail.com 

Model İmza
PHP Code:
İletişim => cebinihat@hotmail.com 

CSP Signatür
PHP Code:
İletişim => cebinihat@hotmail.com 


En İyi Konularım:
Leqend Shop | Furkan Dize Shop |

Reply
#5
.sma at değiştireyim
Reply
#6
https://www.amxmodx.org/webcompiler.cgi?...id=1541419
Reply
#7
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <cstrike>

#define Plugin "Sell Weapons"
#define Version "1.4"
#define Author "Doombringer"

#define MAX_WEAPONS 33

new const g_prices[MAX_WEAPONS][] = {
    
"0",
    
"600",
    
"0",
    
"2750",
    
"0",
    
"3000",
    
"0",
    
"1400",
    
"3500",
    
"0",
    
"800",
    
"750",
    
"1700",
    
"4200",
    
"2000",
    
"2250",
    
"500",
    
"400",
    
"4750",
    
"1500",
    
"5750",
    
"1700",
    
"3100",
    
"1250",
    
"5000",
    
"0",
    
"650",
    
"3500",
    
"2500",
    
"0",
    
"2350",
    
"0",
    
"0"
}

new 
cvarbuyzoneannoncedivide //Pcvar stuff, makes life easier
public plugin_init() // Plugin_init(): Does all the "one-time" stuff. Called after plugin_precache().
{
    
register_plugin(PluginVersionAuthor//Register's the plugin so it can be seen in amx_help
    
    
register_clcmd("say /sat""cmd_sell"//Registers the command itself. So if someone say /sell the function will be executed
    
register_clcmd("say_team /sat""cmd_sell"//Save as above but for team chat
    
    
cvar register_cvar("SW_enabled""1"//Registers the cvar SW_enabled, Default 1 (If nothing else is in server.cfg or any other .cfg file)
    
buyzone register_cvar("SW_buyzone""0"//Registers the cvar SW_buyzone, Default 0 (If nothing else is in server.cfg or any other .cfg file)
    
annonce register_cvar("SW_annonce""120"//Registers the cvar SW_annonce, Default 120 (If nothing else is in server.cfg or any other .cfg file)
    
divide register_cvar("SW_divide""2"//Registers the cvar SW_divide, Default 2 (If nothing else is in server.cfg or any other .cfg file)
    
    
if(get_pcvar_num(annonce) > 1//If the pcvar annonce is higher then 1
        
set_task(get_pcvar_float(annonce), "print_annonce",_,_,_,"b"//Set a task to run the annonce function every get_pcvar_float(annonce) time
}

public 
print_annonce() //The function that shows the annonce
{
    if(
get_pcvar_num(annonce) < 1//If it's lower then 1
    
return PLUGIN_CONTINUE //Make the plugin continue (Yes i know i should do remove_task() but this is better)
    
    
client_print(0print_chat"Want to sell your weapon? Say /sell"//Prints the message to everyones chat area
    
return PLUGIN_CONTINUE //Continue...
}

stock fm_find_ent_by_owner(index, const classname[], ownerjghgtype 0) { // https://forums.alliedmods.net/showthread.php?t=28284
    
new strtype[11] = "classname"ent index
    
switch (jghgtype) {
        case 
1copy(strtype6"target")
        case 
2copy(strtype10"targetname")
    }

    while ((
ent engfunc(EngFunc_FindEntityByStringentstrtypeclassname)) && pev(entpev_owner) != owner) {}

    return 
ent
}

stock bool:fm_strip_user_gun(indexwid 0, const wname[] = "") { // https://forums.alliedmods.net/showthread.php?t=28284
    
new ent_class[32]
    if (!
wid && wname[0])
        
copy(ent_class31wname)
    else {
        new 
weapon widclipammo
        
if (!weapon && !(weapon get_user_weapon(indexclipammo)))
            return 
false
        
        get_weaponname
(weaponent_class31)
    }

    new 
ent_weap fm_find_ent_by_owner(-1ent_classindex)
    if (!
ent_weap)
        return 
false

    engclient_cmd
(index"drop"ent_class)

    new 
ent_box pev(ent_weappev_owner)
    if (!
ent_box || ent_box == index)
        return 
false

    dllfunc
(DLLFunc_Thinkent_box)

    return 
true
}

public 
cmd_sell(id//The whole main function
{
    if(
get_pcvar_num(cvar) < 1//If the pcvar cvar is lower then one
    
return PLUGIN_CONTINUE //Continue...
    
    
if(get_pcvar_num(buyzone) == && cs_get_user_buyzone(id) == 0//If pcvar buyzone is equal to one and user is not in a buyzone
    
{
        
client_print(idprint_chat"[ Dukkan ] Silah Satmak Icin Satin Alma Bolgesine Git"//Prints a angry little message :)
        
return PLUGIN_HANDLED //And ends the function
    
}
    
    if(!
is_user_alive(id)) //Isn't he alive?!
    
{
        
client_print(idprint_chat"[ Dukkan ] Silah Satisi Yapmak Icin Canli Olmak Gerekiyor."//Prints a angry little message :)
        
return PLUGIN_HANDLED //And ends the function
    
}
    
    new 
tempweapon get_user_weapon(idtemptemp//Fills weapon with the current hold weapon (temp is a so called dummy)
    
new price str_to_num(g_prices[weapon]) //Gets the price for the current weapon
    
    
if(price == 0//If it's equal to zero
    
{
        
client_print(idprint_chat"[ Dukkan ] Bicagini Satamassin"//Prints a angry little message :)
        
return PLUGIN_HANDLED //And ends the function
    
}
    
    new 
weaponname[32//Makes an array called weaponname, with a maximum of 32 - 1 chars
    
get_weaponname(weaponweaponname31//Gets the weapon name

    
new oldmoney cs_get_user_money(id//Gets the players money
    
new cash clamp(oldmoney + (price get_pcvar_num(divide)), 016000//clamps the total amount of cash, so it doesn't extend the 16000 limit
    
    
fm_strip_user_gun(idweapon//Calls the fm_strip_user_gun() stock
    
cs_set_user_money(idcash//Sets the money from cash
    
    
client_print(idprint_chat"[ Dukkan } Silahini %d$ Satin Aldim. Silah Ismi : %s"cs_get_user_money(id) - oldmoneyweaponname[7]) //Prints some info about what you got
    
return PLUGIN_HANDLED //Done

Reply
#8
Kod İstemiyorum Link İstiyorum Kardeşim..! Bu Arada AMXX Ve SMA : https://www.csplague.com/attachments/plu...eapons.rar Bunu /sat Plugini Olarak Çeviriniz..!
Coder İmza
PHP Code:
İletişim => cebinihat@hotmail.com 

Model İmza
PHP Code:
İletişim => cebinihat@hotmail.com 

CSP Signatür
PHP Code:
İletişim => cebinihat@hotmail.com 


En İyi Konularım:
Leqend Shop | Furkan Dize Shop |

Reply
#9
Konuşma tarzına biraz daha dikkat et kimse burada senin hizmetçin değil cümle sonlarınada "!" koyarak nereye varmaya çalıştığını anlamış değilim...

sell_weapons.rar
Reply
#10
Özür Dilerim Ama Ben Öyle Demek İstemedim Ben Bazen Hep ! Koyarımda Big Grin
Coder İmza
PHP Code:
İletişim => cebinihat@hotmail.com 

Model İmza
PHP Code:
İletişim => cebinihat@hotmail.com 

CSP Signatür
PHP Code:
İletişim => cebinihat@hotmail.com 


En İyi Konularım:
Leqend Shop | Furkan Dize Shop |

Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Mapa Göre Cvar plugini melof 8 9,392 16-11-20, 02:00
Last Post: es_Dark_Es
  Time 15 Plugini fenerbahce07 24 12,165 23-09-18, 03:19
Last Post: qalatas06
  toplantı plugini bihterr 22 10,702 08-10-17, 14:21
Last Post: kronossbey
  Hosgeldin Plugini hpph1294 9 6,855 03-09-17, 18:08
Last Post: tahayasin
  Jailbreak Banka Plugini sefatokgoz 8 8,145 03-09-17, 18:06
Last Post: tahayasin
  [İSTEK]Jb Verme Plugini (/mg) NorDan 8 12,927 03-09-17, 18:06
Last Post: tahayasin
  250 Hp Plugini Sadece R Yetkisinde Olsun GurkanCounter 8 10,884 03-09-17, 18:04
Last Post: tahayasin
  [JB] CT Özel Hook Grab Rope Plugini Nobb 21 10,745 03-09-17, 18:03
Last Post: tahayasin
  [İSTEK] CT MAVi - T Kırmızı ışık yanan Plugin + Video Çektim ademcan36 9 10,467 26-04-17, 16:15
Last Post: h4m4s
  Admin Zombie Model plugini satknun1997 3 3,814 01-01-17, 12:47
Last Post: RuLeT

Foruma Atla:


Users browsing this thread: