[Addon] Zombie no crosshair

Descarcari de pluginuri si discutii despre acestea.

Moderators: Moderatori ajutători, Scripteri TheXForce

Post Reply
User avatar
Rainq
Fost administrator
Fost administrator
Posts: 381
Joined: Mon Jan 18, 2021 7:25 am
Status: Citesc forumul TheXForce.RO...!
Detinator Steam: Da
SteamID: mrainq
Gaming experience: Nu spun..
Reputatie: Fost administrator
Nume anterior: Light
Fost detinator zm.thexforce.ro
Fost detinator dr.thexforce.ro
Location: Bucureşti
Has thanked: 2 times
Been thanked: 1 time
Contact:

[Addon] Zombie no crosshair

Post by Rainq »

Descriere: Dispare tinta la zombi

Descarcare:

Code: Select all

#include <amxmodx>
#include <zombieplague>

#define PLUGIN "Zombie_No_Crosshair"
#define VERSION "2.0"
#define AUTHOR "Sn!ff3r, By.KinG"

new HideWeapon, g_PCvar_NemesisAcik;

public plugin_init()
{
	register_plugin(PLUGIN, VERSION, AUTHOR);
	HideWeapon = get_user_msgid("HideWeapon");
	g_PCvar_NemesisAcik = register_cvar("NemesisCrossKaldir", "1");
}

public zp_user_infected_post(ID) 
{
	if(zp_get_user_zombie(ID)) HideWeaponCode(ID);
	else if(get_pcvar_num(g_PCvar_NemesisAcik) == 1 && zp_get_user_nemesis(ID)) HideWeaponCode(ID);
}

public HideWeaponCode(ID)
{
	message_begin(MSG_ONE_UNRELIABLE, HideWeapon, _, ID)
	write_byte(1<<6)
	message_end()
}

public zp_user_humanized_post(ID)
{
	message_begin(MSG_ONE_UNRELIABLE, HideWeapon, _, ID)
	write_byte(1<<7)
	message_end()
}
Nume: Zombie no crosshair
Versiune: 2.0
Link oficial: -

Instalare:
1. Fisierul zm_thexforce_no_crosshair.sma il puneti in addons/amxmodx/scripting
2. Fisierul zm_thexforce_no_crosshair.amxx il puneti in addons/amxmodx/plugins
3. Intrati in fisierul addons/amxmodx/configs/plugins.ini si adaugati la urma:

Code: Select all

zm_thexforce_no_crosshair.amxx
4. Alti pasi necesari....

Cvar-uri (se adauga in fisierul amxmodx\configs\amxx.cfg): -
NemesisCrossKaldir - 0/1 , daca dispare tinta la nemesis sau nu.
Imagini: -
Image
Post Reply

Return to “Pluginuri”