⭐🚀 TkyNET | Blacklist ve Profesyonel DDoS Korumalı TeamSpeak 3 Sunucuları 🚀⭐
Sponsor Görsel
CS16AREA – CS 1.6’nın buluşma noktası! 🌍 Sunucuları keşfet, oyuncuları takip et, sıralamalarda yüksel ve rekabete katıl! 🔥
SponsorSponsor

Say'dan Süreli T Jetpack

Say'dan Süreli T Jetpack
say'dan /jetpackt yazarak süreli 5 saniye olarak t de jetpack almasını istiyorum 150 TL olarak tden alınmasını istiyorum bunun TL fiyatini ve süresini amx_komutuyla değiştirebilelim şeklinde yapabilir misiniz
.smajetpack.sma(Dosya Boyutu: 7,16 KB | İndirme Sayısı: 4)
.sprlightsmoke.spr(Dosya Boyutu: 10,99 KB | İndirme Sayısı: 3)
.sprrjet1.spr(Dosya Boyutu: 20,89 KB | İndirme Sayısı: 4)
.mdlp_jetpack.mdl(Dosya Boyutu: 453,63 KB | İndirme Sayısı: 6)
.mdlw_jetpack.mdl(Dosya Boyutu: 529,99 KB | İndirme Sayısı: 6)
RE: Say'dan Süreli T Jetpack
150 TL olabilmesi için jbmenüyüde atman gerek
MawiŞ*
RE: Say'dan Süreli T Jetpack
peki atıyorum
.smabonusmenulu.jbmenu.sma(Dosya Boyutu: 104,07 KB | İndirme Sayısı: 2)
RE: Say'dan Süreli T Jetpack
İlk önce jetpack kur sonra jbmenu kur isyan markete ekledim denersin olmazsa düzeltiriz.
.smabonusmenulu.jbmenu.sma(Dosya Boyutu: 104,55 KB | İndirme Sayısı: 0)
.smameyhanejetpack.sma(Dosya Boyutu: 6,91 KB | İndirme Sayısı: 0)
MawiŞ*
RE: Say'dan Süreli T Jetpack
@"MawiLarq" say komutuyla alabiliyoruz dimi jbmenu eklemeseydin keşke saydan olmuyor muydu
RE: Say'dan Süreli T Jetpack
(24-03-2020, 15:41)cheff Adlı Kullanıcıdan Alıntı: @"MawiLarq"  say komutuyla alabiliyoruz dimi jbmenu eklemeseydin keşke saydan olmuyor muydu

JBMenuye eklemiyimmi ?
MawiŞ*
RE: Say'dan Süreli T Jetpack
yok saydan alabilelim şekilde olsun, çünkü beğenmezler şikayet felan gelir birde onla uğraşmayayım
RE: Say'dan Süreli T Jetpack
Buyrun bize attığınız jbmenüyü istediğiniz gibi kullanın üstteki yorumda attığım jbmenüyü kullanmanıza gerek yok.

PHP Kod:
#include <amxmodx>
#include <cstrike>
#include <engine>
#include <hamsandwich>


native jb_get_user_packs(id)
native jb_set_user_packs(id, ammount)  

new const PLUGIN[]  = "Jetpack Lite";
new const 
VERSION[] = "1.0";
new const 
AUTHOR[]  = "CSA";

new const 
CVAR_JP_ACTIVE[] = "jp_active";
new const 
CVAR_JP_COST[]   = "jp_cost";
new const 
CVAR_JP_MAX[]    = "jp_max";
new const 
CVAR_JP_SPEED[]  = "jp_speed";
new const 
CVAR_JP_TRAIL[]  = "jp_trail";
new const 
CVAR_JP_DOD[]    = "jp_dropondeath";

new 
flame , smoke;
new 
bool:has_jp[33];
new 
bool:has_started;
new 
frame[33];
new 
current_jps;
new 
map[32];

public 
plugin_init() {
    
    
get_mapname(map,31);
    if((
containi(map,"jail") == -1) && (containi(map,"jb_") == -1) && (containi(map,"some1s_") == -1)) return 
    
    
register_plugin(PLUGIN , VERSION , AUTHOR);
    
    
register_clcmd("say /jetpack"  , "ClCmd_BuyJP");
    
register_clcmd("say /jet"  , "ClCmd_BuyJP");
    
register_clcmd("jetpack"       , "ClCmd_BuyJP");
    
register_clcmd("say /jp"   , "drop_jp");
    
register_clcmd("say /birak"   , "drop_jp");
    
    
register_clcmd("dropjp"        , "drop_jp");
    
//register_clcmd("amx_givejp"  , "ClCmd_GiveJP");
    
RegisterHam(Ham_Spawn, "player", "osmanli");
    
    
register_cvar(CVAR_JP_ACTIVE   , "1");
    
register_cvar(CVAR_JP_COST     , "0");
    
register_cvar(CVAR_JP_MAX      , "4");
    
register_cvar(CVAR_JP_SPEED    , "750");
    
register_cvar(CVAR_JP_TRAIL    , "1");
    
register_cvar(CVAR_JP_DOD      , "1");
    
    
register_event("DeathMsg" , "Event_DeathMsg" , "a");
    
register_event("HLTV" , "did_not_start" , "a" , "1=0" , "2=0");
    
    
register_logevent("did_start" , 2 , "1=Round_Start");
    
    
RegisterHam(Ham_Spawn, "player", "AdamDogunca")
    
    
register_touch("jetpack" , "player" , "mmm_touchy");
    
    
set_task(300.0 , "Advertise");
}
public 
osmanli(id)
{
    if(
jb_get_user_packs (id) >= 150)
    {
        if (
get_user_team(id) == 2 )
        {
            
color(id , "!t[!g Hakuna Matata !t] !tJetpacki Kapamak Icin Say /birak ' yazin");
            
jb_set_user_packs(id,jb_get_user_packs (id) - 150);
            
ClCmd_BuyJP(id)
        }
    }
    else{
        
color(id , "!t[!g Hakuna Matata !t] !tParan yetersiz");
    }
}
public 
AdamDogunca(id)
{
    
has_jp[id] = false;
}

public 
Advertise() {
    if(
get_cvar_num(CVAR_JP_ACTIVE)) {
    }
    
set_task(300.0 , "Advertise");
}

public 
did_not_start() {
    
has_started = false;
    new 
ent = -1;
    while((
ent = find_ent_by_class(ent , "jetpack")) != 0) {
        
remove_entity(ent);
    }
    
current_jps = 0;
    new 
aPlayers[32] , iNum , i;
    
get_players(aPlayers , iNum);
    for(
i = 1; i <= iNum; i++) {
        if(
has_jp[aPlayers[i]]) {
            
current_jps++;
        }
    }
}

public 
did_start() {
    
has_started = true;
}

public 
client_connect(id) {
    
has_jp[id] = false;
}

public 
client_disconnected(id) {
    
has_jp[id] = false;
}

public 
plugin_precache() {
    
smoke = precache_model("sprites/lightsmoke.spr");
    
flame = precache_model("sprites/rjet1.spr"); // bm1, rjet1, stmbal1, WXplo1, xsmoke1, lightsmoke
    
precache_model("models/p_jetpack.mdl");
    
precache_model("models/w_jetpack.mdl");
}

public 
client_PreThink(id) {
    if(!
get_cvar_num(CVAR_JP_ACTIVE)) {
        return 
PLUGIN_CONTINUE;
    }
    if(!
is_user_connected(id) || !is_user_alive(id)) {
        return 
PLUGIN_CONTINUE;
    }
    if(!(
get_user_button(id) & IN_JUMP && get_user_button(id) & IN_DUCK)) {
        return 
PLUGIN_CONTINUE;
    }
    if(!
has_started || !has_jp[id]) {
        return 
PLUGIN_CONTINUE;
    }
    new 
Float:fAim[3] , Float:fVelocity[3];
    
VelocityByAim(id , get_cvar_num(CVAR_JP_SPEED) , fAim);
    
    
fVelocity[0] = fAim[0];
    
fVelocity[1] = fAim[1];
    
fVelocity[2] = fAim[2];
    
    
set_user_velocity(id , fVelocity);
    
    
entity_set_int(id , EV_INT_gaitsequence , 6);
    
    if(
frame[id] >= 3) {
        
frame[id] = 0;
        if(
get_cvar_num(CVAR_JP_TRAIL)) {
            
smoke_effect(id);
        }
        
entity_set_string(id , EV_SZ_weaponmodel , "models/p_jetpack.mdl");
    }
    
frame[id]++;
    
    return 
PLUGIN_CONTINUE;
}

public 
smoke_effect(id) {
    new 
origin[3];
    
get_user_origin(id, origin, 0);
    
origin[2] = origin[2] - 10;
    
    
message_begin(MSG_BROADCAST, SVC_TEMPENTITY);
    
write_byte(17);
    
write_coord(origin[0]);
    
write_coord(origin[1]);
    
write_coord(origin[2]);
    
write_short((get_cvar_num(CVAR_JP_TRAIL) == 1) ? smoke : flame);
    
write_byte(10);
    
write_byte(115);
    
message_end();
}

public 
Event_DeathMsg() {
    if(
get_cvar_num(CVAR_JP_DOD)) 
    {
        
drop_jp(read_data(2));
    } 
    else
    {
        
has_jp[read_data(2)] = false;
    }
}

public 
ClCmd_BuyJP(id) {
    if(
get_user_team(id) != 2){
        
color(id , "!t[!g Hakuna Matata !t] !tBu Menu Sadece !gCT'lere !tOzeldir");

        return 
PLUGIN_HANDLED;
    }
    if(!
get_cvar_num(CVAR_JP_ACTIVE)) {
        
color(id ,"!t[!g Hakuna Matata !t] !tOzur Dileriz,Jetpack Aktif Degildir");
        return 
PLUGIN_HANDLED;
    }

    if(!
is_user_alive(id)) {
        
color(id ,"!t[!g Hakuna Matata !t] !tOluyken Jetpack Satin Alamazsin!");
        return 
PLUGIN_HANDLED;
    }

    if(
has_jp[id]) {
        
color(id ,"!t[!g Hakuna Matata !t] !tZaten Bir Jetpack'e Sahipsin!");
        return 
PLUGIN_HANDLED;

    }

    new 
iMoney = cs_get_user_money(id) - get_cvar_num(CVAR_JP_COST);

    if(
iMoney < 0) {
        
client_print(id , print_chat , "[ OsmanLi Jailbreak ] You do not have enough money for a jetpack! Cost: $%d" , get_cvar_num(CVAR_JP_COST));
        return 
PLUGIN_HANDLED;
    }

    
cs_set_user_money(id , iMoney , 1);

    
has_jp[id] = true;

    
color(id , "!t[!g Hakuna Matata !t] !tJetpack'i Kullanmak Icin !gCTRL+JUMP !tTuslarina Basarak Gitceginiz Tarafa Aim'i Dogrultun");
    
color(id , "!t[!g Hakuna Matata !t] !tJetpack'i Almak Icin Say'dan !t/jetpack Yaziniz");

    
emit_sound(id , CHAN_VOICE , "items/gunpickup2.wav" , 1.0 , ATTN_NORM , 0 , PITCH_NORM);

    
current_jps++;

    return 
PLUGIN_HANDLED;
}

public 
drop_jp(id) {
    if(!
has_jp[id]) return PLUGIN_HANDLED;

    new 
Float:fAim[3] , Float:fOrigin[3];
    
VelocityByAim(id , 64 , fAim);
    
entity_get_vector(id , EV_VEC_origin , fOrigin);

    
fOrigin[0] += fAim[0];
    
fOrigin[1] += fAim[1];

    new 
jp = create_entity("info_target");

    
entity_set_string(jp , EV_SZ_classname , "jetpack");
    
entity_set_model(jp , "models/w_jetpack.mdl");

    
entity_set_size(jp , Float:{-16.0,-16.0,-16.0} , Float:{16.0,16.0,16.0});

    
entity_set_int(jp , EV_INT_solid , 1);
    
entity_set_int(jp , EV_INT_movetype , 6);

    
entity_set_vector(jp , EV_VEC_origin , fOrigin);

    
has_jp[id] = false;

    return 
PLUGIN_HANDLED;
}

public 
mmm_touchy(jp , id) {
    if(!
is_user_alive(id)) return PLUGIN_CONTINUE;
    if(
has_jp[id]) return PLUGIN_CONTINUE;

    
has_jp[id] = true;

    
emit_sound(id , CHAN_VOICE , "items/gunpickup2.wav" , 1.0 , ATTN_NORM , 0 , PITCH_NORM);

    
remove_entity(jp);

    return 
PLUGIN_CONTINUE;
}
stock color( const id, const input[ ], any:... )
{
    new 
count = 1, players[ 32 ]

    static 
msg[ 191 ]
    
vformat( msg, 190, input, 3 )

    
replace_all( msg, 190, "!g", "^4" ) //- verde
    
replace_all( msg, 190, "!y", "^1" ) //- galben
    
replace_all( msg, 190, "!t", "^3" ) //- echipa
    
replace_all( msg, 190, "!n", "^0" ) //- normal
    
    
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\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1055\\ f0\\ fs16 \n\\ par }
*/ 
MawiŞ*
RE: Say'dan Süreli T Jetpack
Deniyorum teşekkürler
Say'dan Süreli T Jetpack
Konunuz "Çözülmüş İsteklere" taşınmıştır.
Linksta

Bir hesap oluşturun veya yorum yapmak için giriş yapın

Yorum yapmak için üye olmanız gerekiyor

ya da
Konuyu Okuyanlar: 1 Ziyaretçi