[Cerere Plugin] HP Spawn [Rezolvat]

Categoria cu cereri de pluginuri si nu numai.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

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
X-D3$[T]Ro!
Membru, skill 0
Membru, skill 0
Posts: 70
Joined: 13 Aug 2018, 19:19
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Detinator server CS: NU
Fond eXtream: 0
Has thanked: 4 times
Been thanked: 1 time
Contact:

22 Jun 2020, 05:10

Plugin Cerut: HP bonus la începutul rundei.
Descriere (adica ce face el mai exact): Când începi runda primesti un numar de hp mai mare, a un anumit flag
Serverul impune conditii strict HLDS/REHLDS?: reHLDS
Ai cautat pluginul?(daca da, precizeaza cum): Am cautat dar n-am gasit ce voiam, doar hp pe kill. Eu vreau la fiecare runda sa-i dea unui user cu un anumit flag hp bonus, adica sa inceapa runda cu un anumit hp si amura.
Necesita mod special?:Nu

PS: Eu am nevoie de acest plugin pentru modul furien pentru 3 grade
Diamond
Platina
Gold
- Adica diamond la fiecare runda sa inceapa cu 250 HP si 250 AP
- GOLD 200HP 200HP ați înțeles.
Flag-urile le pun eu

~Cu stimă şi respect celui ce ma ajuta. Mulțumesc~
As dori ca pluginul sa naiba log erori.
User avatar
WHOAMI?
Super moderator
Super moderator
Posts: 879
Joined: 17 Dec 2013, 19:51
Detinator Steam: Da
Reputatie: Super Moderator
Fost Membru Club eXtreamCS (o luna)
Location: New Orleans
Has thanked: 12 times
Been thanked: 8 times

22 Jun 2020, 18:30

X-D3$[T]Ro!
Membru, skill 0
Membru, skill 0
Posts: 70
Joined: 13 Aug 2018, 19:19
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Detinator server CS: NU
Fond eXtream: 0
Has thanked: 4 times
Been thanked: 1 time
Contact:

22 Jun 2020, 22:34

Majoritatea plugin-urile care le vreau eu din acel topic au erori :face_with_monocle:
P.S imi poti stabili acest plugin

Code: Select all

#include <amxmodx>
#include <fun>
#include <cstrike>
#include <hamsandwich>

#define PLUGIN "VIP Benefits"
#define VERSION "0.2"

enum e_Data 
{
	HP_SPAWN,
	AP_SPAWN
}

new g_szFlags[][] = {
	"abcdefghijklmnopqrst",		//Detinator
	"bcdefghijklmnopt",		//VIP DIAMOND
	"bcdefghijklmt",		//VIP GOLD
	"bcdefghijkt"			//VIP SILVER
}
new g_iBenefits[][e_Data] = {
/**	HP SPAWN	AP SPAWN	**/
	{200,		300},		//Detinator
	{175,		250},		//VIP DIAMOND
	{150,		200},		//VIP GOLD
	{125,		150}		//VIP SILVER
}
new g_iSizeof = sizeof(g_szFlags);
public plugin_init()
{
	register_plugin(PLUGIN, VERSION, "FaTzZu" );
	
	RegisterHam(Ham_Spawn, "player", "HamPlayerSpawn", 1);
}
public HamPlayerSpawn(id)
{
	if(!is_user_alive(id))
		return;
		
	for(new i;i<g_iSizeof;i++)
	{
		if(get_user_flags(id) == read_flags(g_szFlags))
		{
			set_user_health(id, g_iBenefits[HP_SPAWN])
			set_user_armor(id, g_iBenefits[AP_SPAWN])
			break;
		}
	}
}
De aceste erori
| Afiseaza codul
AMX Mod X Compiler 1.8.3-dev+5201
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2013 AMX Mod X Team

Error: Array dimensions do not match on line 42
Error: Argument type mismatch (argument 2) on line 44
Error: Argument type mismatch (argument 2) on line 45

3 Errors.
User avatar
robbencsgo
Membru, skill 0
Membru, skill 0
Posts: 47
Joined: 31 Aug 2019, 18:14
Detinator Steam: Da
CS Status: aimer
SteamID: an prevat
Fond eXtream: 0
Has thanked: 6 times
Been thanked: 5 times
Contact:

25 Jun 2020, 02:02

Code: Select all

#include <amxmodx>
#include <fun>
#include <cstrike>
#include <hamsandwich>

#define PLUGIN "VIP Benefits"
#define VERSION "0.2"

enum e_Data 
{
	HP_SPAWN,
	AP_SPAWN
}

new g_szFlags[] = {
	"abcdefghijklmnopqrst",		//Detinator
	"bcdefghijklmnopt",		//VIP DIAMOND
	"bcdefghijklmt",		//VIP GOLD
	"bcdefghijkt"			//VIP SILVER
}
new g_iBenefits[][e_Data] = {
/**	HP SPAWN	AP SPAWN	**/
	{200,		300},		//Detinator
	{175,		250},		//VIP DIAMOND
	{150,		200},		//VIP GOLD
	{125,		150}		//VIP SILVER
}
new g_iSizeof = sizeof(g_szFlags);

public plugin_init()
{
	register_plugin(PLUGIN, VERSION, "FaTzZu" );
	
	RegisterHam(Ham_Spawn, "player", "HamPlayerSpawn", 1);
}

public HamPlayerSpawn(id)
{
	if(!is_user_alive(id))
		return;
		
	for(new i;i<g_iSizeof;i++)
	{
		if(get_user_flags(id) == read_flags(g_szFlags))
		{
			set_user_health(id, g_iBenefits[i][HP_SPAWN])
			set_user_armor(id, g_iBenefits[i][AP_SPAWN])
			break;
		}
	}
}
Daca te-am ajutat, lasa si tu un +1
X-D3$[T]Ro!
Membru, skill 0
Membru, skill 0
Posts: 70
Joined: 13 Aug 2018, 19:19
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Detinator server CS: NU
Fond eXtream: 0
Has thanked: 4 times
Been thanked: 1 time
Contact:

25 Jun 2020, 05:09

robbencsgo wrote:
25 Jun 2020, 02:02

Code: Select all

#include <amxmodx>
#include <fun>
#include <cstrike>
#include <hamsandwich>

#define PLUGIN "VIP Benefits"
#define VERSION "0.2"

enum e_Data 
{
	HP_SPAWN,
	AP_SPAWN
}

new g_szFlags[] = {
	"abcdefghijklmnopqrst",		//Detinator
	"bcdefghijklmnopt",		//VIP DIAMOND
	"bcdefghijklmt",		//VIP GOLD
	"bcdefghijkt"			//VIP SILVER
}
new g_iBenefits[][e_Data] = {
/**	HP SPAWN	AP SPAWN	**/
	{200,		300},		//Detinator
	{175,		250},		//VIP DIAMOND
	{150,		200},		//VIP GOLD
	{125,		150}		//VIP SILVER
}
new g_iSizeof = sizeof(g_szFlags);

public plugin_init()
{
	register_plugin(PLUGIN, VERSION, "FaTzZu" );
	
	RegisterHam(Ham_Spawn, "player", "HamPlayerSpawn", 1);
}

public HamPlayerSpawn(id)
{
	if(!is_user_alive(id))
		return;
		
	for(new i;i<g_iSizeof;i++)
	{
		if(get_user_flags(id) == read_flags(g_szFlags))
		{
			set_user_health(id, g_iBenefits[i][HP_SPAWN])
			set_user_armor(id, g_iBenefits[i][AP_SPAWN])
			break;
		}
	}
}
Mulțumesc de ajutor, revin cu reply dacă merge bine.
User avatar
CyBer[N]eTicK
Membru, skill 0
Membru, skill 0
Posts: 18
Joined: 29 May 2020, 04:35
Detinator Steam: Da
CS Status: Citesc & Ajut
Detinator server CS: BB.BlackGames.Ro
SteamID: STEAM_0:1:427987588
Fond eXtream: 0
Location: România(Iaşi)
Has thanked: 2 times
Contact:

26 Jun 2020, 02:03

Merge perfect multumesc! rezolvat
User avatar
WHOAMI?
Super moderator
Super moderator
Posts: 879
Joined: 17 Dec 2013, 19:51
Detinator Steam: Da
Reputatie: Super Moderator
Fost Membru Club eXtreamCS (o luna)
Location: New Orleans
Has thanked: 12 times
Been thanked: 8 times

30 Jun 2020, 23:42

CyBer[N]eTicK wrote:
26 Jun 2020, 02:03
Merge perfect multumesc! rezolvat
Marcat ca Rezolvat.
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: Google [Bot] and 13 guests