Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[İSTEK]Çevirme Bakarmısınız
#1
Beyler Bu plugin 25 kan altında olunca akıyor adam bu kodları verdi napıcam ?

Code:
#include <amxmod>

#define MAX_NAME_LENGTH 32
#define MAX_VAR_LENGTH 64
#define MAX_PLAYERS 32
#define MAX_TEXT_LENGTH 512
#define GORE_HEADSHOT         (1<<0) // "a"
#define GORE_BLEEDING         (1<<2) // "c"
#define TE_BLOODSPRITE        115
#define TE_BLOODSTREAM        101
#define TE_MODEL            106
#define TE_WORLDDECAL        116

new gHealthIndex[MAX_PLAYERS+1]
new spr_blood_drop
new spr_blood_spray
new iconstatus

public plugin_init()
{
       register_plugin("Plugin Gore","1.0","mike_cao&mut2nt")
       register_event("DeathMsg","event_death","a")
       register_event("ResetHUD","event_respawn","be","1=1")
       register_cvar("amx_gore","ac")
       iconstatus = get_user_msgid("StatusIcon");
       set_task(1.0,"event_blood",0,"",0,"b")
       return PLUGIN_CONTINUE
}

public event_death()
{
       new iFlags = get_gore_flags()
       new iOrigin[3]
       new sWeapon[MAX_NAME_LENGTH]
       new iVictim = read_data(2)
       new iHeadshot = read_data(3)

       read_data(4,sWeapon,MAX_NAME_LENGTH)

       if (iFlags&GORE_HEADSHOT && iHeadshot) {
           get_user_origin(iVictim,iOrigin)
           fx_headshot(iOrigin)
       }
}

public event_blood()
{
       new iFlags = get_gore_flags()
       if (iFlags&GORE_BLEEDING) {
           new iPlayer, iPlayers[MAX_PLAYERS], iNumPlayers, iOrigin[3]
           get_players(iPlayers,iNumPlayers,"a")
           for (new i = 0; i < iNumPlayers; i++) {
               iPlayer = iPlayers
               if (get_user_health(iPlayer) < 20) {
                   get_user_origin(iPlayer,iOrigin)
                   fx_bleed(iOrigin)
                   fx_blood_small(iOrigin,5)
                   displayicon(iPlayer)
               }
           }
       }
}

public event_respawn(id)
{
       gHealthIndex = get_user_health(id)
       return PLUGIN_CONTINUE
}

public get_gore_flags()
{
       new sFlags[24]
       get_cvar_string("amx_gore",sFlags,24)
       return read_flags(sFlags)
}

public fx_blood(origin[3])
{
           message_begin(MSG_BROADCAST,SVC_TEMPENTITY)
           write_byte(TE_BLOODSPRITE)
           write_coord(origin[0]+random_num(-20,20))
           write_coord(origin[1]+random_num(-20,20))
           write_coord(origin[2]+random_num(-20,20))
           write_short(spr_blood_spray)
           write_short(spr_blood_drop)
           write_byte(248) // color index
           write_byte(10) // size
           message_end()
}

public fx_bleed(origin[3])
{
       // Blood spray
       message_begin(MSG_BROADCAST,SVC_TEMPENTITY)
       write_byte(TE_BLOODSTREAM)
       write_coord(origin[0])
       write_coord(origin[1])
       write_coord(origin[2]+10)
       write_coord(random_num(-100,100)) // x
       write_coord(random_num(-100,100)) // y
       write_coord(random_num(-10,10)) // z
       write_byte(70) // color
       write_byte(random_num(50,100)) // speed
       message_end()
}

static fx_blood_small(origin[3],num)
{
       // Blood decals
       static const blood_small[7] = {190,191,192,193,194,195,197}

       // Small splash
       for (new j = 0; j < num; j++) {
           message_begin(MSG_BROADCAST,SVC_TEMPENTITY)
           write_byte(TE_WORLDDECAL)
           write_coord(origin[0]+random_num(-100,100))
           write_coord(origin[1]+random_num(-100,100))
           write_coord(origin[2]-36)
           write_byte(blood_small[random_num(0,6)]) // index
           message_end()
       }
}

public fx_headshot(origin[3])
{
       // Blood spray, 5 times
       for (new i = 0; i < 5; i++) {
           message_begin(MSG_BROADCAST,SVC_TEMPENTITY)
           write_byte(101)
           write_coord(origin[0])
           write_coord(origin[1])
           write_coord(origin[2]+30)
           write_coord(random_num(-20,20)) // x
           write_coord(random_num(-20,20)) // y
           write_coord(random_num(50,300)) // z
           write_byte(70) // color
           write_byte(random_num(100,200)) // speed
           message_end()
       }
}

public displayicon(iPlayer)
{
    message_begin(MSG_ONE,iconstatus,{0,0,0},iPlayer);
    write_byte(2);
    write_string("dmg_bio");
    write_byte(255);
    write_byte(50);
    write_byte(0);
    message_end()
}

public plugin_precache()
{
       spr_blood_drop = precache_model("sprites/blood.spr")
       spr_blood_spray = precache_model("sprites/bloodspray.spr")
}

Şimdiden Teşekkürler Bide Plugin Bozukmu Deilmi Bakarmısınız :$
Reply
#2
Buyrun


Attached Files
.amxx   buyrun.amxx (Size: 5.44 KB / Downloads: 48)
Reply
#3
saolasın kardeşim
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [İSTEK]Jb Verme Plugini (/mg) NorDan 8 12,917 03-09-17, 18:06
Last Post: tahayasin
  [ İSTEK ] Belirli Yetki Hariç 3 Raund Weapon Engel excellenT 15 6,336 21-07-17, 03:49
Last Post: SINCAPP
  [İSTEK] CT MAVi - T Kırmızı ışık yanan Plugin + Video Çektim ademcan36 9 10,458 26-04-17, 16:15
Last Post: h4m4s
  [ISTEK] Hızlı Dowload Link [ISTEK] TagaL 13 7,743 05-01-17, 01:30
Last Post: marvel1905
  Menu ve jbmenu istek hamhum 10 12,367 05-01-17, 01:30
Last Post: marvel1905
  İSTEK ! Sadece Ct de hook basabilmek playman01 17 7,521 28-08-16, 14:42
Last Post: QuarsS
  Acil Sorun istek hasanx9 6 3,988 03-08-16, 20:44
Last Post: murat1366
  SMA'yı AMXX'e Çevirme KeyLo 15 5,934 03-08-16, 20:37
Last Post: murat1366
  Plugin İstek CFG Tarzı erenstrkl 6 3,768 03-08-16, 20:31
Last Post: murat1366
  Reklamcılara karsi Acil İstek[Plugin] hasan0650 22 5,558 17-07-16, 18:03
Last Post: BYHAZARD7

Foruma Atla:


Users browsing this thread: 1 Guest(s)