[ FURIEN ] VIP Benefits

Pluginuri facute de utilizatorii forumului eXtream.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

User avatar
WISHEXEC
Membru, skill +4
Membru, skill +4
Posts: 1667
Joined: 12 Nov 2011, 19:37
Detinator Steam: Da
CS Status: Freelancer AmxModX & SourceMod
Detinator server CS: ENIGMAPLAY.RO
SteamID: WISHEXEC
Reputatie: Fost Moderator ajutator
Nume anterior : ONEMDX
Location: România
Has thanked: 83 times
Been thanked: 84 times
Contact:

15 Mar 2018, 23:17

schimbati armura cu alt modul pentru ca asa nu ia damage
Zonek
PedoBearJB
Membru, skill +1
Membru, skill +1
Posts: 127
Joined: 10 Aug 2015, 15:09
Detinator Steam: Da
SteamID: PedoBearJB
Fond eXtream: 0
Location: Alexandria
Contact:

15 May 2019, 12:51

Salut da erorile astea:

Code: Select all

C:\Users\Razvan\Desktop\New Text Document.txt(297) : error 033: array must be indexed (variable "-unknown-")
C:\Users\Razvan\Desktop\New Text Document.txt(335) : error 035: argument type mismatch (argument 1)
C:\Users\Razvan\Desktop\New Text Document.txt(337) : error 035: argument type mismatch (argument 4)
C:\Users\Razvan\Desktop\New Text Document.txt(338) : error 035: argument type mismatch (argument 1)
la liniile urmatoare:

297 -> new x = iPlayers;
335 -> if(is_user_connected(iPlayers))
337 -> message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, iPlayers);
338 -> write_byte(iPlayers);
Filiq_
Utilizator neserios
Utilizator neserios
Posts: 692
Joined: 02 Nov 2014, 18:21
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Reputatie: Fost Scripter eXtreamCS
Utilizator neserios
Fond eXtream: 0
Location: Constanta
Has thanked: 25 times
Been thanked: 14 times

15 May 2019, 16:15

PedoBearJB wrote:
15 May 2019, 12:51
Salut da erorile astea:

Code: Select all

C:\Users\Razvan\Desktop\New Text Document.txt(297) : error 033: array must be indexed (variable "-unknown-")
C:\Users\Razvan\Desktop\New Text Document.txt(335) : error 035: argument type mismatch (argument 1)
C:\Users\Razvan\Desktop\New Text Document.txt(337) : error 035: argument type mismatch (argument 4)
C:\Users\Razvan\Desktop\New Text Document.txt(338) : error 035: argument type mismatch (argument 1)
la liniile urmatoare:

297 -> new x = iPlayers;
335 -> if(is_user_connected(iPlayers))
337 -> message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, iPlayers);
338 -> write_byte(iPlayers);
Tu nu te dadeai scripter?
CLUJ.LALEAGANE.RO / 89.40.104.209:27015

pluginuri-general/jailbreak-mod-t366552.html
User avatar
L E V I N
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 2966
Joined: 24 Aug 2011, 11:24
Detinator Steam: Da
CS Status:
Detinator server CS: ☯∴
SteamID: riseofevo
Reputatie: Scripter eXtreamCS
Nume anterior: Adryyy
Location: ҳ̸Ҳ̸ҳ
Has thanked: 39 times
Been thanked: 454 times
Contact:

16 May 2019, 17:20

Diversity wrote:
15 May 2019, 16:15
PedoBearJB wrote:
15 May 2019, 12:51
Salut da erorile astea:

Code: Select all

C:\Users\Razvan\Desktop\New Text Document.txt(297) : error 033: array must be indexed (variable "-unknown-")
C:\Users\Razvan\Desktop\New Text Document.txt(335) : error 035: argument type mismatch (argument 1)
C:\Users\Razvan\Desktop\New Text Document.txt(337) : error 035: argument type mismatch (argument 4)
C:\Users\Razvan\Desktop\New Text Document.txt(338) : error 035: argument type mismatch (argument 1)
la liniile urmatoare:

297 -> new x = iPlayers;
335 -> if(is_user_connected(iPlayers))
337 -> message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, iPlayers);
338 -> write_byte(iPlayers);
Tu nu te dadeai scripter?
lasă asta, da ce mai zice de faptu că și cere bani pentru suport/plugine :face_unequal_eyes:
Faceți cerere bine detaliată aici și respectând modelul dacă vreți ajutor. Nu-mi mai dați add doar pentru a mă avea în lista de prieteni.
Am cont și activez doar aici! Aveți grijă la cei ce încearcă să mă copieze..Puteți lua legătura cu mine dacă aveți o problemă/nelămurire în acest caz!
În cazul în care utilizați ceva din addonsurile postate de mine aici, e bine să fiți la curent cu modificările aduse unor plugine, aici, iar dacă sunt ceva probleme sau aveți dvs. probleme nu ezitați să luați legătura cu mine.
HOST CS1.6
whoo
Membru, skill 0
Membru, skill 0
Posts: 9
Joined: 22 Jan 2020, 00:45
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0

03 Feb 2020, 16:15

Foarte folositor.
AlexandruD
Membru, skill +1
Membru, skill +1
Posts: 242
Joined: 08 Jun 2015, 20:31
Detinator Steam: Da
Detinator server CS: FURIEN.WATF.RO
SteamID: Ghimpe # WATF.RO
Reputatie: Fost Moderator ajutator
Fond eXtream: 0
Been thanked: 1 time
Contact:

15 Feb 2020, 22:41

Code: Select all

/tmp/textwy5qWW.sma(219) : error 033: array must be indexed (variable "-unknown-")
/tmp/textwy5qWW.sma(252) : error 035: argument type mismatch (argument 1)

2 Errors.
Could not locate output file /home/groups/amxmodx/public_html/websc3/textwy5qWW.amx (compile failed).
Imi poate da cineva un cod pe care sa-l pot compila?
FURIEN.WATF.RO

Va astept aici
User avatar
L E V I N
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 2966
Joined: 24 Aug 2011, 11:24
Detinator Steam: Da
CS Status:
Detinator server CS: ☯∴
SteamID: riseofevo
Reputatie: Scripter eXtreamCS
Nume anterior: Adryyy
Location: ҳ̸Ҳ̸ҳ
Has thanked: 39 times
Been thanked: 454 times
Contact:

16 Feb 2020, 00:30

Code: Select all

#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <fakemeta>
#include <fun>
#include <cstrike>
#include <hamsandwich>

#define PLUGIN "VIP Benefits"
#define VERSION "0.9"

//#define USING_CREDITS - Scoateti comentariile in caz ca vreti sa primiti credite per kill

// Aici va puneti nativele cum le aveti voi
#if defined USING_CREDITS
	native set_user_credits(id, ammount);
	native get_user_credits(id);
#endif

enum eData {
	Name[32],
	Flags,
	SpawnHP,
	SpawnAP,
	MoneyKill,
	HpKill, 
	ApKill,
	Jumps
}

new g_iJumpsNum[33], g_iMaxJumps[33];
new bool:g_bIsJumping[33];

new bool:g_bHaveBenefits[33];
new g_iBenefitsNum = 0;

new Array:g_aBenefits;
public plugin_init()
{
	register_plugin(PLUGIN, VERSION, "FaTzZu" );
	
	register_cvar("fr_benefits", VERSION, FCVAR_SERVER|FCVAR_SPONLY);
	
	g_aBenefits = ArrayCreate(eData);
	
	RegisterHam(Ham_Spawn, "player", "HamPlayerSpawn", 1);
	RegisterHam(Ham_Player_Jump, "player", "hamPlayerJump", 0)
	
	register_event("DeathMsg", "evDeathMsg", "a");
	
	register_clcmd("say /vips", "cmdShowBenefits");
	register_clcmd("say /beneficii", "cmdShowRankBenefits");
	
	set_task(120.0, "taskShowMessage", _, _, _, "b");
}
/* Plugin cfg */
public plugin_cfg()
{
	new szLineData[128], szName[32], szFlags[32], szSpawnHP[8], szSpawnAP[8], szMoneyPerKill[8], szHpPerKill[8], szApPerKill[8], szJumpsNum[8];
	new aData[eData]
	new szConfigsDir[128];
	get_configsdir(szConfigsDir, charsmax(szConfigsDir));
	add(szConfigsDir, charsmax(szConfigsDir), "/benefits.ini");
	
	if(!file_exists(szConfigsDir))
	{
		write_file(szConfigsDir, ";Numele flagului		Flagul			HP Spawn	AP Spawn	Money per kill		HP per Kill	Armor per Kill		Numar sarituri (1 = No multijump)");
		write_file(szConfigsDir, ";Exemplu:");
		write_file(szConfigsDir, ";^"VIP Diamond^"		^"bcdefghijkt^"		^"125^"		^"150^"		^"2000^"		^"25^"		^"50^"			^"2^"");
	}
	
	new f = fopen(szConfigsDir, "rt");
	if(!f)
		return;
	
	while(!feof(f))
	{
		fgets(f, szLineData, charsmax(szLineData));
		
		if(szLineData[0] == ';' || !szLineData[0]) 
			continue;
		
		parse(szLineData, szName, charsmax(szName), szFlags, charsmax(szFlags), szSpawnHP, charsmax(szSpawnHP), szSpawnAP, charsmax(szSpawnAP), szMoneyPerKill, charsmax(szMoneyPerKill), szHpPerKill, charsmax(szHpPerKill), szApPerKill, charsmax(szApPerKill), szJumpsNum, charsmax(szJumpsNum));
		
		copy(aData[Name], charsmax(aData[Name]), szName);
		aData[Flags] = read_flags(szFlags);
		aData[SpawnHP] = str_to_num(szSpawnHP);
		aData[SpawnAP] = str_to_num(szSpawnAP);
		aData[MoneyKill] = str_to_num(szMoneyPerKill);
		aData[HpKill] = str_to_num(szHpPerKill);
		aData[ApKill] = str_to_num(szApPerKill);
		
		if(!str_to_num(szJumpsNum))
			aData[Jumps] = 1;
		else
			aData[Jumps] = str_to_num(szJumpsNum);
		
		ArrayPushArray(g_aBenefits, aData);
		g_iBenefitsNum++;
	}
}
/* When client join to server */
public client_putinserver(id)
{
	new aData[eData];
	
	g_bHaveBenefits[id] = false;
	g_bIsJumping[id] = false;
	g_iJumpsNum[id] = 0;
	g_iMaxJumps[id] = 1; 
	
	for (new i; i < g_iBenefitsNum; i++)
	{
		ArrayGetArray(g_aBenefits, i, aData)
		
		if(get_user_flags(id) == aData[Flags])
		{
			g_bHaveBenefits[id] = true;
			g_iMaxJumps[id] = aData[Jumps];
			break;
		}
	}	
}
/* Player Spawn ( Hamsandwich ) */
public HamPlayerSpawn(id)
{
	if(!is_user_alive(id) || !g_bHaveBenefits[id])
		return;
	
	new aData[eData];
	
	for (new i; i < g_iBenefitsNum; i++)
	{
		ArrayGetArray(g_aBenefits, i, aData);
		
		if(get_user_flags(id) == aData[Flags])
		{
			if(aData[SpawnHP] > 0)
				set_user_health(id, aData[SpawnHP]);
			
			if(aData[SpawnAP] > 0)
				set_user_armor(id, aData[SpawnAP]);
			
			break;
		}
	}
}
/* Event Death */
public evDeathMsg( )
{
	new iKiller = read_data(1);
	new iVictim = read_data(2);
	
	if(iKiller == iVictim || !is_user_alive(iKiller) || !g_bHaveBenefits[iKiller])
		return;
	
	new aData[eData];
	
	for (new i; i < g_iBenefitsNum; i++)
	{
		ArrayGetArray(g_aBenefits, i, aData);
		
		if(get_user_flags(iKiller) == aData[Flags])
		{
			#if defined USING_CREDITS
				set_user_credits(iKiller, get_user_credits(iKiller) + aData[MoneyKill]);
			#else
				cs_set_user_money(iKiller, cs_get_user_money(iKiller) + aData[MoneyKill]);
			#endif
			
			set_user_health(iKiller, get_user_health(iKiller) + aData[HpKill]);
			set_user_armor(iKiller, get_user_armor(iKiller) + aData[ApKill]);
			
			break;
		}
	}
}
/* Multijump - H.RED.ZONE Code */
public hamPlayerJump(id)
{
	if(!is_user_alive(id)) 
	{
		return HAM_HANDLED;
	}
	
	if( pev( id, pev_flags ) & FL_WATERJUMP || pev(id, pev_waterlevel) >= 2 || !(get_pdata_int(id, 246) & IN_JUMP) )
	{
		return HAM_IGNORED
	}
	
	if(pev( id, pev_flags ) & FL_ONGROUND) 
	{
		g_iJumpsNum[ id ] = 0;
		return HAM_IGNORED
	}
	
	if( get_pdata_float(id, 251) < 500 && ++g_iJumpsNum[id] < g_iMaxJumps[id] ) 
	{
		new Float:fVelocity[ 3 ];
		pev( id, pev_velocity, fVelocity );
		fVelocity[ 2 ] = 268.328157;
		set_pev( id, pev_velocity, fVelocity );
		
		return HAM_HANDLED
	}
	
	return HAM_IGNORED	
}
/* Show Benefits Ranks */
public cmdShowRankBenefits(id)
{
	new menu, szText[40], aData[eData];
	menu = menu_create("\w[ \yFurien Benefits \w] \rVIP's Ranks", "benefitsMenuHandler");
	
	for (new i; i < g_iBenefitsNum; i++)
	{
		ArrayGetArray(g_aBenefits, i, aData);
		
		formatex(szText, charsmax(szText), "\y%s %s", aData[Name], get_user_flags(id) == aData[Flags] ? "\r*" : "");
		menu_additem(menu, szText);
	}
	
	menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);
	menu_display(id, menu, 0);
}
public benefitsMenuHandler(id, menu, item)
{
	if(item == MENU_EXIT)
	{
		menu_destroy(menu);
		return PLUGIN_HANDLED;
	}
	
	showDetailsMenu(id, item);
	
	menu_destroy(menu);
	return PLUGIN_HANDLED;	
}
/* Show Benefits Ranks Details  */
public showDetailsMenu(id, item)
{
	new menu, szText[64], aData[eData];
	ArrayGetArray(g_aBenefits, item, aData);
	
	formatex(szText, charsmax(szText), "\w[ \yFurien Benefits \w] \r%s", aData[Name]);
	menu = menu_create(szText, "detailsMenuHandler");
	
	formatex(szText, charsmax(szText), "\yHP Spawn: \r%d", aData[SpawnHP]);
	menu_additem(menu, szText);
	
	formatex(szText, charsmax(szText), "\yAP Spawn: \r%d", aData[SpawnAP]);
	menu_additem(menu, szText);
	
	#if defined USING_CREDITS
		formatex(szText, charsmax(szText), "\yMoney per kill: \r%d \r$", aData[MoneyKill]);
		menu_additem(menu, szText);
	#else
		formatex(szText, charsmax(szText), "\yCredits per kill: \r%d \r$", aData[MoneyKill]);
		menu_additem(menu, szText);	
	#endif
	
	formatex(szText, charsmax(szText), "\yHP per kill: \r%d", aData[HpKill]);
	menu_additem(menu, szText);
	
	formatex(szText, charsmax(szText), "\yAP per kill: \r%d", aData[ApKill]);
	menu_additem(menu, szText);
	
	if(aData[Jumps] > 1)
		formatex(szText, charsmax(szText), "\yMultijump: \rx%d", aData[Jumps]);
	else
		formatex(szText, charsmax(szText), "\yMultijump: \dNO");
	menu_additem(menu, szText);	
	
	menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);
	menu_display(id, menu, 0);
}
public detailsMenuHandler(id, menu, item)
{
	if(item == MENU_EXIT)
	{
		cmdShowRankBenefits(id)
		return PLUGIN_HANDLED;
	}
	
	menu_destroy(menu);
	return PLUGIN_HANDLED;	
}
/* Show users with benefits */
public cmdShowBenefits(id)
{
	new iPlayers[32], iNum, szMessage[128], contor;
	get_players(iPlayers, iNum);
	
	formatex(szMessage, charsmax(szMessage), "!nBenefits ON: ");
	for(new i;i<iNum;i++)
	{
		new x = iPlayers[i];
		if(g_bHaveBenefits[x]) 
		{
			new szName[32], szMsg[128];
			get_user_name(x, szName, charsmax(szName));
			formatex(szMsg, charsmax(szMsg), "!g%s!n,", szName);
			add(szMessage, charsmax(szMessage), szMsg);
			contor++;
		}
	}
	if(contor)
	{
		szMessage[strlen(szMessage)-1] = '.';
		ColorChat(id, szMessage);
	}
	else ColorChat(id, "Nu sunt jucatori !gON !ncu !gbeneficii !npe server.");
}
/* V-as ruga sa pastrati mesajul :) */
public taskShowMessage()
{
	ColorChat(0, "!g[BENEFITS]!nAcest server utilizeaza !g%s !nversiunea !g%s !nby !gFaTzZu !n( !gKenWood !n) .", PLUGIN, VERSION)
}
/* Colorchat Stock */
stock ColorChat(const id,const input[], any:...) 
{
	new iNum = 1, iPlayers[32];
	static szMessage[191];
	vformat(szMessage, charsmax(szMessage),input, 3);
	
	replace_all(szMessage, charsmax(szMessage), "!g", "^4");
	replace_all(szMessage, charsmax(szMessage), "!n", "^1");
	replace_all(szMessage, charsmax(szMessage), "!t", "^3");
	
	if(id) iPlayers[0] = id
	else get_players(iPlayers, iNum, "ch");
	
	for(new i = 0; i < iNum; i++) 
	{
		if(is_user_connected(iPlayers[i]))
		{
			message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, iPlayers[i]);
			write_byte(iPlayers[i]);
			write_string(szMessage);
			message_end();
		}
	}
}
/* Plugin END */
public plugin_end()
{
	ArrayDestroy(g_aBenefits);
}
Faceți cerere bine detaliată aici și respectând modelul dacă vreți ajutor. Nu-mi mai dați add doar pentru a mă avea în lista de prieteni.
Am cont și activez doar aici! Aveți grijă la cei ce încearcă să mă copieze..Puteți lua legătura cu mine dacă aveți o problemă/nelămurire în acest caz!
În cazul în care utilizați ceva din addonsurile postate de mine aici, e bine să fiți la curent cu modificările aduse unor plugine, aici, iar dacă sunt ceva probleme sau aveți dvs. probleme nu ezitați să luați legătura cu mine.
HOST CS1.6
Post Reply

Return to “Pluginuri eXtream”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 11 guests