Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CT ler için paint plugini
#1
Merhabalar kolay gelsin pluginci arkadaşlardan bizim bu bildigimiz paint plugini var mouse sag tik ile renkli çizgiler çıkarıyor o plugini sadece ct ler kullanabilecegi sekilde ayarlayıp atmalarını ıstıyebilir miyim?
CS 1.6 TR 1.Sİ DEATHRUN Server IP: | 95.173.172.7 |RsT # DEATHRUN - www.rstgaming.netServer IP: 95.173.172.7 & dr.rstgaming.netWeb: www.rstgaming.net
Reply
#2
guncelll
CS 1.6 TR 1.Sİ DEATHRUN Server IP: | 95.173.172.7 |RsT # DEATHRUN - www.rstgaming.netServer IP: 95.173.172.7 & dr.rstgaming.netWeb: www.rstgaming.net
Reply
#3
Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <xs>


#define PLUGIN "Paint"
#define VERSION "3.1"
#define AUTHOR "stupok69"


#define MAX_PLAYERS 32


new Float:origin[MAX_PLAYERS+1][3]
new prethink_counter[MAX_PLAYERS+1]
new bool:is_drawing[MAX_PLAYERS+1]
new bool:is_holding[MAX_PLAYERS+1]


new spriteid


public plugin_init() {
    register_plugin(PLUGIN, VERSION, AUTHOR)
    
    register_clcmd("+paint", "paint_devam")
    register_clcmd("-paint", "paint_devam")
    register_forward(FM_PlayerPreThink, "forward_FM_PlayerPreThink", 0)
}
public plugin_precache()
{
    spriteid = precache_model("sprites/lgtning.spr")
}
public paint_devam(id){
    if (get_user_team(id) == 2)  
    {
        static cmd[2]
        read_argv(0, cmd, 1)
        
        switch(cmd[0])
        {
            case '+': is_drawing = true
                case '-': is_drawing = false
            }
    }
    return PLUGIN_HANDLED
}
public forward_FM_PlayerPreThink(id)
{
    if(prethink_counter++ > 5)
    {
        if(is_drawing && !is_aiming_at_sky(id))
        {
            static Float:cur_origin[3], Float:distance
            
            cur_origin = origin
            
            if(!is_holding)
            {
                fm_get_aim_origin(id, origin)
                move_toward_client(id, origin)
                is_holding = true
                return FMRES_IGNORED
            }
            
            fm_get_aim_origin(id, origin)
            move_toward_client(id, origin)
            
            distance = get_distance_f(origin, cur_origin)
            
            if(distance > 2)
            {
                draw_line(origin, cur_origin)
            }
        }
        else
        {
            is_holding = false
        }
        prethink_counter = 0
    }
    
    return FMRES_IGNORED
}


stock draw_line(Float:origin1[3], Float:origin2[3])
{
    message_begin(MSG_BROADCAST,SVC_TEMPENTITY)
    write_byte(TE_BEAMPOINTS)
    engfunc(EngFunc_WriteCoord, origin1[0])
    engfunc(EngFunc_WriteCoord, origin1[1])
    engfunc(EngFunc_WriteCoord, origin1[2])
    engfunc(EngFunc_WriteCoord, origin2[0])
    engfunc(EngFunc_WriteCoord, origin2[1])
    engfunc(EngFunc_WriteCoord, origin2[2])
    write_short(spriteid)
    write_byte(0)
    write_byte(10)
    write_byte(255)
    write_byte(50)
    write_byte(0)
    write_byte(random(255))
    write_byte(random(255))
    write_byte(random(255))
    write_byte(255)
    write_byte(0)
    message_end()
}


stock fm_get_aim_origin(index, Float:origin[3])
{
    static Float:start[3], Float:view_ofs[3]
    pev(index, pev_origin, start)
    pev(index, pev_view_ofs, view_ofs)
    xs_vec_add(start, view_ofs, start)
    
    static Float:dest[3]
    pev(index, pev_v_angle, dest)
    engfunc(EngFunc_MakeVectors, dest)
    global_get(glb_v_forward, dest)
    xs_vec_mul_scalar(dest, 9999.0, dest)
    xs_vec_add(start, dest, dest)
    
    engfunc(EngFunc_TraceLine, start, dest, 0, index, 0)
    get_tr2(0, TR_vecEndPos, origin)
    
    return 1
}


stock move_toward_client(id, Float:origin[3])
{        
    static Float:player_origin[3]
    
    pev(id, pev_origin, player_origin)
    
    origin[0] += (player_origin[0] > origin[0]) ? 1.0 : -1.0
    origin[1] += (player_origin[1] > origin[1]) ? 1.0 : -1.0
    origin[2] += (player_origin[2] > origin[2]) ? 1.0 : -1.0
}
bool:is_aiming_at_sky(index)
{
new Float:origin[3];
fm_get_aim_origin(index, origin);


return engfunc(EngFunc_PointContents, origin) == CONTENTS_SKY;
}
Reply
#4
teşekkürler
Facebook.com/FreeDooM.ServeR - 185.182.188.13 - FreeDooM $ ClaN ServeR Cool
Reply
#5
yararlı bi konu teşekkürler
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Auto-Connect Plugini adiosamigo 6 6,501 09-12-19, 08:31
Last Post: rezi072
  Basebuilder için özel silahmenü mikail5529 0 8,176 02-08-19, 22:42
Last Post: mikail5529
  WebSiteBot plugini edit mahmutt159 21 10,551 09-12-17, 04:30
Last Post: exelds78
  Hook,grab,rope plugini ayar jackdalton06 13 9,476 09-12-17, 04:29
Last Post: exelds78
  [EDİT] Banka Plugini pandora158 9 12,119 09-12-17, 04:28
Last Post: exelds78
  Shop Plugini counter3 12 8,167 09-12-17, 04:26
Last Post: exelds78
  slotlara özel Paint likeb 1 4,425 09-12-17, 04:25
Last Post: exelds78
  Nick Sifreleme Plugini xLdeJavu 10 6,276 09-12-17, 04:24
Last Post: exelds78
  Jailde jetpack plugini sallyreer 2 7,330 09-12-17, 04:24
Last Post: exelds78
  [JB] FastDownload Plugini -Csduragi Sorunu bunyo67900 5 6,649 09-12-17, 04:18
Last Post: exelds78

Foruma Atla:


Users browsing this thread: