Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
hiz plugini
#1
hız plugini verebilecek arkadaş varmi speedometer plugini yükleniyor başariyla ama çalışmıyor kodları felan
Meyhane Gaming JAILBREAK



Server IP : 95.173.173.112
TeamSpeak 3 IP : 77.223.159.211:2014
Skype : MeyhaneGaming
Face : www.fb.com/meyhaneserver
Group : https://www.facebook.com/groups/MeyhaneGaming/
Reply
#2
Code:
#include <amxmodx>
#include <fakemeta>

#define PLUGIN "Speedometer"
#define VERSION "1.2"
#define AUTHOR "AciD"

#define FREQ 0.1

new bool:plrSpeed[33]

new TaskEnt,SyncHud,showspeed,color, maxplayers, r, g, b

public plugin_init() {
    register_plugin(PLUGIN, VERSION, AUTHOR)
    register_cvar("AcidoX", "Speedometer 1.1", FCVAR_SERVER)
    register_forward(FM_Think, "Think")
    
    TaskEnt = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "info_target"))    
    set_pev(TaskEnt, pev_classname, "speedometer_think")
    set_pev(TaskEnt, pev_nextthink, get_gametime() + 1.01)
    
    register_clcmd("say /speed", "toogleSpeed")
    
    showspeed = register_cvar("showspeed", "1")
    color = register_cvar("speed_colors", "255 255 255")
    
    SyncHud = CreateHudSyncObj()
    
    maxplayers = get_maxplayers()
    
    new colors[16], red[4], green[4], blue[4]
    get_pcvar_string(color, colors, sizeof colors - 1)
    parse(colors, red, 3, green, 3, blue, 3)
    r = str_to_num(red)
    g = str_to_num(green)
    b = str_to_num(blue)
}

public Think(ent)
{
    if(ent == TaskEnt)
    {
        SpeedTask()
        set_pev(ent, pev_nextthink,  get_gametime() + FREQ)
    }
}

public client_putinserver(id)
{
    plrSpeed = showspeed > 0 ? true : false
}

public toogleSpeed(id)
{
    plrSpeed = plrSpeed ? false : true
    return PLUGIN_HANDLED
}

SpeedTask()
{
    static i, target
    static Float:velocity[3]
    static Float:speed, Float:speedh
    
    for(i=1; i<=maxplayers; i++)
    {
        if(!is_user_connected(i)) continue
        if(!plrSpeed) continue
        
        target = pev(i, pev_iuser1) == 4 ? pev(i, pev_iuser2) : i
        pev(target, pev_velocity, velocity)

        speed = vector_length(velocity)
        speedh = floatsqroot(floatpower(velocity[0], 2.0) + floatpower(velocity[1], 2.0))
        
        set_hudmessage(r, g, b, -1.0, 0.7, 0, 0.0, FREQ, 0.01, 0.0)
        ShowSyncHudMsg(i, SyncHud, "Metre/Sn %3.2f ^nHiz %3.2f", speed, speedh)
    }
}
Reply
#3
...
Reply
#4
Daha Sade ve iki çeşit Hız Plugini kardeşim inşallah istediğin gibi olmuştur.

01KirmiziSpeed isimli olan Kırmızı Renk Gösterir Hızınızı.
02SariSpeed isimli olan Sarı Renk Gösterir Hızınızı.




Attached Files
.amxx   01KirmiziSpeed.amxx (Size: 1.27 KB / Downloads: 53)
.sma   01KirmiziSpeed.sma (Size: 1.16 KB / Downloads: 41)
.amxx   02SariSpeed.amxx (Size: 1.27 KB / Downloads: 44)
.sma   02SariSpeed.sma (Size: 1.16 KB / Downloads: 45)
Saygılarla,
Burak Can Binici
Golden[HS] ~ Clan Servers.
Reply
#5
hız plugini derken ? redbullu mu kastediyorsun
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Auto-Connect Plugini adiosamigo 6 6,508 09-12-19, 08:31
Last Post: rezi072
  WebSiteBot plugini edit mahmutt159 21 10,577 09-12-17, 04:30
Last Post: exelds78
  Hook,grab,rope plugini ayar jackdalton06 13 9,493 09-12-17, 04:29
Last Post: exelds78
  [EDİT] Banka Plugini pandora158 9 12,130 09-12-17, 04:28
Last Post: exelds78
  Shop Plugini counter3 12 8,180 09-12-17, 04:26
Last Post: exelds78
  Nick Sifreleme Plugini xLdeJavu 10 6,290 09-12-17, 04:24
Last Post: exelds78
  Jailde jetpack plugini sallyreer 2 7,333 09-12-17, 04:24
Last Post: exelds78
  [JB] FastDownload Plugini -Csduragi Sorunu bunyo67900 5 6,656 09-12-17, 04:18
Last Post: exelds78
  Sabit Değişen Üst Reklam Plugini werr2 2 5,607 09-12-17, 04:17
Last Post: exelds78
  CT ler için paint plugini xLdeJavu 4 5,303 09-12-17, 04:16
Last Post: exelds78

Foruma Atla:


Users browsing this thread: 1 Guest(s)