Cerere plugin Info Player

Categoria cu cereri de pluginuri si nu numai.

Moderators: Moderatori ajutatori, Moderatori

Forum rules
Accesează link-ul pentru a putea vedea regulile forumului

Daca doriti sa vi se modifice un plugin, va rugam postati aici .
Post Reply
User avatar
Jucks
Membru, skill +3
Membru, skill +3
Posts: 1367
Joined: 20 May 2016, 15:28
Detinator Steam: Da
Fond eXtream: 0
Contact:

19 Sep 2018, 20:04

Daca se poate sa imi faceti si mie acest plugin la fel ca in imagine
https://imgur.com/a/e7gaQl8
Detinator : # Go.Tried.Ro #
User avatar
DevilBoy.eXe
Membru, skill +3
Membru, skill +3
Posts: 1193
Joined: 05 Jun 2016, 22:04
Detinator Steam: Da
Detinator server CS: GO/CSGO.WARED.RO
SteamID: DevilBoy_eXe
Reputatie: Fost moderator ajutator
Fond eXtream: -1
Location: beyond the time
Has thanked: 1 time
Been thanked: 1 time
Contact:

19 Sep 2018, 20:16

User avatar
Jucks
Membru, skill +3
Membru, skill +3
Posts: 1367
Joined: 20 May 2016, 15:28
Detinator Steam: Da
Fond eXtream: 0
Contact:

19 Sep 2018, 20:21

Nu prea imi place cum arata
Eu il vreau ca in imaginea aia , arata mai frumos cum e acolo decat de pe alied , poate are cineva plugin ul
Detinator : # Go.Tried.Ro #
User avatar
Laurentiu P.
Super moderator
Super moderator
Posts: 2093
Joined: 10 Jul 2013, 20:26
Detinator Steam: Da
CS Status: Activitate scazuta !
Detinator server CS: Da
SteamID: trust_ro
Reputatie: Moderator > Super moderator
Nume anterior: Do[N]e ;3
Fond eXtream: 1
Location: Constanta
Has thanked: 4 times
Been thanked: 3 times

19 Sep 2018, 21:43

| Afiseaza codul
#include 	<amxmodx>
#include 	<fakemeta>

#define 	PLUGIN 					"AIM INFO" //Extracted from FURIEN DIAVOLA V2.0
#define 	VERSION					"2.0"
#define		AUTHOR					"Askhanar/DaNNe."


#define 	TEAM_FURIEN				1
#define 	TEAM_ANTIFURIEN			2

new 		cvar_aim_info, 			HUDEVENT;

public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR)
	
	cvar_aim_info			=		register_cvar("furien_aiminfo",		"1");
	
	HUDEVENT 				=		CreateHudSyncObj();
	
	register_forward(FM_PlayerPreThink, 			"FWD_PreThink");
	
}

public FWD_PreThink(id) {
	if(is_user_connected(id) && is_user_alive(id)) {
		if(get_pcvar_num(cvar_aim_info)) {
			new Target, Body;
			get_user_aiming(id, Target, Body);
			if(is_user_connected(Target) && is_user_alive(Target)) {
				new TargetTeam = get_user_team(Target),
				PlayerTeam = get_user_team(id), 
				TargetHealth = get_user_health(Target),
				TargetArmor = get_user_armor(Target), TargetName[32], Message[128], RED, GREEN, BLUE;
				get_user_name(Target, TargetName, 31)
				switch(TargetTeam) {
					case TEAM_FURIEN: {
						switch(PlayerTeam) {
							case TEAM_FURIEN: {
								formatex(Message, sizeof(Message)-1, "%s^nHP: %i | AP: %i", TargetName, TargetHealth, TargetArmor)
								RED = 200
								GREEN = 40 
								BLUE = 50 
							}
						}
					}
					case TEAM_ANTIFURIEN: {
						switch(PlayerTeam) {
							case TEAM_FURIEN: {
								formatex(Message, sizeof(Message)-1, "%s^nHP: %i | AP: %i", TargetName, TargetHealth, TargetArmor)
								RED = 40
								GREEN = 200
								BLUE = 70	
							}
							case TEAM_ANTIFURIEN: {
								formatex(Message, sizeof(Message)-1, "%s^nHP: %i | AP: %i", TargetName, TargetHealth, TargetArmor)
								RED = 20
								GREEN = 50 
								BLUE = 200 	
							}
						}
					}
				}
				set_hudmessage(RED, GREEN, BLUE, -1.0, -1.0, 2, 0.0, 0.1, 0.0, 0.0, -1);
				ShowSyncHudMsg(id, HUDEVENT, "%s", Message)
			}
		}	
	}
}
Nu stiu sigur daca e pozitionat pe centru dar in rest ar trebui sa mearga(teoretic :joy: ). TI-am scos din sursa faza cu VIP.

Am testat pluginul si functioneaza bine. Asigurate ca ai trecut in server.cfg setarea "mp_playerid 2"
Last edited by Laurentiu P. on 20 Sep 2018, 04:45, edited 2 times in total.
Reason: Edit wa
Image
Post Reply

Return to “Cereri”

  • Information