Kod:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>
#include <hamsandwich>
#include <fakemeta>
#include <engine>
#include <hamsandwich>
#define Hiz 430.0
#define HizNinja 500.0
#define HizKapat 330.0
#define PLUGIN "DebenMod"
#define VERSION "1.0"
#define AUTHOR "Bilbaz Guncelleme : MawiLarq !"
/////////////////////////////////---- DEBEN MOD ----/////////////////////////////>
///////////////////////////Bir CSModders.com Yapımıdır.//////////////////////////>
//////////////////////////////İzinsiz Kullanılamaz !/////////////////////////////>
///////////////////////////////////Coded By Bilbaz///////////////////////////////>
//////////////////////////////Guncelleme MawiLarq Ayittir !/////////////////>
//////////////////////////////BASKA FORUMLARDA PAYILMASI YASAKTIR/////////////////>
new silah[33];
static syncObj;
new para[33];
new engel3[33];
new zombiise[33];
new gorunmezlik[33];
new zombinisec[33];
const Float:HUD_SPECT_X = 0.02
const Float:HUD_SPECT_Y = 0.9
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("DeathMsg","eDeath","a")
register_clcmd("say /dbmenu","debenmenu")
register_event("CurWeapon","eCurWeapon","be","1=1")
register_event("DeathMsg","eDeath","a")
syncObj = CreateHudSyncObj( );
register_forward(FM_AddToFullPack, "AddToFullPack")
RegisterHam(Ham_Spawn , "player", "OyuncuDogunca",1)
}
public OyuncuDogunca(id) {
if(silah[id] == 1){
give_item( id, "weapon_m4a1" );
give_item( id, "weapon_scout" );
give_item( id, "weapon_deagle" );
cs_set_user_bpammo( id, CSW_DEAGLE, 250 );
cs_set_user_bpammo( id, CSW_M4A1, 250 );
}
if(silah[id] == 2){
give_item( id, "weapon_awp" );
give_item( id, "weapon_deagle" );
cs_set_user_bpammo( id, CSW_DEAGLE, 250 );
cs_set_user_bpammo( id, CSW_AWP, 250 );
}
if(silah[id] == 3){
give_item( id, "weapon_ak47" );
give_item( id, "weapon_deagle" );
cs_set_user_bpammo( id, CSW_DEAGLE, 250 );
cs_set_user_bpammo( id, CSW_AK47, 250 );
}
if(silah[id] == 4){
give_item( id, "weapon_xm1014" );
give_item( id, "weapon_deagle" );
cs_set_user_bpammo( id, CSW_DEAGLE, 250 );
cs_set_user_bpammo( id, CSW_XM1014, 250 );
}
}
public plugin_precache()
{
precache_model("models/player/kurt/kurt.mdl");
precache_model("models/player/japonkiz/japonkiz.mdl");
precache_model("models/player/zombi/zombi.mdl");
precache_model("models/player/bogaadam/bogaadam.mdl");
precache_model("models/rpgrocket.mdl")
}
public AddToFullPack(es, e, ent, host, hostflags, player, pSet)
{
if( player )
{
if(ent == host)
{
set_pev(ent, pev_rendermode, kRenderNormal)
set_pev(ent, pev_renderamt, 0)
}
}
return FMRES_IGNORED
}
///Menu Ayarlari Elleme sakin Bozarsin lan ///*************
public debenmenu(id) {
new menu, Menuz[512]
formatex(Menuz, charsmax(Menuz), "\y[\rCSModders.com\y]")
menu = menu_create(Menuz, "ct_ctmenu")
formatex(Menuz, charsmax(Menuz), "\y[\rCSM\y] \wKarakter Satin AL")
menu_additem(menu, Menuz, "1")
formatex(Menuz, charsmax(Menuz), "\y[\rCSM\y] \wSilah Satin AL")
menu_additem(menu, Menuz, "2")
formatex(Menuz, charsmax(Menuz), "\y[\rCSM\y] \wEnvanter Menu")
menu_additem(menu, Menuz, "3")
if(engel3[id] == 0) {
formatex(Menuz, charsmax(Menuz), "\y[\rCSM\y] \wVIP-ELIT Menu")
menu_additem(menu, Menuz, "7",ADMIN_KICK)
} else {
formatex(Menuz, charsmax(Menuz), "\y[\rCSM\y] \wVIP-ELIT Menu \y[ \rKullandiniz \y]")
menu_additem(menu, Menuz, "0",ADMIN_USER)
}
formatex(Menuz, charsmax(Menuz), "\y[\rCSM\y] \r**\w Destek Menusu \r**")
menu_additem(menu, Menuz, "5")
formatex(Menuz, charsmax(Menuz), "\y[\rCSM\y] \rTeam Speak 3 ' Baglan^n\y[ \r95.173.173.xxx \y]")
menu_additem(menu, Menuz, "8")
formatex(Menuz, charsmax(Menuz), "\y[\rCSM\y] \wCikis")
menu_setprop(menu,MPROP_EXITNAME,Menuz)
menu_display(id, menu, 0)
}
public ct_ctmenu(id, menu, item) {
if (item == MENU_EXIT)
{
menu_destroy(menu)
return PLUGIN_CONTINUE
}
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)
if (is_user_alive(id)) {
switch(key)
{
case 1:
{
zombisatin(id)
client_printc(id, "!gKarakter Satin Alma Menusune Giris Yapildi !n!");
}
case 2:
{
silahal(id)
client_printc(id, "!gSilah Satin Alma Menusune Giris Yapildi !n!");
}
case 8:
{
console_cmd(id,"say /ts3")
}
case 5:
{
ctadminmenu(id)
client_printc(id, "!gDestek Menusune Giris Yapildi !n!");
}
case 3:
{
extramenu(id)
client_printc(id, "!gEnvanter Satin Alma Menusune Giris Yapildi !n!");
}
case 7:
{
hpmarket(id)
engel3[id] = 1
}
}
}
return PLUGIN_HANDLED
}
public hpmarket(id) {
new menu, Menuz[512]
formatex(Menuz, charsmax(Menuz), "\y[\rCSM\y] \wVIP-ELIT Menu")
menu = menu_create(Menuz, "OzelMenuHandler6")
formatex(Menuz, charsmax(Menuz), "\y[\rCSM\y] \wRedbull ( 50 Saniye )")
menu_additem(menu, Menuz, "1", 0)
formatex(Menuz, charsmax(Menuz), "\y[\rCSM\y] \wHeal ( 150 )")
menu_additem(menu, Menuz, "2", 0)
formatex(Menuz, charsmax(Menuz), "\y[\rCSM\y] \wZiplama ( Yuksek )")
menu_additem(menu, Menuz, "3", 0)
formatex(Menuz, charsmax(Menuz), "\y[\rCSM\y] \wZiplama + 80 Heal^nBurdan BirSey Almassan Oto Kapanir Menu Geri Cikarsan Bida Girilmez ! ")
menu_additem(menu, Menuz, "4", 0)
formatex(Menuz, charsmax(Menuz), "\y[\rCSM\y] \wCikis")
menu_setprop(menu,MPROP_EXITNAME,Menuz)
menu_setprop(menu,MPROP_EXIT, MEXIT_ALL)
menu_display(id, menu, 0)
return PLUGIN_HANDLED;
return PLUGIN_HANDLED;
}
public OzelMenuHandler6(id, menu ,item) {
if(item == MENU_EXIT) {
menu_destroy(menu)
return PLUGIN_HANDLED
}
new data[6], iName[64], access, callback
menu_item_getinfo(menu,item,access,data,charsmax(data),iName,charsmax(iName),callback)
new key = str_to_num(data)
switch(key) {
case 1:{
set_user_gravity(id,0.9)
set_task(1.0,"plus_hp",id,"",0,"b")
set_task(50.0,"redbull_over",id)
set_user_maxspeed(id,650.0)
client_printc(id, "!gCSModders : Ozellik Alindi ");
engel3[id] = 1
}
case 2:{
set_user_health(id, get_user_health(id) + 150)
client_printc(id, "!gCSModders : Ozellik Alindi ");
engel3[id] = 1
}
case 3:{
set_user_gravity(id, 0.4)
client_printc(id, "!gCSModders : Ozellik Alindi ");
engel3[id] = 1
}
case 4:{
set_user_gravity(id, 0.5)
set_user_health(id, get_user_health(id) + 80)
client_printc(id, "!gCSModders : Ozellik Alindi ");
engel3[id] = 1
}
}
return PLUGIN_HANDLED
}
public ctadminmenu(id) {
new menu, Menuz[512]
formatex(Menuz, charsmax(Menuz), "DESTEK Menu")
menu = menu_create(Menuz, "OzelMenuHandler13s")
formatex(Menuz, charsmax(Menuz), "\yKampanya 1 Ay Adminlik 15 \wTL")
menu_additem(menu, Menuz, "1", 0)
formatex(Menuz, charsmax(Menuz), "\yServer Ismi \r[ \yCorveteu'S \r]")
menu_additem(menu, Menuz, "4", 0)
formatex(Menuz, charsmax(Menuz), "\ySlot Tagi \r[ \yCV \r]")
menu_additem(menu, Menuz, "5", 0)
formatex(Menuz, charsmax(Menuz), "\yServer IP : 95.173.173.xxx")
menu_additem(menu, Menuz, "6", 0)
formatex(Menuz, charsmax(Menuz), "\yTeam Speak 3 ' \wBaglan ^n\yCebindeki KD ' Miktari [ \r%i \y] ",para[id])
menu_additem(menu, Menuz, "3", 0)
formatex(Menuz, charsmax(Menuz), "\rCikis")
menu_setprop(menu,MPROP_EXITNAME,Menuz)
menu_setprop(menu,MPROP_EXIT, MEXIT_ALL)
menu_display(id, menu, 0)
return PLUGIN_HANDLED
}
public OzelMenuHandler13s(id, menu ,item) {
if(item == MENU_EXIT) {
menu_destroy(menu)
return PLUGIN_HANDLED
}
new data[6], iName[64], access, callback
menu_item_getinfo(menu,item,access,data,charsmax(data),iName,charsmax(iName),callback)
new key = str_to_num(data)
switch(key) {
case 1:{
client_printc(id, "!g[!nMawiLarq!g] !tKampanya 1 Ay Adminlik 15 TL");
}
case 2 :{
//
}
case 6 :{
client_printc(id, "!gServer ISMI : 95.173.173.xxx");
}
case 3:{
console_cmd(id,"say /ts3")
}
case 4:{
client_printc(id, "!g[!nMawiLarq!g] !tServer ISMİ [ Corveteu'S ]");
}
case 5:{
client_printc(id, "!g[!nMawiLarq!g] !tSlot Tagi [ CV ]");
}
case 10:{
//
}
}
return PLUGIN_HANDLED
}
public extramenu(id) {
new menu, Menuz[512]
formatex(Menuz, charsmax(Menuz), "\y[ \rCSModders.com \y]")
menu = menu_create(Menuz, "extramenux")
formatex(Menuz, charsmax(Menuz), "\y[\rCSM\y] \wKarektere Donusunce 1 Saniye Gorunmezlik \y[\r5 KD \y] ")
menu_additem(menu, Menuz, "1")
formatex(Menuz, charsmax(Menuz), "\y[\rCSM\y] \wBona Seti\y[\r7 KD \y]")
menu_additem(menu, Menuz, "6")
formatex(Menuz, charsmax(Menuz), "\y[\rCSM\y] \w100 HP\y[\r7 KD \y]")
menu_additem(menu, Menuz, "7")
formatex(Menuz, charsmax(Menuz), "\y[\rCSM\y] \w150 HP\y[\r8 KD \y]")
menu_additem(menu, Menuz, "8")
formatex(Menuz, charsmax(Menuz), "\y[\rCSM\y] \w200 HP\y[\r9 KD \y]")
menu_additem(menu, Menuz, "9")
formatex(Menuz, charsmax(Menuz), "\y[\rCSM\y] \wHizli Kosma \y[\r5 KD \y]")
menu_additem(menu, Menuz, "10")
formatex(Menuz, charsmax(Menuz), "\y[\rCSM\y] \wYuksek Ziplama \y[\r5 KD \y]")
menu_additem(menu, Menuz, "11")
formatex(Menuz, charsmax(Menuz), "\y[\rCSM\y] \wHizli Kosma + Yuksek Ziplama \y[\r8 KD \y]")
menu_additem(menu, Menuz, "12")
formatex(Menuz, charsmax(Menuz), "\y[\rCSM\y] \wRedbull \y[\r5 KD \y]")
menu_additem(menu, Menuz, "13")
formatex(Menuz, charsmax(Menuz), "\y[\rCSM\y] \wSessiz Yurume \y[\r5 KD \y]")
menu_additem(menu, Menuz, "14")
formatex(Menuz, charsmax(Menuz), "\y[\rCSM\y] \wFlash Benk \y[\r3 KD \y]")
menu_additem(menu, Menuz, "15")
formatex(Menuz, charsmax(Menuz), "\y[\rCSM\y] \wHE Grande \y[\r4 KD \y]")
menu_additem(menu, Menuz, "16")
formatex(Menuz, charsmax(Menuz), "\y[\rCSM\y] \wSis Bonbasi \y[\r3 KD \y]^n\yCebindeki KD ' Miktari [ \r%i \y]",para[id])
menu_additem(menu, Menuz, "17")
formatex(Menuz, charsmax(Menuz), "\y[\rCSM\y] \wCikis")
menu_setprop(menu,MPROP_EXITNAME,Menuz)
menu_display(id, menu, 0)
}
public goruneyimartik(id) {
fm_set_user_maxspeed(id, 240.0)
fm_set_rendering(id,_,0,0,0,_,0);
}
public extramenux(id, menu, item) {
if (item == MENU_EXIT)
{
menu_destroy(menu)
return PLUGIN_CONTINUE
}
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)
switch(key)
{
case 1:
{
if(para[id] >= 5){
gorunmezlik[id] = true
para[id] -= 5
}
else
{
client_printc(id, "!g[!nMawiLarq!g] !tYetersiz !g[ !tKD !g] . . ");
}
}
case 2:
{
if(para[id] >= 3){
silah[id] = 2
para[id] -= 3
}
else
{
client_printc(id, "!g[!nMawiLarq!g] !tYetersiz !g[ !tKD !g] . . ");
}
}
case 3:
{
if(para[id] >= 3){
silah[id] = 3
para[id] -= 3
}
else
{
client_printc(id, "!g[!nMawiLarq!g] !tYetersiz !g[ !tKD !g] . . ");
}
}
case 4:
{
if(para[id] >= 3){
silah[id] = 4
para[id] -= 3
}
else
{
client_printc(id, "!g[!nMawiLarq!g] !tYetersiz !g[ !tKD !g] . . ");
}
}
case 5:
{
if(para[id] >= 3){
silah[id] = 2
para[id] -= 3
}
else
{
client_printc(id, "!g[!nMawiLarq!g] !tYetersiz !g[ !tKD !g] . . ");
}
}
case 6:
{
if(para[id] >= 7){
give_item(id, "weapon_hegrenade")
give_item(id, "weapon_flashbang")
give_item(id, "weapon_smokegrenade")
para[id] -= 7
}
else
{
client_printc(id, "!g[!nMawiLarq!g] !tYetersiz !g[ !tKD !g] !tGereken KD !g( !t7 KD ' Dir !g) ");
}
}
case 7:
{
if(para[id] >= 7){
set_user_health(id, get_user_health(id) + 100)
para[id] -= 7
}
else
{
client_printc(id, "!g[!nMawiLarq!g] !tYetersiz !g[ !tKD !g] !tGereken KD !g( !t7 KD ' Dir !g) ");
}
}
case 8:
{
if(para[id] >= 8){
set_user_health(id, get_user_health(id) + 150)
para[id] -= 8
}
else
{
client_printc(id, "!g[!nMawiLarq!g] !tYetersiz !g[ !tKD !g] !tGereken KD !g( !t8 KD ' Dir !g) ");
}
}
case 9:
{
if(para[id] >= 9){
set_user_health(id, get_user_health(id) + 200)
para[id] -= 9
}
else
{
client_printc(id, "!g[!nMawiLarq!g] !tYetersiz !g[ !tKD !g] !tGereken KD !g( !t9 KD ' Dir !g) ");
}
}
case 10:
{
if(para[id] >= 5){
set_user_maxspeed(id,650.0)
para[id] -= 5
}
else
{
client_printc(id, "!g[!nMawiLarq!g] !tYetersiz !g[ !tKD !g] !tGereken KD !g( !t5 KD ' Dir !g) ");
}
}
case 11:
{
if(para[id] >= 5){
set_user_gravity(id,0.9)
para[id] -= 5
}
else
{
client_printc(id, "!g[!nMawiLarq!g] !tYetersiz !g[ !tKD !g] !tGereken KD !g( !t5 KD ' Dir !g) ");
}
}
case 12:
{
if(para[id] >= 8){
set_user_gravity(id,0.9)
set_user_maxspeed(id,650.0)
para[id] -= 8
}
else
{
client_printc(id, "!g[!nMawiLarq!g] !tYetersiz !g[ !tKD !g] !tGereken KD !g( !t8 KD ' Dir !g) ");
}
}
case 13:
{
if(para[id] >= 5){
set_user_gravity(id,0.9)
set_task(1.0,"plus_hp",id,"",0,"b")
set_task(10.0,"redbull_over",id)
set_user_maxspeed(id,650.0)
para[id] -= 5
}
else
{
client_printc(id, "!g[!nMawiLarq!g] !tYetersiz !g[ !tKD !g] !tGereken KD !g( !t5 KD ' Dir !g) ");
}
}
case 14:
{
if(para[id] >= 5){
set_user_footsteps(id, 1)
para[id] -= 5
}
else
{
client_printc(id, "!g[!nMawiLarq!g] !tYetersiz !g[ !tKD !g] !tGereken KD !g( !t5 KD ' Dir !g) ");
}
}
case 15:
{
if(para[id] >= 3){
give_item(id, "weapon_flashbang")
para[id] -= 3
}
else
{
client_printc(id, "!g[!nMawiLarq!g] !tYetersiz !g[ !tKD !g] !tGereken KD !g( !t3 KD ' Dir !g) ");
}
}
case 16:
{
if(para[id] >= 4){
give_item(id, "weapon_hegrenade")
para[id] -= 4
}
else
{
client_printc(id, "!g[!nMawiLarq!g] !tYetersiz !g[ !tKD !g] !tGereken KD !g( !t4 KD ' Dir !g) ");
}
}
case 17:
{
if(para[id] >= 3){
give_item(id, "weapon_smokegrenade")
para[id] -= 3
}
else
{
client_printc(id, "!g[!nMawiLarq!g] !tYetersiz !g[ !tKD !g] !tGereken KD !g( !t3 KD ' Dir !g) ");
}
}
case 555:
{
client_printc(id, "!g[!nMawiLarq!g] !tSecdin Ozellik Her El Sana Geliyor. ");
}
}
return PLUGIN_HANDLED
}
//Silah Alma
public silahal(id) {
new menu, Menuz[512]
formatex(Menuz, charsmax(Menuz), "\y[\rCSModders.com\y]")
menu = menu_create(Menuz, "silahala")
if(silah[id] == 1){
formatex(Menuz, charsmax(Menuz), "\y[\rCSM\y] \wBaslangic Seti \y[\rKusanildi\y]")
menu_additem(menu, Menuz, "555")
}
else
{
formatex(Menuz, charsmax(Menuz), "\y[\rCSM\y] \wBaslangic Seti \y[\rFree\y]")
menu_additem(menu, Menuz, "1")
}
if(silah[id] == 2){
formatex(Menuz, charsmax(Menuz), "\y[\rCSM\y] \wKeskin Nisanci Seti \y[\rKusanildi\y]")
menu_additem(menu, Menuz, "555")
}
else
{
formatex(Menuz, charsmax(Menuz), "\y[\rCSM\y] \wKeskin Nisanci Seti \y[\r3 KD\y]")
menu_additem(menu, Menuz, "2")
}
if(silah[id] == 3){
formatex(Menuz, charsmax(Menuz), "\y[\rCSM\y] \wSerefsiz PKK 'Modu \y[\rKusanildi\y]")
menu_additem(menu, Menuz, "555")
}
else
{
formatex(Menuz, charsmax(Menuz), "\y[\rCSM\y] \wSerefsiz PKK 'Modu \y[\r3 KD\y]")
menu_additem(menu, Menuz, "3")
}
if(silah[id] == 4){
formatex(Menuz, charsmax(Menuz), "\y[\rCSM\y] \wTürkiye Seti Agir \y[\rKusanildi\y]")
menu_additem(menu, Menuz, "555")
}
else
{
formatex(Menuz, charsmax(Menuz), "\y[\rCSM\y] \wTürkiye Seti Agir \y[\r3 KD\y]^n")
menu_additem(menu, Menuz, "4")
formatex(Menuz, charsmax(Menuz), "\y[\rCSM\y] \rHangi Sette Hangi Silah Var \w?^n\yCebindeki KD ' Miktari [ \r%i \y]",para[id])
menu_additem(menu, Menuz, "99")
}
formatex(Menuz, charsmax(Menuz), "\y[\rCSM\y] \wCikis")
menu_setprop(menu,MPROP_EXITNAME,Menuz)
menu_display(id, menu, 0)
}
public silahala(id, menu, item) {
if (item == MENU_EXIT)
{
menu_destroy(menu)
return PLUGIN_CONTINUE
}
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)
switch(key)
{
case 1:
{
silah[id] = 1
}
case 2:
{
if(para[id] >= 3){
silah[id] = 2
para[id] -= 3
}
else
{
client_printc(id, "!g[!nMawiLarq!g] !tYetersiz !g[ !tKD !g] !tGereken KD !g( !t3 KD ' Dir !g) ");
}
}
case 99:
{
cthpmarket(id)
}
case 3:
{
if(para[id] >= 3){
silah[id] = 3
para[id] -= 3
}
else
{
client_printc(id, "!g[!nMawiLarq!g] !tYetersiz !g[ !tKD !g] !tGereken KD !g( !t3 KD ' Dir !g) ");
}
}
case 4:
{
if(para[id] >= 3){
silah[id] = 4
para[id] -= 3
}
else
{
client_printc(id, "!g[!nMawiLarq!g] !tYetersiz !g[ !tKD !g] !tGereken KD !g( !t3 KD ' Dir !g) ");
}
}
case 555:
{
client_printc(id, "!g[!nMawiLarq!g] !tSecdiniz Silah Size Her El Geliyor.. ");
}
}
return PLUGIN_HANDLED
}
public cthpmarket(id) {
new menu, Menuz[512]
formatex(Menuz, charsmax(Menuz), "\yHangi Sette Hangi Silahlar Var ?")
menu = menu_create(Menuz, "OzelMenuHandler7")
formatex(Menuz, charsmax(Menuz), "\yBaslangic Seti \r: \wM4A1,Deagle,Scout")
menu_additem(menu, Menuz, "1", 0)
formatex(Menuz, charsmax(Menuz), "\yKeskin Nisanci Seti \r: \wAWP , Deagle")
menu_additem(menu, Menuz, "1",0)
formatex(Menuz, charsmax(Menuz), "\yPKK ' Seti \r: \wAK47 , Deagle")
menu_additem(menu, Menuz, "1",0)
formatex(Menuz, charsmax(Menuz), "\yTurkiye Seti \r: \wPonpali , Deagle")
menu_additem(menu, Menuz, "1",0)
formatex(Menuz, charsmax(Menuz), "\y[\rCSM\y] \wCikis")
menu_setprop(menu,MPROP_EXITNAME,Menuz)
menu_setprop(menu,MPROP_EXIT, MEXIT_ALL)
menu_display(id, menu, 0)
return PLUGIN_HANDLED
}
public OzelMenuHandler7(id, menu ,item) {
if(item == MENU_EXIT) {
menu_destroy(menu)
return PLUGIN_HANDLED
}
new data[6], iName[64], access, callback
menu_item_getinfo(menu,item,access,data,charsmax(data),iName,charsmax(iName),callback)
new key = str_to_num(data)
switch(key) {
case 1:{
silahal(id)
}
case 2:{
//
}
case 3:{
//
}
case 4:{
//
}
case 5:{
//
}
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}
//
public zombisatin(id) {
new menu, Menuz[512]
formatex(Menuz, charsmax(Menuz), "\y[\rCSModders.com\y] ")
menu = menu_create(Menuz, "sinif_menu")
if(zombinisec[id] == 1){
formatex(Menuz, charsmax(Menuz), "\y[\rCSM\y] \wKurt Adam \y[\rKusanildi\y]")
menu_additem(menu, Menuz, "555")
}
else
{
formatex(Menuz, charsmax(Menuz), "\y[\rCSM\y] \wKurt Adam \y[\rDengeli\y]")
menu_additem(menu, Menuz, "1")
}
if(zombinisec[id] == 2){
formatex(Menuz, charsmax(Menuz), "\y[\rCSM\y] \wNinja Kiz \y[\rKusanildi\y]")
menu_additem(menu, Menuz, "555")
}
else
{
formatex(Menuz, charsmax(Menuz), "\y[\rCSM\y] \wNinja Kiz \y[\rYuksek HIZ\y] \y[\r5 KD\y]")
menu_additem(menu, Menuz, "2")
}
if(zombinisec[id] == 3){
formatex(Menuz, charsmax(Menuz), "\y[\rCSM\y] \wZombi \y[\rKusanildi\y]")
menu_additem(menu, Menuz, "555")
}
else
{
formatex(Menuz, charsmax(Menuz), "\y[\rCSM\y] \wZombi \y[\rHP Yenileme + Gravity\y] \y[\r35 KD\y]")
menu_additem(menu, Menuz, "3")
}
if(zombinisec[id] == 4){
formatex(Menuz, charsmax(Menuz), "\y[\rCSM\y] \wBoga Adam \y[\rKusanildi\y]")
menu_additem(menu, Menuz, "555")
}
else
{
formatex(Menuz, charsmax(Menuz), "\y[\rCSM\y] \wBoga Adam \y[\rGelimis HP Yenileme + Gravity\y] \y[\r55 KD\y]^n\yCebindeki KD ' Miktari [ \r%i \y]",para[id])
menu_additem(menu, Menuz, "4")
}
formatex(Menuz, charsmax(Menuz), "\y[\rCSM\y] \wCikis")
menu_setprop(menu,MPROP_EXITNAME,Menuz)
menu_display(id, menu, 0)
}
public sinif_menu(id, menu, item) {
if (item == MENU_EXIT)
{
menu_destroy(menu)
return PLUGIN_CONTINUE
}
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)
switch(key)
{
case 1:
{
zombinisec[id] = 1
}
case 2:
{
if(para[id] >= 5){
zombinisec[id] = 2
para[id] -= 5
}
else
{
client_printc(id, "!g[!nMawiLarq!g] !tYetersiz !g[ !tKD !g] ");
}
}
case 3:
{
if(para[id] >= 35){
zombinisec[id] = 3
para[id] -= 35
}
else
{
client_printc(id, "!g[!nMawiLarq!g] !tYetersiz !g[ !tKD !g] ");
}
}
case 4:
{
if(para[id] >= 55){
zombinisec[id] = 4
para[id] -= 55
}
else
{
client_printc(id, "!g[!nMawiLarq!g] !tYetersiz !g[ !tKD !g] ");
}
}
case 555:
{
client_printc(id, "!g[!nMawiLarq!g] !tSecdin Karaktersin Be Gulum ");
}
}
return PLUGIN_HANDLED
}
/// Menu Bitti Hayirlisiyla kank //// *****
// Ayarlar///////////Başlıyorrrr/////////////////////////////////////////////////////////
public client_putinserver(id)
{
set_task(1.0, "paragoster", id, _, _, "b")
set_task(1.0, "kontrol", id, _, _, "b")
}
public paragoster(id)
{
if(1<=id<=32) {
set_hudmessage(0, 255, 255, -1.0, 0.70, 1, 1.0, 2.5)
ShowSyncHudMsg(id, syncObj,"[ ~ Cebindeki KD Miktari: %i ~ ]^nKullanim : /dbmenu^n[ CSModders.com Ailesi]", para[id])
}
}
public kapat(id){
set_user_rendering(id,kRenderFxGlowShell,0,0,0,kRenderNormal,25)
}
//////////**** Kontrol Burasi la Bot *********-->
public eCurWeapon(id){
if(get_user_weapon(id) == CSW_KNIFE) {
set_view(id,CAMERA_3RDPERSON)
zombiise[id] = true
if(get_user_team(id) == 2) {
set_task(0.4,"kapat",id)
ScreenFade(id, 3, { 0, 0, 255 }, 50);
set_user_rendering(id,kRenderFxGlowShell,0,0,255,kRenderNormal,25)
}
if(get_user_team(id) == 1) {
set_task(0.4,"kapat",id)
ScreenFade(id, 3, { 255, 0, 0 }, 50);
set_user_rendering(id,kRenderFxGlowShell,255,0,0,kRenderNormal,25)
}
if(zombinisec[id] == 1)
{
fm_set_user_maxspeed(id, Hiz)
cs_reset_user_model(id)
cs_set_user_model(id, "kurt" );
set_pev(id, pev_viewmodel2, "" );
set_pev(id, pev_weaponmodel2, "" );
}
if(zombinisec[id] == 2){
cs_reset_user_model(id)
fm_set_user_maxspeed(id, HizNinja)
cs_set_user_model(id, "japonkiz" );
set_pev(id, pev_viewmodel2, "" );
set_pev(id, pev_weaponmodel2, "" );
}
if(zombinisec[id] == 3){
cs_reset_user_model(id)
set_user_gravity(id,0.5)
cs_set_user_model(id, "zombi" );
set_pev(id, pev_viewmodel2, "" );
set_pev(id, pev_weaponmodel2, "" );
}
if(zombinisec[id] == 4){
cs_reset_user_model(id)
set_user_gravity(id,0.4)
cs_set_user_model(id, "bogaadam" );
set_pev(id, pev_viewmodel2, "" );
set_pev(id, pev_weaponmodel2, "" );
}
}
else
{
fm_set_user_maxspeed(id, HizKapat)
zombiise[id] = false
cs_reset_user_model(id)
set_view(id,CAMERA_NONE)
}
}
public plugin_modules()
{
require_module("engine")
}
public kontrol(id)
{
if(zombiise[id]){
if(zombinisec[id] == 1){
fm_set_user_maxspeed(id, Hiz)
if(is_user_alive(id) && get_user_armor(id) <= 100) {
set_user_armor(id,(get_user_armor(id) + 1))
}
if(is_user_alive(id) && get_user_armor(id) <= 50) {
set_user_armor(id,(get_user_armor(id) + 2))
}
if(is_user_alive(id) && get_user_armor(id) <= 25) {
set_user_armor(id,(get_user_armor(id) + 5))
}
}
if(zombinisec[id] == 2){
fm_set_user_maxspeed(id, HizNinja)
if(is_user_alive(id) && get_user_armor(id) <= 100) {
set_user_armor(id,(get_user_armor(id) + 1))
}
if(is_user_alive(id) && get_user_armor(id) <= 50) {
set_user_armor(id,(get_user_armor(id) + 2))
}
if(is_user_alive(id) && get_user_armor(id) <= 25) {
set_user_armor(id,(get_user_armor(id) + 5))
}
}
if(zombinisec[id] == 3){
set_user_gravity(id,0.5)
//fm_set_user_maxspeed(id, Hiz)
if(is_user_alive(id) && get_user_health(id) <= 109) {
set_user_health(id,(get_user_health(id) + 1))
}
if(is_user_alive(id) && get_user_armor(id) <= 150) {
set_user_armor(id,(get_user_armor(id) + 10))
}
if(is_user_alive(id) && get_user_armor(id) <= 50) {
set_user_armor(id,(get_user_armor(id) + 15))
}
if(is_user_alive(id) && get_user_armor(id) <= 25) {
set_user_armor(id,(get_user_armor(id) + 25))
}
}
if(zombinisec[id] == 4){
set_user_gravity(id,0.4)
if(is_user_alive(id) && get_user_health(id) <= 109) {
set_user_health(id,(get_user_health(id) + 5))
}
if(is_user_alive(id) && get_user_armor(id) <= 170) {
set_user_armor(id,(get_user_armor(id) + 15))
}
if(is_user_alive(id) && get_user_armor(id) <= 50) {
set_user_armor(id,(get_user_armor(id) + 25))
}
if(is_user_alive(id) && get_user_armor(id) <= 25) {
set_user_armor(id,(get_user_armor(id) + 30))
}
}
}
else
{
set_user_gravity(id,1.0)
fm_set_user_maxspeed(id, HizKapat)
}
}
/////////**************-->
public eDeath() {
new killer = read_data(1);
para[killer] += 1
}
stock Float:fm_get_user_maxspeed(index) {
new Float:speed;
pev(index, pev_maxspeed, speed);
return speed;
}
stock fm_set_user_maxspeed(index, Float:speed = -1.0) {
engfunc(EngFunc_SetClientMaxspeed, index, speed);
set_pev(index, pev_maxspeed, speed);
return 1;
}
stock ScreenFade(id, Timer, Colors[3], Alpha) {
message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("ScreenFade"), _, id);
write_short((1<<12) * Timer)
write_short(1<<12)
write_short(0)
write_byte(Colors[0])
write_byte(Colors[1])
write_byte(Colors[2])
write_byte(Alpha)
message_end()
}
public client_connect(id) {
zombinisec[id] = 1
silah[id] = 1
//gorunmezlik[id] = false
}
stock client_printc(const id, const input[], any:...) {
new count = 1, players[32];
static msg[191];
vformat(msg, 190, input, 3);
replace_all(msg, 190, "!n", "^x01"); // Default Renk(Sarı)
replace_all(msg, 190, "!g", "^x04"); // Yeşil Renk
replace_all(msg, 190, "!t", "^x03"); // Takım Renk( CT mavi , T kırmızı )
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();
}
}
}
}
stock fm_set_rendering(entity, fx = kRenderFxNone, r = 255, g = 255, b = 255, render = kRenderNormal, amount = 16) {
new Float:RenderColor[3];
RenderColor[0] = float(r);
RenderColor[1] = float(g);
RenderColor[2] = float(b);
set_pev(entity, pev_renderfx, fx);
set_pev(entity, pev_rendercolor, RenderColor);
set_pev(entity, pev_rendermode, render);
set_pev(entity, pev_renderamt, float(amount));
return 1;
}
///Ayarlar bitti amk