Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 70,858
» Latest member: omo-serviceSmuth
» Forum threads: 38,155
» Forum posts: 351,863

Full Statistics

Online Users
There are currently 1929 online users.
» 0 Member(s) | 1926 Guest(s)
Applebot, Baidu, Bing

Latest Threads
GOLDEN TIMES
Forum: Diskutime rreth eSportsKosova
Last Post: FidanSH
08-28-2026, 02:40 AM
» Replies: 0
» Views: 22
Multi-Account Browser Saf...
Forum: Qendrat e lojërave
Last Post: omo-serviceSmuth
08-26-2026, 06:30 PM
» Replies: 0
» Views: 35
2captcha analog: OMOCaptc...
Forum: Qendrat e lojërave
Last Post: omocaptchaSmuth
08-23-2026, 10:10 AM
» Replies: 0
» Views: 41
Негабаритные перевозки по...
Forum: Qendrat e lojërave
Last Post: SamiSix
08-23-2026, 09:26 AM
» Replies: 0
» Views: 45
A smarter way to preview ...
Forum: Qendrat e lojërave
Last Post: zjohndrk6666
08-20-2026, 07:19 PM
» Replies: 0
» Views: 56
how to break ReCaptcha v....
Forum: Gjuhë Angleze
Last Post: MaryAxork6174
08-15-2026, 01:06 AM
» Replies: 0
» Views: 50
A jena Live me postu !
Forum: Diskutime rreth eSportsKosova
Last Post: PIONERI
08-12-2026, 05:12 PM
» Replies: 0
» Views: 72
Ilir 'washere' Amati - AI...
Forum: CS - Config. (CFG)
Last Post: alking1
06-08-2026, 09:35 AM
» Replies: 1
» Views: 265
[Zombie Outstanding] +.Sm...
Forum: AMX - Addon's
Last Post: Learti Zm
06-07-2026, 01:46 PM
» Replies: 7
» Views: 683
Knife Addons @ 2016 New
Forum: AMX - Addon's
Last Post: Mr.Patr1k
06-07-2026, 09:49 AM
» Replies: 8
» Views: 694

 
  bloodah // by edge
Posted by: Stratzeh - 05-03-2023, 03:20 PM - Forum: Zbavitje - Replies (5)

Video e punuar nga Edge.
[youtube]http://www.youtube.com/watch?v=A97R93tvdtQ[/youtube]

Print this item

  Frontline Tactics
Posted by: PSYDARK - 05-03-2023, 02:25 PM - Forum: Lojërat për PC - Replies (1)

[Image: header_292x136.jpg?t=1354900696]

Quote:A modern take on the Tactical Turn-Based genre with cross-platform multiplayer over PC, Mac and Mobile iOS Devices! 2025 - A small splinter military group led by mad man; Akhali Muhamar threatens to take over the oil-rich nation of Fahrahn. The country is a large oil supplier to the Western world and national interests are threatened.

Screenshoots

[Image: ss_9f992b004ab192fccc357196db199aa3edcdb...1354900696]
[Image: ss_b92396df4b026ff74b845a2f421669b4e676c...1354900696]
[Image: ss_8a2e7701f52964b91746a14e32ef5270a06a3...1354900696]
[Image: ss_8b637d10a545f8b0f44ea8ca5a66e6a614619...1354900696]
[Image: ss_3132ad1a3b31f793e7c21ba87ab95be4adb9b...1354900696]

DOWNLOAD
[reklam][/reklam]http://store.steampowered.com/app/218310/


Ketu keni Video Tutorial si te hapni Account (llogari) ne STEAM
http://esportskosova.com/forum/viewtopic...03&t=46795

System Requirements

Minimum:

OS: Windows 7 / Vista / XP
Processor: 1 GHz
Memory: 1 GB RAM
Graphics: 256 MB of RAM
Hard Drive: 300 MB HD space


Video Trailer

[youtube]http://www.youtube.com/watch?v=7fIOgxIQycg[/youtube]

Print this item

  b2kTEAM;
Posted by: snappi2h - 05-03-2023, 10:44 AM - Forum: Info rreth ekipeve - Replies (21)

[Image: 1044749_592252027463204_772553820_n.jpg]

NEW LINE UP !
Arianit "snappi" Hyseni
Denis "ZeRo" Mehmeti
Mert "mERTQnn" Veli
Besart "KAWIJJ' " Asani
Jetmir "jetZi-" Veseli
Uran "f0rg0t" Doli
Clan Since 2009
facebook- www.facebook.com/b2ktm
youtube - www.youtube.com/b2kteaam

Player Info
Name: Arianit "snappi" Hyseni
Mosha: 17
Qyteti: (Mitrovicë)
Mouse: SteelSeries Sensei [RAW]
Mousepad: steelseries
Headset: Thjesht
Keyboard: x7
Config: ~ <!-- m --><a class="postlink" href="http://www.sk-gaming.com/member/snappi2h" onclick="window.open(this.href);return false;">http://www.sk-gaming.com/member/snappi2h</a><!-- m -->" onclick="window.open(this.href);return false;" onclick="window.open(this.href);return false;" onclick="window.open(this.href);return false;"
Facebook : <!-- m --><a class="postlink" href="http://www.facebook.com/arianitTBA" onclick="window.open(this.href);return false;">http://www.facebook.com/arianitTBA</a><!-- m -->" onclick="window.open(this.href);return false;" onclick="window.open(this.href);return false;" onclick="window.open(this.href);return false;"

~ per tjert playera i qes ma won !

Print this item

  Deathrun VIP
Posted by: ColdPlay - 05-03-2023, 09:11 AM - Forum: AMX - Plugin's - Replies (16)

Pershendetje

Ky Plugin Sherben Per Deathrun

VIP EXTRA Permban

Per CT

[Image: screenshot_45.png]


Per Terora

[Image: screenshot_46.png]


VIP Gjithashtu Ka veshje Speciale
Foto :

Perpara
[Image: screenshot_47.png]

Mbrapa

[Image: screenshot_48.png]

[info]Aksesi Per VIP eshte "t"[/info]
[info]Nese doni me pas vip 24 or ather shkoni te amxx.cfg e bone te default access qe osht z e boni "tz" edhe aktivizohet vip 24 or[/info]

[info]Modelsat i qoni tek models/player/[/info]
[kujdes]Plugini nuk punon pa models[/kujdes]

Download Plugin
Code:
http://www.mediafire.com/download/xi5ii606dlfur38/esk-vip.amxx

Download Models
Code:
http://www.mediafire.com/download/dp7twx3ukz54ayr/esk-vip.rar

Faleminderit

Print this item

  Si te heqim reklamat nga Skype ©
Posted by: -M- - 05-03-2023, 08:59 AM - Forum: PC - Tutoriale/Mesime - Replies (3)

Pershendetje, ne kete tutorial, do t'iu tregoj se si te heqim/fshijme reklamat/banner-at ne Skype.


Ne fillim shkojme Tools, pastaj Options.

[Image: zTYpBcI.png]

Me pas na duhet te gjejme Alert messages, duke shkuar tek Notifications.

[Image: 1bmN9SR.png]

Pasi gjejme edhe Alert Messages, aty shikojme qe Help and skype tips dhe Promotions jane te vendosura me grep (tick).

Por per te bllokuar reklamat tani më, na duhet t'ia heqim grepin (tick-un) te 2-jave.

Dhe se fundmi e ristartojme Skype, pra i japim Sign Out, logohemi serish, dhe nuk do t'iu shfaqen me reklamat.

Shpresoj te kem ndihmuar ndokend qe i nevojitej.

Quote:• Nese te pelqeu ky postim, ju lutem konsideroni te lini nje koment ose te shtypni butonin "Thanks".
- Faleminderit.

Print this item

  Shiko ikonen e armev.
Posted by: KIQ - 05-03-2023, 08:47 AM - Forum: AMX - Plugin's - Replies (5)

Ky plugins lejon qe ti shihni ikonat e ciles arm e keni ne dor

-SnapShot:
[Image: 2wprwpf.png][Image: 2py2amw.jpg][Image: mkx4i0.png]

Shkarko:
weapon_icon.rar

Qka permban ky plugins.
[spoiler]/**
* Changelog
*
* version 0.1
* - Intial Release
*
* version 0.2
* - Fixed intial blank display of status
* - Fixed on/off bug
* version 0.3
* - Added suggestion: Use else/if
* - Added suggestion: use get_players() instead of hardcoded 32
* - Added suggestion: Changed register_forward() to register_event("CurWeapon"...)
* - Added attempt to remove icon on death (remove_weapon_icon)
* version 0.4
* - Completley added get_players() (whoops :| )
* - Fixed crashing bug
* - 2nd related bug - crashed CS upon death FIXED
* - Finally posted some screenys Smile
* - Reverted icon_origin to a normal variable and set it to {0,0,0}
* version 0.5 (now == 5.0 KB! ha ha ha ha)
* - Added "is_user_ok()" function
* - Added "add_weapon_icon()" function
* - Added "remove_weapon_icon()" function
* - Changed use of direct manipulation of cvar "amx_show_weapon_icon" to use of a pcvar instead
* - Attempt at removal of icon upon player's death #2 (with combo of attempt 1)
* - No more fakemeta depedency! (for sure)
* version 0.5c
* - Removed add_weapon_icon() function, caused the icon to continue the stay after gun change and simply add the icon to the display
* - Modified color to a lighter green, request for a different color started
* version 0.6
* - Added color changing icon to represent how much ammo is left
* - Weapon icon now is removed upon death & replaced when user spawns (for sure)
* version 1.0 (Finally! w00t)
* - Approved it! AWESOME! Thanks Hawk552!
* - Change color back to green (sorry about the purple)
* - Added notes to file with possible ideas
*
*/

#include <amxmodx>

#define PLUGIN "Weapon Icon"
#define VERSION "1.0"
#define AUTHOR "Zenix (m$ubn)"

new iconstatus;
new user_icons[32][192];
new icon_origin[3] = {0,0,0}
new pcv_show;
new pcv_iloc;

public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)

register_event ("CurWeapon", "update_icon", "ab")
register_event("DeathMsg", "event_death", "a")
pcv_show = register_cvar("amx_show_weapon_icon", "1");
pcv_iloc = register_cvar("amx_show_weapon_icon_location", "1");
register_concmd("amx_weapon_icon", "weapon_icon_toggle", ADMIN_CVAR, "Toggle display of the weapon icon on/off (default on)")

check_icon_loc();
}

public update_icon(id) {
check_icon_loc();
if(!get_pcvar_num(pcv_show) || get_pcvar_num(pcv_iloc) == 0)
return PLUGIN_CONTINUE;

if(is_user_alive(id))
{
new iwpn, wclip, wammo, sprite[192], icon_color[3] = {0, 160, 0}

remove_weapon_icon(id)

iwpn = get_user_weapon(id, wclip, wammo)
switch(iwpn) {
case CSW_P228: sprite = "d_p228"
case CSW_SCOUT: sprite = "d_scout"
case CSW_HEGRENADE: sprite = "d_grenade"
case CSW_XM1014: sprite = "d_xm1014"
case CSW_C4: sprite = "d_c4"
case CSW_MAC10: sprite = "d_mac10"
case CSW_AUG: sprite = "d_aug"
case CSW_SMOKEGRENADE: sprite = "d_grenade"
case CSW_ELITE: sprite = "d_elite"
case CSW_FIVESEVEN: sprite = "d_fiveseven"
case CSW_UMP45: sprite = "d_ump45"
case CSW_SG550: sprite = "d_sg550"
case CSW_GALIL: sprite = "d_galil"
case CSW_FAMAS: sprite = "d_famas"
case CSW_USP: sprite = "d_usp"
case CSW_MP5NAVY: sprite = "d_mp5navy"
case CSW_M249: sprite = "d_m249"
case CSW_M3: sprite = "d_m3"
case CSW_M4A1: sprite = "d_m4a1"
case CSW_TMP: sprite = "d_tmp"
case CSW_G3SG1: sprite = "d_g3sg1"
case CSW_FLASHBANG: sprite = "d_flashbang"
case CSW_DEAGLE: sprite = "d_deagle"
case CSW_SG552: sprite = "d_sg552"
case CSW_AK47: sprite = "d_ak47"
case CSW_KNIFE: sprite = "d_knife"
case CSW_P90: sprite = "d_p90"
case CSW_VEST: sprite = "suit_full"
case CSW_VESTHELM: sprite = "suithelmet_full"
case CSW_GLOCK18: sprite = "d_glock18"
case CSW_AWP: sprite = "d_awp"
case 0: sprite = ""
default: sprite = ""
}
if (is_user_ok(id)) {
if (equali(sprite, "") || !is_user_ok(id)) {
remove_weapon_icon(id)
} else {
// draw the sprite itself (only on a human user's screen)
// marker ////////////////////////////////////////////////////////////////////////////////
message_begin(MSG_ONE,iconstatus,icon_origin,id);
write_byte(1); // status (0=hide, 1=show, 2=flash)
write_string(sprite); // sprite name

/*
4 stages - Normal, 1 Clip, No Clip + Some ammo, Completely Out

*/

// ammo check, this is for the color of the icon
get_user_ammo(id, iwpn, wammo, wclip) // update vars correctly
if (wclip == 0 && wammo == 0) icon_color = {0, 0, 255} // outta ammo!
if (wclip == wammo || wclip > wammo) icon_color = {255, 150, 150} // last clip!
if (wammo > 0 && wclip == 0) icon_color = {255, 100, 100} // almost out!
// attempt at percentage max clip & % red/green color
// 1: Get max ammo for weapon
//maxammo = maxclip(iwpn);


write_byte(icon_color[0]); // red
write_byte(icon_color[1]); // green
write_byte(icon_color[2]); // blue
message_end();
}
user_icons[id] = sprite;
}
}
return PLUGIN_CONTINUE
}

public weapon_icon_toggle(id) {
new toggle[32], players[32], num, player, status[32] = "enabled"
read_argv(1, toggle, 1)

if (equali(toggle, "1")) {
status = "enabled"
} else if (equali(toggle, "0")) {
status = "disabled"
} else if (equali(toggle, "")) {
console_print(id, "Usage: amx_weapon_icon <1/0> - Toggles wether or not showing the user's current weapon as an icon")
console_print(id, "Weapon Icon is currently %s", status)
return PLUGIN_HANDLED
}

set_cvar_string("amx_show_weapon_icon", toggle)
client_print(0, print_chat, "Weapon Icon is now %s", status)
get_players(players, num)
for (new i=0; i<num; i++) {
player = players[i]
if (!equali(user_icons[player], "") && !equali(players[i], "") && is_user_ok(id)) {
remove_weapon_icon(i)
}
}
return PLUGIN_CONTINUE
}

public remove_weapon_icon(id) {
if (is_user_ok(id)) {
message_begin(MSG_ONE,iconstatus,icon_origin,id);
write_byte(0);
write_string(user_icons[id]);
message_end();
}
}

public is_user_ok(id) {
// check if the user is "ok": they are connected, not a bot, and alive
if (is_user_connected(id) && !is_user_bot(id) && is_user_alive(id))
return true
return false
}

public event_death() {
new player = read_data(2) // the dead player's ID (1-32)
if (is_user_connected(player) && !is_user_bot(player)) { // remove icon
message_begin(MSG_ONE,iconstatus,icon_origin,player);
write_byte(0);
write_string(user_icons[player]);
message_end();
}
}

public check_icon_loc() {
if(!get_pcvar_num(pcv_iloc))
return PLUGIN_CONTINUE;
new value = get_pcvar_num(pcv_iloc);
if (value == 0)
iconstatus = 0;
if (value == 1)
iconstatus = get_user_msgid("StatusIcon");
if (value == 2)
iconstatus = get_user_msgid("Scenario");
return PLUGIN_CONTINUE;
}[/spoiler]

:mrgreen: :mrgreen:

Print this item

  Vetem AWP
Posted by: KIQ - 05-02-2023, 09:45 PM - Forum: AMX - Plugin's - Replies (2)

Me ket plugins te gjitha armet jeken dhe lihet veq awp (me 30 pluma)

Cvar:
mx_give_knife 1 / 0
amx_awponly_msg 1 / 0

onyawp.amxx e dergoni ne: addons > amxmodx > plugins
onyawp.sma e dergoni ne: addons > amxmodx > scripting

Only_awp.rar

Print this item

  FPS Menu
Posted by: KIQ - 05-02-2023, 09:23 PM - Forum: AMX - Plugin's - Replies (2)

Ky plugins mundesot ta zgjedh lojtari qfar fps pe don

Snapshot:
[Image: screenshot_65.jpg]

Komandat:
say: /fps
say_team: /fps

Link:

Code:
http://www.mediafire.com/download/0nl8ggddzdjbbla/FPS_MENU.rar.rar

Print this item

  [ZP5.0] Gamemode: Gravity Mode
Posted by: KIQ - 05-02-2023, 09:11 PM - Forum: AMX - Plugin's - Replies (1)

Ky osht ni gamemod/plugins shum funny per zm .
Kur osht ky gamemod krejt zombiet/humanat kercejn me ni gravitet qe deshironi ju.

Cvar:

Quote:- zpdam_gravity_chance "amount" [Chance (1 in X)] (Default: 35)
- zpdam_gravity_min_players "amount" [Minimum amount of players required] (Default: 2)
- zpdam_gravity_min_zombies "amount" [Minimum amount of zombies to have] (Default: 2)
- zpdam_gravity_ratio "amount" [Infect ratio (zombie count = ratio * player count)] (Default: 0.5)
- zpdam_gravity_show_hud "0 or 1" [Show gravity HUD notice] (Default: 1)
- zpdam_gravity_sounds "0 or 1" [Play gravity round sounds] (Default: 1)
- zpdam_gravity_allow_respawn "0 or 1" [Allow respawning on gravity rounds] (Default: 1)
- zpdam_gra_respawn_after_last_human "0 or 1" [Respawn players if only the last human is left] (Default: 1)
- zpdam_gravity_normal "amount" [Value of the gravity normal] (Default: 800)
- zpdam_gravity_round "amount" [Value of the gravity round] (Default: 250)


zombiplague.ini e qitni ne addons > amxmodx > configs
zombieplague.cfg e qitni ne addons > amxmodx > configs
zombie_plague50.txt e qitni ne addons > amxmodx > data > lang

[legend=Shkarko:]zp50_gamemode_gravity.zip
zp50_gamemode_gravity.amxx[/legend]

Cka permban ky plugins:
[spoiler]#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>
#include <amx_settings_api>
#include <cs_teams_api>
#include <cs_ham_bots_api>
#include <zp50_gamemodes>
#include <zp50_deathmatch>

new const ZP_SETTINGS_FILE[] = "zombieplague.ini"

new const sound_gravity[][] = { "zombie_plague/zpdam_round_gravity.wav" }

#define SOUND_MAX_LENGTH 64

new Array:g_sound_gravity

#define HUD_EVENT_X -1.0
#define HUD_EVENT_Y 0.17
#define HUD_EVENT_R 200
#define HUD_EVENT_G 50
#define HUD_EVENT_B 0

new g_MaxPlayers
new g_HudSync

new cvar_gravity_chance, cvar_gravity_min_players, cvar_gravity_min_zombies
new cvar_gravity_ratio, cvar_gravity_show_hud, cvar_gravity_sounds
new cvar_gravity_allow_respawn, cvar_respawn_after_last_human
new cvar_gravity_server, cvar_gravity_normal, cvar_gravity_round

public plugin_precache()
{
register_plugin("[ZP] Game Mode: Gravity", "1.0", "Daminou")
zp_gamemodes_register("Gravity Mode")

g_HudSync = CreateHudSyncObj()

g_MaxPlayers = get_maxplayers()

cvar_gravity_chance = register_cvar("zpdam_gravity_chance", "35")
cvar_gravity_min_players = register_cvar("zpdam_gravity_min_players", "2")
cvar_gravity_min_zombies = register_cvar("zpdam_gravity_min_zombies", "2")
cvar_gravity_ratio = register_cvar("zpdam_gravity_ratio", "0.5")
cvar_gravity_show_hud = register_cvar("zpdam_gravity_show_hud", "1")
cvar_gravity_sounds = register_cvar("zpdam_gravity_sounds", "1")
cvar_gravity_allow_respawn = register_cvar("zpdam_gravity_allow_respawn", "1")
cvar_respawn_after_last_human = register_cvar("zpdam_gra_respawn_after_last_human", "1")
cvar_gravity_server = get_cvar_pointer("sv_gravity")
cvar_gravity_normal = register_cvar("zpdam_gravity_normal", "800")
cvar_gravity_round = register_cvar("zpdam_gravity_round", "250")

g_sound_gravity = ArrayCreate(SOUND_MAX_LENGTH, 1)

amx_load_setting_string_arr(ZP_SETTINGS_FILE, "Sounds", "ROUND GRAVITY", g_sound_gravity)

new index
if (ArraySize(g_sound_gravity) == 0)
{
for (index = 0; index < sizeof sound_gravity; index++)
ArrayPushString(g_sound_gravity, sound_gravity[index])

amx_save_setting_string_arr(ZP_SETTINGS_FILE, "Sounds", "ROUND GRAVITY", g_sound_gravity)
}

new sound[SOUND_MAX_LENGTH]
for (index = 0; index < ArraySize(g_sound_gravity); index++)
{
ArrayGetString(g_sound_gravity, index, sound, charsmax(sound))
if (equal(sound[strlen(sound)-4], ".mp3"))
{
format(sound, charsmax(sound), "sound/%s", sound)
precache_generic(sound)
}
else
precache_sound(sound)
}
}

public zp_fw_deathmatch_respawn_pre(id)
{
if (!get_pcvar_num(cvar_gravity_allow_respawn))
return PLUGIN_HANDLED;

if (!get_pcvar_num(cvar_respawn_after_last_human) && zp_core_get_human_count() == 1)
return PLUGIN_HANDLED;

return PLUGIN_CONTINUE;
}

public zp_fw_gamemodes_choose_pre(game_mode_id, skipchecks)
{
new alive_count = GetAliveCount()

new zombie_count = floatround(alive_count * get_pcvar_float(cvar_gravity_ratio), floatround_ceil)

if (!skipchecks)
{
if (random_num(1, get_pcvar_num(cvar_gravity_chance)) != 1)
return PLUGIN_HANDLED;

if (alive_count < get_pcvar_num(cvar_gravity_min_players))
return PLUGIN_HANDLED;

if (zombie_count < get_pcvar_num(cvar_gravity_min_zombies))
return PLUGIN_HANDLED;
}

if (zombie_count >= alive_count)
return PLUGIN_HANDLED;

return PLUGIN_CONTINUE;
}

public zp_fw_gamemodes_start()
{
new gravity_round = get_pcvar_num(cvar_gravity_round)
set_pcvar_num(cvar_gravity_server, gravity_round)
zp_gamemodes_set_allow_infect()

new iZombies, id, alive_count = GetAliveCount()
new iMaxZombies = floatround(alive_count * get_pcvar_float(cvar_gravity_ratio), floatround_ceil)

while (iZombies < iMaxZombies)
{
id = GetRandomAlive(random_num(1, alive_count))

if (!is_user_alive(id) || zp_core_is_zombie(id))
continue;

zp_core_infect(id, 0)
iZombies++
}

for (id = 1; id <= g_MaxPlayers; id++)
{
if (!is_user_alive(id) || zp_core_is_zombie(id))
continue;

cs_set_player_team(id, CS_TEAM_CT)
}

if (get_pcvar_num(cvar_gravity_sounds))
{
new sound[SOUND_MAX_LENGTH]
ArrayGetString(g_sound_gravity, random_num(0, ArraySize(g_sound_gravity) - 1), sound, charsmax(sound))
PlaySoundToClients(sound)
}

if (get_pcvar_num(cvar_gravity_show_hud))
{
set_hudmessage(HUD_EVENT_R, HUD_EVENT_G, HUD_EVENT_B, HUD_EVENT_X, HUD_EVENT_Y, 1, 0.0, 5.0, 1.0, 1.0, -1)
ShowSyncHudMsg(0, g_HudSync, "%L", LANG_PLAYER, "NOTICE_GRAVITY")
}
}

public zp_fw_gamemodes_end()
{
new gravity_normal = get_pcvar_num(cvar_gravity_normal)
set_pcvar_num(cvar_gravity_server, gravity_normal)
}

PlaySoundToClients(const sound[])
{
if (equal(sound[strlen(sound)-4], ".mp3"))
client_cmd(0, "mp3 play ^"sound/%s^"", sound)
else
client_cmd(0, "spk ^"%s^"", sound)
}

GetAliveCount()
{
new iAlive, id

for (id = 1; id <= g_MaxPlayers; id++)
{
if (is_user_alive(id))
iAlive++
}

return iAlive;
}

GetRandomAlive(target_index)
{
new iAlive, id

for (id = 1; id <= g_MaxPlayers; id++)
{
if (is_user_alive(id))
iAlive++

if (iAlive == target_index)
return id;
}

return -1;
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1036\\ f0\\ fs16 \n\\ par }
*/[/spoiler]

Print this item

  Golden xm1014 - [ZM ExtraItem]
Posted by: KIQ - 05-02-2023, 08:52 PM - Forum: AMX - Plugin's - No Replies

Ky eshte nje Golden xm1014 per extra item ne zombie

Cvar:

Quote:- zp_goldenxm_dmg_multiplier <5> - Demi nga plumat e Golden XM1014
- zp_goldenxm_gold_bullets <1|0> - Efekti i plumav te arit (golden)
- zp_goldenxm_custom_model <1|0> - Golden XM1014 Custom Model
- zp_goldenxm_unlimited_clip <1|0> - Golden XM1014 Pluma pa kufi

Snapshot:
[Image: attachment.php?attachmentid=81266&d=1296136019]
[Image: attachment.php?attachmentid=81267&d=1296136053]

[legend=Shkarko]Models_Golden_xm1014.zip
Golden_xm1014.amxx[/legend]


Cka permban ky plugins:
[spoiler]/*
[ZP] Extra Item: Golden XM1014
Team: Humans

Description: This plugin adds a new weapon for Human Teams.
Weapon Cost: 20

Features:
- This weapon do more damage
- This weapon has zoom
- Launch Lasers
- This weapon has unlimited bullets


Cvars:


- zp_goldenxm_dmg_multiplier <5> - Damage Multiplier for Golden XM1014
- zp_goldenxm_gold_bullets <1|0> - Golden bullets effect ?
- zp_goldenxm_custom_model <1|0> - Golden XM1014 Custom Model
- zp_goldenxm_unlimited_clip <1|0> - Golden XM1014 Unlimited Clip

*/



#include <amxmodx>
#include <engine> // Added by Shidla
#include <fakemeta>
#include <fun>
#include <hamsandwich>
#include <cstrike>
#include <zombieplague>

#define is_valid_player(%1) (1 <= %1 <= 32)
#define ENG_NULLENT -1 // Added by Shidla
#define EV_INT_WEAPONKEY EV_INT_impulse // Added by Shidla
#define GXM1014_WEAPONKEY 666 // Added by Shidla
new const g_GXM1014Ent[] = "weapon_xm1014"

new xm1014_V_MODEL[64] = "models/zombie_plague/v_golden_xm1014.mdl"
new xm1014_P_MODEL[64] = "models/zombie_plague/p_golden_xm1014.mdl"
new xm1014_W_MODEL[64] = "models/zombie_plague/w_golden_xm1014.mdl"

/* Pcvars */
new cvar_dmgmultiplier, cvar_goldbullets, cvar_custommodel, cvar_uclip

// Item ID
new g_itemid

new bool:g_Hasxm1014[33]

new g_hasZoom[ 33 ]
new bullets[ 33 ]

// Sprite
new m_spriteTexture
new SayText

const Wep_xm1014 = ((1<<CSW_XM1014))

public plugin_init()
{

/* CVARS */
cvar_dmgmultiplier = register_cvar("zp_goldenxm_dmg_multiplier", "5")
cvar_custommodel = register_cvar("zp_goldenxm_custom_model", "1")
cvar_goldbullets = register_cvar("zp_goldenxm_gold_bullets", "1")
cvar_uclip = register_cvar("zp_goldenxm_unlimited_clip", "1")

// Register The Plugin
register_plugin("[ZP] Extra: Golden XM1014", "1.1", "Wisam187 / Shidla")
register_cvar("Shidla", "[ZP] Golden XM1014 [w_ model added]", FCVAR_SERVER|FCVAR_SPONLY)
// Register Zombie Plague extra item
g_itemid = zp_register_extra_item("Golden XM1014", 20, ZP_TEAM_HUMAN)
// Death Msg
register_event("DeathMsg", "Death", "a")
// Weapon Pick Up
register_event("WeapPickup","checkModel","b","1=19")
// Current Weapon Event
register_event("CurWeapon","checkWeapon","be","1=1")
register_event("CurWeapon", "make_tracer", "be", "1=1", "3>0")
// Ham TakeDamage
RegisterHam(Ham_TakeDamage, "player", "fw_TakeDamage")
register_forward( FM_CmdStart, "fw_CmdStart" )
RegisterHam(Ham_Spawn, "player", "fwHamPlayerSpawnPost", 1)
RegisterHam(Ham_Item_AddToPlayer, g_GXM1014Ent, "fw_GXM1014AddToPlayer") // Added by Shidla
SayText = get_user_msgid("SayText")
register_dictionary("zp_xm1014_w_model.txt")

register_forward(FM_SetModel, "fw_SetModel") // Added by Shidla

}

public client_connect(id)
{
g_Hasxm1014[id] = false
}

public client_disconnect(id)
{
g_Hasxm1014[id] = false
}

public Death()
{
g_Hasxm1014[read_data(2)] = false
}

public fwHamPlayerSpawnPost(id)
{
g_Hasxm1014[id] = false
}

public plugin_precache()
{
precache_model(xm1014_V_MODEL)
precache_model(xm1014_P_MODEL)
precache_model(xm1014_W_MODEL)
m_spriteTexture = precache_model("sprites/dot.spr")
precache_sound("weapons/zoom.wav")
}

public zp_user_infected_post(id)
{
if (zp_get_user_zombie(id))
{
g_Hasxm1014[id] = false
}
}

public checkModel(id)
{
if ( zp_get_user_zombie(id) )
return PLUGIN_HANDLED

new szWeapID = read_data(2)

if ( szWeapID == CSW_XM1014 && g_Hasxm1014[id] == true && get_pcvar_num(cvar_custommodel) )
{
set_pev(id, pev_viewmodel2, xm1014_V_MODEL)
set_pev(id, pev_weaponmodel2, xm1014_P_MODEL)
}
return PLUGIN_HANDLED
}

public checkWeapon(id)
{
new plrClip, plrAmmo, plrWeap[32]
new plrWeapId

plrWeapId = get_user_weapon(id, plrClip , plrAmmo)

if (plrWeapId == CSW_XM1014 && g_Hasxm1014[id])
{
checkModel(id)
}
else
{
return PLUGIN_CONTINUE
}

if (plrClip == 0 && get_pcvar_num(cvar_uclip))
{
// If the user is out of ammo..
get_weaponname(plrWeapId, plrWeap, 31)
// Get the name of their weapon
give_item(id, plrWeap)
engclient_cmd(id, plrWeap)
engclient_cmd(id, plrWeap)
engclient_cmd(id, plrWeap)
}
return PLUGIN_HANDLED
}



public fw_TakeDamage(victim, inflictor, attacker, Float:damage)
{
if ( is_valid_player( attacker ) && get_user_weapon(attacker) == CSW_XM1014 && g_Hasxm1014[attacker] )
{
SetHamParamFloat(4, damage * get_pcvar_float( cvar_dmgmultiplier ) )
}
}

public fw_CmdStart( id, uc_handle, seed )
{
if( !is_user_alive( id ) )
return PLUGIN_HANDLED

if( ( get_uc( uc_handle, UC_Buttons ) & IN_ATTACK2 ) && !( pev( id, pev_oldbuttons ) & IN_ATTACK2 ) )
{
new szClip, szAmmo
new szWeapID = get_user_weapon( id, szClip, szAmmo )

if( szWeapID == CSW_XM1014 && g_Hasxm1014[id] == true && !g_hasZoom[id] == true)
{
g_hasZoom[id] = true
cs_set_user_zoom( id, CS_SET_AUGSG552_ZOOM, 0 )
emit_sound( id, CHAN_ITEM, "weapons/zoom.wav", 0.20, 2.40, 0, 100 )
}

else if ( szWeapID == CSW_XM1014 && g_Hasxm1014[id] == true && g_hasZoom[id])
{
g_hasZoom[ id ] = false
cs_set_user_zoom( id, CS_RESET_ZOOM, 0 )

}

}
return PLUGIN_HANDLED
}


public make_tracer(id)
{
if (get_pcvar_num(cvar_goldbullets))
{
new clip,ammo
new wpnid = get_user_weapon(id,clip,ammo)
new pteam[16]

get_user_team(id, pteam, 15)

if ((bullets[id] > clip) && (wpnid == CSW_XM1014) && g_Hasxm1014[id])
{
new vec1[3], vec2[3]
get_user_origin(id, vec1, 1) // origin; your camera point.
get_user_origin(id, vec2, 4) // termina; where your bullet goes (4 is cs-only)


//BEAMENTPOINTS
message_begin( MSG_BROADCAST,SVC_TEMPENTITY)
write_byte (0) //TE_BEAMENTPOINTS 0
write_coord(vec1[0])
write_coord(vec1[1])
write_coord(vec1[2])
write_coord(vec2[0])
write_coord(vec2[1])
write_coord(vec2[2])
write_short( m_spriteTexture )
write_byte(1) // framestart
write_byte(5) // framerate
write_byte(2) // life
write_byte(10) // width
write_byte(0) // noise
write_byte( 255 ) // r, g, b
write_byte( 215 ) // r, g, b
write_byte( 0 ) // r, g, b
write_byte(200) // brightness
write_byte(150) // speed
message_end()
}

bullets[id] = clip
}

}

public zp_extra_item_selected(player, itemid)
{
if ( itemid == g_itemid )
{
if ( user_has_weapon(player, CSW_XM1014) )
{
drop_prim(player)
}
give_item(player, "weapon_xm1014")
print_col_chat( player, "^4[ZP] ^1%L ^3[%L]", LANG_PLAYER, "BUY_XM1014", LANG_PLAYER, "GXM-1014")
g_Hasxm1014[player] = true;
}
}

// Added by Shidla
public fw_SetModel(entity, model[])
{
// Entity is not valid
if(!is_valid_ent(entity))
return FMRES_IGNORED;

// Entity model is not w_xm1014
if(!equal(model, "models/w_xm1014.mdl"))
return FMRES_IGNORED;

// Get classname
static szClassName[33]
entity_get_string(entity, EV_SZ_classname, szClassName, charsmax(szClassName))

// Not a Weapon box
if(!equal(szClassName, "weaponbox"))
return FMRES_IGNORED

// Some vars
static iOwner, iStoredGalilID

// Get owner
iOwner = entity_get_edict(entity, EV_ENT_owner)

// Get drop weapon index (galil) to use in fw_Galil_AddToPlayer forward
iStoredGalilID = find_ent_by_owner(ENG_NULLENT, "weapon_xm1014", entity)

// Entity classname is weaponbox, and galil has founded
if(g_Hasxm1014[iOwner] && is_valid_ent(iStoredGalilID))
{
// Setting weapon options
entity_set_int(iStoredGalilID, EV_INT_WEAPONKEY, GXM1014_WEAPONKEY)

// Reset user vars
g_Hasxm1014[iOwner] = false

// Set weaponbox new model
entity_set_model(entity, xm1014_W_MODEL)

return FMRES_SUPERCEDE
}

return FMRES_IGNORED
}

// Added by Shidla
public fw_GXM1014AddToPlayer (GXM1014, id)
{
// Make sure that this is M79
if( is_valid_ent(GXM1014) && is_user_connected(id) && entity_get_int(GXM1014, EV_INT_WEAPONKEY) == GXM1014_WEAPONKEY)
{
// Update
g_Hasxm1014[id] = true

// Reset weapon options
entity_set_int(GXM1014, EV_INT_WEAPONKEY, 0)

return HAM_HANDLED
}

return HAM_IGNORED
}

stock drop_prim(id)
{
new weapons[32], num
get_user_weapons(id, weapons, num)
for (new i = 0; i < num; i++) {
if (Wep_xm1014 & (1<<weapons[i]))
{
static wname[32]
get_weaponname(weapons[i], wname, sizeof wname - 1)
engclient_cmd(id, "drop", wname)
}
}
}

stock print_col_chat(const id, const input[], any:...)
{
new count = 1, players[32];
static msg[191];
vformat(msg, 190, input, 3);
replace_all(msg, 190, "!g", "^4"); // Green Color
replace_all(msg, 190, "!y", "^1"); // Default Color
replace_all(msg, 190, "!t", "^3"); // Team Color
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, SayText, _, players[i]);
write_byte(players[i]);
write_string(msg);
message_end();
}
}
}
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ fbidis\\ ansi\\ ansicpg1252\\ deff0{\\ fonttbl{\\ f0\\ fnil\\ fcharset0 Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ ltrpar\\ lang1034\\ f0\\ fs16 \n\\ par }
*/[/spoiler]

Print this item