[rezolvat] Plugin Demo nr 2

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 .
Apella
Membru, skill +1
Membru, skill +1
Posts: 445
Joined: 17 Oct 2013, 20:56
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 10 times
Been thanked: 1 time
Contact:

15 Feb 2014, 20:23

Nickname:Apella
Numele pluginului cerut:demo
Descriere plugin cerut:Am nevoie de plugin la care sa aiba acces numai admini, cand scrii in say /demo apella sa se inregistreze demo, cand scrii /stopdemo sa se opreasca demo, iar cand dai /listademo sa arate ce oameni au demo pornit !! ms anticipat
Alte informatii:---

Spryte te rog termina tot sa dai T/C si daca dai scrie motivul :|
Last edited by YONTU on 17 Feb 2014, 14:24, edited 2 times in total.
Reason: La fiecare topic ti-am scris motiv :) Rezolvat!
RoyalServer
User avatar
RedForce
Fost moderator
Fost moderator
Posts: 1478
Joined: 17 Sep 2007, 18:20
Detinator Steam: Da
SteamID: redforcex
Reputatie: Fost moderator
Membru Club eXtreamCS (2 luni)
0.1/3
Location: Calea Moşilor, Bucureşti
Has thanked: 353 times
Been thanked: 135 times

16 Feb 2014, 08:36

vezi asta - http://www.extreamcs.com/forum/cereri-c ... 20377.html

Edit:
încearcă asta | Afiseaza codul
#include <amxmodx>
#include <amxmisc>
 
#pragma semicolon 1
 
#define PLUGIN "System"
#define VERSION "1.3"
#define AUTHOR "Allen"

new bool: g_bRecording[ 33 ];

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

	register_clcmd( "say",          "HandleSay" );
	register_clcmd( "say_team",     "HandleSay" );
	register_clcmd( "say /listademo",       "cmdList" );
}
 
public cmdList( id )
{
	new iPlayers[ 32 ], iNum, player;
	new szName[ 32 ];

	get_players( iPlayers, iNum, "ch" );


	for( new i = 0; i < iNum; i++ )
	{
		player = iPlayers[ i ];

		if( g_bRecording[ player ] )
		{
			get_user_name( player, szName, sizeof szName - 1 );
			client_print(id, print_chat, "[DEMO] Informatiile ti-au fost trimise. Verifica consola!");
			console_print(id, "=================================");
			console_print(id, "Lista inregistrari pornite:");                      
			console_print(id, "- %s", szName );
			console_print(id, "=================================");
			console_print(id, "Pentru mai multe detalii viziteaza http://mydomain.net.
		}
                       
		else
		{
			client_print(id, print_chat, "[DEMO] Nici o inregistrare pornita!");
		}
	}

	return PLUGIN_HANDLED;
}

public HandleSay( id )
{
	if( get_user_flags( id ) & ADMIN_KICK )
	{
		static szArgs[ 256 ], szTarget[ 32 ];

		read_args( szArgs, sizeof szArgs  - 1 );

		remove_quotes( szArgs );

		if( contain( szArgs, "/demo" ) != -1 )
		{
			copy( szTarget, sizeof szTarget - 1, szArgs[ 6 ] );
                       
			new player = cmd_target( id, szTarget, 3 );
 
			new mapname[32], time[32];

			if( player )
			{
				static szName[ 32 ];

				get_user_name( player, szName, sizeof szName  - 1 );

				get_mapname(mapname,31);

				get_time("%m-%d-%Y",time,31);

				client_cmd( player, "record ^"%s-%s-%s^"", szName, mapname, time );

				client_print(id, print_chat, "[DEMO] Infomatia ti-a fost trimisa. Verifica consola!");                                
				console_print( id, "Nume inregistrare: ^"%s-%s-%s^"", szName, mapname, time );

				g_bRecording[ player ] = true;
			}

			else
			{
				client_print(id, print_chat, "[DEMO] Jucatorul mentionat nu este conectat.");
			}

			return PLUGIN_HANDLED;
		}

		if( contain( szArgs, "/stopdemo" ) != -1 )
		{
			copy( szTarget, sizeof szTarget - 1, szArgs[ 10 ] );

			new player = cmd_target( id, szTarget, 3 );

			if( player )
			{
				if( g_bRecording[ player ] )
				{
					static szName[ 32 ];

					get_user_name( player, szName, sizeof szName  - 1 );

					client_cmd( player, "stop" );

					client_print(id, print_chat, "[DEMO] Infomatia ti-a fost trimisa. Verifica consola!");
					console_print( id, "Stopdemo: record ^"%s^"", szName );

					g_bRecording[ player ] = false;
				}

				else
				{
					client_print(id, print_chat, "[DEMO] Jucatorul mentionat nu are demo on.");
				}
			}

			else
			{
				client_print(id, print_chat, "[DEMO] Jucatorul mentionat nu este conectat.");
			}

			return PLUGIN_HANDLED;
		}
	}

	return PLUGIN_CONTINUE;
}
Apella
Membru, skill +1
Membru, skill +1
Posts: 445
Joined: 17 Oct 2013, 20:56
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 10 times
Been thanked: 1 time
Contact:

16 Feb 2014, 13:05

RedForce wrote:vezi asta - http://www.extreamcs.com/forum/cereri-c ... 20377.html

Edit:
încearcă asta | Afiseaza codul
#include <amxmodx>
#include <amxmisc>
 
#pragma semicolon 1
 
#define PLUGIN "System"
#define VERSION "1.3"
#define AUTHOR "Allen"

new bool: g_bRecording[ 33 ];

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

	register_clcmd( "say",          "HandleSay" );
	register_clcmd( "say_team",     "HandleSay" );
	register_clcmd( "say /listademo",       "cmdList" );
}
 
public cmdList( id )
{
	new iPlayers[ 32 ], iNum, player;
	new szName[ 32 ];

	get_players( iPlayers, iNum, "ch" );


	for( new i = 0; i < iNum; i++ )
	{
		player = iPlayers[ i ];

		if( g_bRecording[ player ] )
		{
			get_user_name( player, szName, sizeof szName - 1 );
			client_print(id, print_chat, "[DEMO] Informatiile ti-au fost trimise. Verifica consola!");
			console_print(id, "=================================");
			console_print(id, "Lista inregistrari pornite:");                      
			console_print(id, "- %s", szName );
			console_print(id, "=================================");
			console_print(id, "Pentru mai multe detalii viziteaza http://mydomain.net.
		}
                       
		else
		{
			client_print(id, print_chat, "[DEMO] Nici o inregistrare pornita!");
		}
	}

	return PLUGIN_HANDLED;
}

public HandleSay( id )
{
	if( get_user_flags( id ) & ADMIN_KICK )
	{
		static szArgs[ 256 ], szTarget[ 32 ];

		read_args( szArgs, sizeof szArgs  - 1 );

		remove_quotes( szArgs );

		if( contain( szArgs, "/demo" ) != -1 )
		{
			copy( szTarget, sizeof szTarget - 1, szArgs[ 6 ] );
                       
			new player = cmd_target( id, szTarget, 3 );
 
			new mapname[32], time[32];

			if( player )
			{
				static szName[ 32 ];

				get_user_name( player, szName, sizeof szName  - 1 );

				get_mapname(mapname,31);

				get_time("%m-%d-%Y",time,31);

				client_cmd( player, "record ^"%s-%s-%s^"", szName, mapname, time );

				client_print(id, print_chat, "[DEMO] Infomatia ti-a fost trimisa. Verifica consola!");                                
				console_print( id, "Nume inregistrare: ^"%s-%s-%s^"", szName, mapname, time );

				g_bRecording[ player ] = true;
			}

			else
			{
				client_print(id, print_chat, "[DEMO] Jucatorul mentionat nu este conectat.");
			}

			return PLUGIN_HANDLED;
		}

		if( contain( szArgs, "/stopdemo" ) != -1 )
		{
			copy( szTarget, sizeof szTarget - 1, szArgs[ 10 ] );

			new player = cmd_target( id, szTarget, 3 );

			if( player )
			{
				if( g_bRecording[ player ] )
				{
					static szName[ 32 ];

					get_user_name( player, szName, sizeof szName  - 1 );

					client_cmd( player, "stop" );

					client_print(id, print_chat, "[DEMO] Infomatia ti-a fost trimisa. Verifica consola!");
					console_print( id, "Stopdemo: record ^"%s^"", szName );

					g_bRecording[ player ] = false;
				}

				else
				{
					client_print(id, print_chat, "[DEMO] Jucatorul mentionat nu are demo on.");
				}
			}

			else
			{
				client_print(id, print_chat, "[DEMO] Jucatorul mentionat nu este conectat.");
			}

			return PLUGIN_HANDLED;
		}
	}

	return PLUGIN_CONTINUE;
}
Imi da erori forcE ( :

Image
User avatar
RedForce
Fost moderator
Fost moderator
Posts: 1478
Joined: 17 Sep 2007, 18:20
Detinator Steam: Da
SteamID: redforcex
Reputatie: Fost moderator
Membru Club eXtreamCS (2 luni)
0.1/3
Location: Calea Moşilor, Bucureşti
Has thanked: 353 times
Been thanked: 135 times

16 Feb 2014, 14:17

Apella wrote:
RedForce wrote:vezi asta - http://www.extreamcs.com/forum/cereri-c ... 20377.html

Edit:
încearcă asta | Afiseaza codul
#include <amxmodx>
#include <amxmisc>
 
#pragma semicolon 1
 
#define PLUGIN "System"
#define VERSION "1.3"
#define AUTHOR "Allen"

new bool: g_bRecording[ 33 ];

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

	register_clcmd( "say",          "HandleSay" );
	register_clcmd( "say_team",     "HandleSay" );
	register_clcmd( "say /listademo",       "cmdList" );
}
 
public cmdList( id )
{
	new iPlayers[ 32 ], iNum, player;
	new szName[ 32 ];

	get_players( iPlayers, iNum, "ch" );


	for( new i = 0; i < iNum; i++ )
	{
		player = iPlayers[ i ];

		if( g_bRecording[ player ] )
		{
			get_user_name( player, szName, sizeof szName - 1 );
			client_print(id, print_chat, "[DEMO] Informatiile ti-au fost trimise. Verifica consola!");
			console_print(id, "=================================");
			console_print(id, "Lista inregistrari pornite:");                      
			console_print(id, "- %s", szName );
			console_print(id, "=================================");
			console_print(id, "Pentru mai multe detalii viziteaza http://mydomain.net.
		}
                       
		else
		{
			client_print(id, print_chat, "[DEMO] Nici o inregistrare pornita!");
		}
	}

	return PLUGIN_HANDLED;
}

public HandleSay( id )
{
	if( get_user_flags( id ) & ADMIN_KICK )
	{
		static szArgs[ 256 ], szTarget[ 32 ];

		read_args( szArgs, sizeof szArgs  - 1 );

		remove_quotes( szArgs );

		if( contain( szArgs, "/demo" ) != -1 )
		{
			copy( szTarget, sizeof szTarget - 1, szArgs[ 6 ] );
                       
			new player = cmd_target( id, szTarget, 3 );
 
			new mapname[32], time[32];

			if( player )
			{
				static szName[ 32 ];

				get_user_name( player, szName, sizeof szName  - 1 );

				get_mapname(mapname,31);

				get_time("%m-%d-%Y",time,31);

				client_cmd( player, "record ^"%s-%s-%s^"", szName, mapname, time );

				client_print(id, print_chat, "[DEMO] Infomatia ti-a fost trimisa. Verifica consola!");                                
				console_print( id, "Nume inregistrare: ^"%s-%s-%s^"", szName, mapname, time );

				g_bRecording[ player ] = true;
			}

			else
			{
				client_print(id, print_chat, "[DEMO] Jucatorul mentionat nu este conectat.");
			}

			return PLUGIN_HANDLED;
		}

		if( contain( szArgs, "/stopdemo" ) != -1 )
		{
			copy( szTarget, sizeof szTarget - 1, szArgs[ 10 ] );

			new player = cmd_target( id, szTarget, 3 );

			if( player )
			{
				if( g_bRecording[ player ] )
				{
					static szName[ 32 ];

					get_user_name( player, szName, sizeof szName  - 1 );

					client_cmd( player, "stop" );

					client_print(id, print_chat, "[DEMO] Infomatia ti-a fost trimisa. Verifica consola!");
					console_print( id, "Stopdemo: record ^"%s^"", szName );

					g_bRecording[ player ] = false;
				}

				else
				{
					client_print(id, print_chat, "[DEMO] Jucatorul mentionat nu are demo on.");
				}
			}

			else
			{
				client_print(id, print_chat, "[DEMO] Jucatorul mentionat nu este conectat.");
			}

			return PLUGIN_HANDLED;
		}
	}

	return PLUGIN_CONTINUE;
}
Imi da erori forcE
Încearcă să îl compilezi aici!
Apella
Membru, skill +1
Membru, skill +1
Posts: 445
Joined: 17 Oct 2013, 20:56
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 10 times
Been thanked: 1 time
Contact:

16 Feb 2014, 14:42

RedForce wrote:
Apella wrote:
RedForce wrote:vezi asta - http://www.extreamcs.com/forum/cereri-c ... 20377.html

Edit:
încearcă asta | Afiseaza codul
#include <amxmodx>
#include <amxmisc>
 
#pragma semicolon 1
 
#define PLUGIN "System"
#define VERSION "1.3"
#define AUTHOR "Allen"

new bool: g_bRecording[ 33 ];

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

	register_clcmd( "say",          "HandleSay" );
	register_clcmd( "say_team",     "HandleSay" );
	register_clcmd( "say /listademo",       "cmdList" );
}
 
public cmdList( id )
{
	new iPlayers[ 32 ], iNum, player;
	new szName[ 32 ];

	get_players( iPlayers, iNum, "ch" );


	for( new i = 0; i < iNum; i++ )
	{
		player = iPlayers[ i ];

		if( g_bRecording[ player ] )
		{
			get_user_name( player, szName, sizeof szName - 1 );
			client_print(id, print_chat, "[DEMO] Informatiile ti-au fost trimise. Verifica consola!");
			console_print(id, "=================================");
			console_print(id, "Lista inregistrari pornite:");                      
			console_print(id, "- %s", szName );
			console_print(id, "=================================");
			console_print(id, "Pentru mai multe detalii viziteaza http://mydomain.net.
		}
                       
		else
		{
			client_print(id, print_chat, "[DEMO] Nici o inregistrare pornita!");
		}
	}

	return PLUGIN_HANDLED;
}

public HandleSay( id )
{
	if( get_user_flags( id ) & ADMIN_KICK )
	{
		static szArgs[ 256 ], szTarget[ 32 ];

		read_args( szArgs, sizeof szArgs  - 1 );

		remove_quotes( szArgs );

		if( contain( szArgs, "/demo" ) != -1 )
		{
			copy( szTarget, sizeof szTarget - 1, szArgs[ 6 ] );
                       
			new player = cmd_target( id, szTarget, 3 );
 
			new mapname[32], time[32];

			if( player )
			{
				static szName[ 32 ];

				get_user_name( player, szName, sizeof szName  - 1 );

				get_mapname(mapname,31);

				get_time("%m-%d-%Y",time,31);

				client_cmd( player, "record ^"%s-%s-%s^"", szName, mapname, time );

				client_print(id, print_chat, "[DEMO] Infomatia ti-a fost trimisa. Verifica consola!");                                
				console_print( id, "Nume inregistrare: ^"%s-%s-%s^"", szName, mapname, time );

				g_bRecording[ player ] = true;
			}

			else
			{
				client_print(id, print_chat, "[DEMO] Jucatorul mentionat nu este conectat.");
			}

			return PLUGIN_HANDLED;
		}

		if( contain( szArgs, "/stopdemo" ) != -1 )
		{
			copy( szTarget, sizeof szTarget - 1, szArgs[ 10 ] );

			new player = cmd_target( id, szTarget, 3 );

			if( player )
			{
				if( g_bRecording[ player ] )
				{
					static szName[ 32 ];

					get_user_name( player, szName, sizeof szName  - 1 );

					client_cmd( player, "stop" );

					client_print(id, print_chat, "[DEMO] Infomatia ti-a fost trimisa. Verifica consola!");
					console_print( id, "Stopdemo: record ^"%s^"", szName );

					g_bRecording[ player ] = false;
				}

				else
				{
					client_print(id, print_chat, "[DEMO] Jucatorul mentionat nu are demo on.");
				}
			}

			else
			{
				client_print(id, print_chat, "[DEMO] Jucatorul mentionat nu este conectat.");
			}

			return PLUGIN_HANDLED;
		}
	}

	return PLUGIN_CONTINUE;
}
Imi da erori forcE
Încearcă să îl compilezi aici!
tot asa eroare RED !! :

Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team
Modified for www.freakz.ro

demo.sma(41) : error 037: invalid string (possibly non-terminated string)

1 Error.
Compile failed!
User avatar
YONTU
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 2466
Joined: 10 May 2013, 14:25
Detinator Steam: Nu
CS Status: Everyone is looking at ur shoes
Reputatie: Moderator ajutator
Fost scripter eXtreamCS
Location: Gura Humorului
Has thanked: 256 times
Been thanked: 288 times
Contact:

16 Feb 2014, 14:53

| Afiseaza codul
#include <amxmodx>
#include <amxmisc>
 
#pragma semicolon 1
 
#define PLUGIN "System"
#define VERSION "1.3"
#define AUTHOR "Allen"

new bool: g_bRecording[ 33 ];

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

	register_clcmd( "say",          "HandleSay" );
	register_clcmd( "say_team",     "HandleSay" );
	register_clcmd( "say /listademo",       "cmdList" );
}
 
public cmdList( id )
{
	new iPlayers[ 32 ], iNum, player;
	new szName[ 32 ];

	get_players( iPlayers, iNum, "ch" );


	for( new i = 0; i < iNum; i++ )
	{
		player = iPlayers[ i ];

		if( g_bRecording[ player ] )
		{
			get_user_name( player, szName, sizeof szName - 1 );
			client_print(id, print_chat, "[DEMO] Informatiile ti-au fost trimise. Verifica consola!");
			console_print(id, "=================================");
			console_print(id, "Lista inregistrari pornite:");                      
			console_print(id, "- %s", szName );
			console_print(id, "=================================");
			console_print(id, "Pentru mai multe detalii viziteaza http://mydomain.net.
		}
                       
		else
		{
			client_print(id, print_chat, "[DEMO] Nici o inregistrare pornita!");
		}
	}

	return PLUGIN_HANDLED;
}

public HandleSay( id )
{
	if( get_user_flags( id ) & ADMIN_KICK )
	{
		static szArgs[ 256 ], szTarget[ 32 ];

		read_args( szArgs, sizeof szArgs  - 1 );

		remove_quotes( szArgs );

		if( contain( szArgs, "/demo" ) != -1 )
		{
			copy( szTarget, sizeof szTarget - 1, szArgs[ 6 ] );
                       
			new player = cmd_target( id, szTarget, 3 );
 
			new mapname[32], time[32];

			if( player )
			{
				static szName[ 32 ];

				get_user_name( player, szName, sizeof szName  - 1 );

				get_mapname(mapname,31);

				get_time("%m-%d-%Y",time,31);

				client_cmd( player, "record ^"%s-%s-%s^"", szName, mapname, time );

				client_print(id, print_chat, "[DEMO] Infomatia ti-a fost trimisa. Verifica consola!");                                
				console_print( id, "Nume inregistrare: ^"%s-%s-%s^"", szName, mapname, time );

				g_bRecording[ player ] = true;
			}

			else
			{
				client_print(id, print_chat, "[DEMO] Jucatorul mentionat nu este conectat.");
			}

			return PLUGIN_HANDLED;
		}

		if( contain( szArgs, "/stopdemo" ) != -1 )
		{
			copy( szTarget, sizeof szTarget - 1, szArgs[ 10 ] );

			new player = cmd_target( id, szTarget, 3 );

			if( player )
			{
				if( g_bRecording[ player ] )
				{
					static szName[ 32 ];

					get_user_name( player, szName, sizeof szName  - 1 );

					client_cmd( player, "stop" );

					client_print(id, print_chat, "[DEMO] Infomatia ti-a fost trimisa. Verifica consola!");
					console_print( id, "Stopdemo: record ^"%s^"", szName );

					g_bRecording[ player ] = false;
				}

				else
				{
					client_print(id, print_chat, "[DEMO] Jucatorul mentionat nu are demo on.");
				}
			}

			else
			{
				client_print(id, print_chat, "[DEMO] Jucatorul mentionat nu este conectat.");
			}

			return PLUGIN_HANDLED;
		}
	}

	return PLUGIN_CONTINUE;
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/
„Peste douăzeci de ani vei fi dezamăgit din cauza lucrurilor pe care nu le-ai făcut, nu din cauza celor pe care le-ai făcut.” - Mark Twain
„Asa e si in viata, hotii castiga, prostii care invata pierd.” - Mihai Nemeș


Bio.LeagueCs.Ro - Biohazard v4.4 Xmas Edition
discord: IonutC#5114

Experinta in: Java/Spring boot/Angular/C/C++/C#/Javascript/Python/HTML/CSS/Pawn/SQL
Ai nevoie de ajutorul meu? Ma poti gasi doar la adresa de discord de mai sus.
Apella
Membru, skill +1
Membru, skill +1
Posts: 445
Joined: 17 Oct 2013, 20:56
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 10 times
Been thanked: 1 time
Contact:

16 Feb 2014, 15:10

The YONTU wrote:
| Afiseaza codul
#include <amxmodx>
#include <amxmisc>
 
#pragma semicolon 1
 
#define PLUGIN "System"
#define VERSION "1.3"
#define AUTHOR "Allen"

new bool: g_bRecording[ 33 ];

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

	register_clcmd( "say",          "HandleSay" );
	register_clcmd( "say_team",     "HandleSay" );
	register_clcmd( "say /listademo",       "cmdList" );
}
 
public cmdList( id )
{
	new iPlayers[ 32 ], iNum, player;
	new szName[ 32 ];

	get_players( iPlayers, iNum, "ch" );


	for( new i = 0; i < iNum; i++ )
	{
		player = iPlayers[ i ];

		if( g_bRecording[ player ] )
		{
			get_user_name( player, szName, sizeof szName - 1 );
			client_print(id, print_chat, "[DEMO] Informatiile ti-au fost trimise. Verifica consola!");
			console_print(id, "=================================");
			console_print(id, "Lista inregistrari pornite:");                      
			console_print(id, "- %s", szName );
			console_print(id, "=================================");
			console_print(id, "Pentru mai multe detalii viziteaza http://mydomain.net.
		}
                       
		else
		{
			client_print(id, print_chat, "[DEMO] Nici o inregistrare pornita!");
		}
	}

	return PLUGIN_HANDLED;
}

public HandleSay( id )
{
	if( get_user_flags( id ) & ADMIN_KICK )
	{
		static szArgs[ 256 ], szTarget[ 32 ];

		read_args( szArgs, sizeof szArgs  - 1 );

		remove_quotes( szArgs );

		if( contain( szArgs, "/demo" ) != -1 )
		{
			copy( szTarget, sizeof szTarget - 1, szArgs[ 6 ] );
                       
			new player = cmd_target( id, szTarget, 3 );
 
			new mapname[32], time[32];

			if( player )
			{
				static szName[ 32 ];

				get_user_name( player, szName, sizeof szName  - 1 );

				get_mapname(mapname,31);

				get_time("%m-%d-%Y",time,31);

				client_cmd( player, "record ^"%s-%s-%s^"", szName, mapname, time );

				client_print(id, print_chat, "[DEMO] Infomatia ti-a fost trimisa. Verifica consola!");                                
				console_print( id, "Nume inregistrare: ^"%s-%s-%s^"", szName, mapname, time );

				g_bRecording[ player ] = true;
			}

			else
			{
				client_print(id, print_chat, "[DEMO] Jucatorul mentionat nu este conectat.");
			}

			return PLUGIN_HANDLED;
		}

		if( contain( szArgs, "/stopdemo" ) != -1 )
		{
			copy( szTarget, sizeof szTarget - 1, szArgs[ 10 ] );

			new player = cmd_target( id, szTarget, 3 );

			if( player )
			{
				if( g_bRecording[ player ] )
				{
					static szName[ 32 ];

					get_user_name( player, szName, sizeof szName  - 1 );

					client_cmd( player, "stop" );

					client_print(id, print_chat, "[DEMO] Infomatia ti-a fost trimisa. Verifica consola!");
					console_print( id, "Stopdemo: record ^"%s^"", szName );

					g_bRecording[ player ] = false;
				}

				else
				{
					client_print(id, print_chat, "[DEMO] Jucatorul mentionat nu are demo on.");
				}
			}

			else
			{
				client_print(id, print_chat, "[DEMO] Jucatorul mentionat nu este conectat.");
			}

			return PLUGIN_HANDLED;
		}
	}

	return PLUGIN_CONTINUE;
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/
tot aia eroare yontu....
User avatar
YONTU
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 2466
Joined: 10 May 2013, 14:25
Detinator Steam: Nu
CS Status: Everyone is looking at ur shoes
Reputatie: Moderator ajutator
Fost scripter eXtreamCS
Location: Gura Humorului
Has thanked: 256 times
Been thanked: 288 times
Contact:

16 Feb 2014, 17:35

Apella wrote:
The YONTU wrote:
| Afiseaza codul
#include <amxmodx>
#include <amxmisc>
 
#pragma semicolon 1
 
#define PLUGIN "System"
#define VERSION "1.3"
#define AUTHOR "Allen"

new bool: g_bRecording[ 33 ];

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

	register_clcmd( "say",          "HandleSay" );
	register_clcmd( "say_team",     "HandleSay" );
	register_clcmd( "say /listademo",       "cmdList" );
}
 
public cmdList( id )
{
	new iPlayers[ 32 ], iNum, player;
	new szName[ 32 ];

	get_players( iPlayers, iNum, "ch" );


	for( new i = 0; i < iNum; i++ )
	{
		player = iPlayers[ i ];

		if( g_bRecording[ player ] )
		{
			get_user_name( player, szName, sizeof szName - 1 );
			client_print(id, print_chat, "[DEMO] Informatiile ti-au fost trimise. Verifica consola!");
			console_print(id, "=================================");
			console_print(id, "Lista inregistrari pornite:");                      
			console_print(id, "- %s", szName );
			console_print(id, "=================================");
			console_print(id, "Pentru mai multe detalii viziteaza http://mydomain.net.
		}
                       
		else
		{
			client_print(id, print_chat, "[DEMO] Nici o inregistrare pornita!");
		}
	}

	return PLUGIN_HANDLED;
}

public HandleSay( id )
{
	if( get_user_flags( id ) & ADMIN_KICK )
	{
		static szArgs[ 256 ], szTarget[ 32 ];

		read_args( szArgs, sizeof szArgs  - 1 );

		remove_quotes( szArgs );

		if( contain( szArgs, "/demo" ) != -1 )
		{
			copy( szTarget, sizeof szTarget - 1, szArgs[ 6 ] );
                       
			new player = cmd_target( id, szTarget, 3 );
 
			new mapname[32], time[32];

			if( player )
			{
				static szName[ 32 ];

				get_user_name( player, szName, sizeof szName  - 1 );

				get_mapname(mapname,31);

				get_time("%m-%d-%Y",time,31);

				client_cmd( player, "record ^"%s-%s-%s^"", szName, mapname, time );

				client_print(id, print_chat, "[DEMO] Infomatia ti-a fost trimisa. Verifica consola!");                                
				console_print( id, "Nume inregistrare: ^"%s-%s-%s^"", szName, mapname, time );

				g_bRecording[ player ] = true;
			}

			else
			{
				client_print(id, print_chat, "[DEMO] Jucatorul mentionat nu este conectat.");
			}

			return PLUGIN_HANDLED;
		}

		if( contain( szArgs, "/stopdemo" ) != -1 )
		{
			copy( szTarget, sizeof szTarget - 1, szArgs[ 10 ] );

			new player = cmd_target( id, szTarget, 3 );

			if( player )
			{
				if( g_bRecording[ player ] )
				{
					static szName[ 32 ];

					get_user_name( player, szName, sizeof szName  - 1 );

					client_cmd( player, "stop" );

					client_print(id, print_chat, "[DEMO] Infomatia ti-a fost trimisa. Verifica consola!");
					console_print( id, "Stopdemo: record ^"%s^"", szName );

					g_bRecording[ player ] = false;
				}

				else
				{
					client_print(id, print_chat, "[DEMO] Jucatorul mentionat nu are demo on.");
				}
			}

			else
			{
				client_print(id, print_chat, "[DEMO] Jucatorul mentionat nu este conectat.");
			}

			return PLUGIN_HANDLED;
		}
	}

	return PLUGIN_CONTINUE;
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/
tot aia eroare yontu....
| Afiseaza codul
#include <amxmodx>
#include <amxmisc>
 
#pragma semicolon 1
 
#define PLUGIN "System"
#define VERSION "1.3"
#define AUTHOR "Allen"

new bool: g_bRecording[ 33 ];

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

	register_clcmd( "say",          "HandleSay" );
	register_clcmd( "say_team",     "HandleSay" );
	register_clcmd( "say /listademo",       "cmdList" );
}
 
public cmdList( id )
{
	new iPlayers[ 32 ], iNum, player;
	new szName[ 32 ];

	get_players( iPlayers, iNum, "ch" );


	for( new i = 0; i < iNum; i++ )
	{
		player = iPlayers[ i ];

		if( g_bRecording[ player ] )
		{
			get_user_name( player, szName, sizeof szName - 1 );
			client_print(id, print_chat, "[DEMO] Informatiile ti-au fost trimise. Verifica consola!");
			console_print(id, "=================================");
			console_print(id, "Lista inregistrari pornite:");                      
			console_print(id, "- %s", szName );
			console_print(id, "=================================");
			console_print(id, "Pentru mai multe detalii viziteaza http://mydomain.net.
		}
                       
		else
		{
			client_print(id, print_chat, "[DEMO] Nici o inregistrare pornita!");
		}
	}

	return PLUGIN_HANDLED;
}

public HandleSay( id )
{
	if( get_user_flags( id ) & ADMIN_KICK )
	{
		static szArgs[ 256 ], szTarget[ 32 ];

		read_args( szArgs, sizeof szArgs  - 1 );

		remove_quotes( szArgs );

		if( contain( szArgs, "/demo" ) != -1 )
		{
			copy( szTarget, sizeof szTarget - 1, szArgs[ 6 ] );
                       
			new player = cmd_target( id, szTarget, 3 );
 
			new mapname[32], time[32];

			if( player )
			{
				static szName[ 32 ];

				get_user_name( player, szName, sizeof szName  - 1 );

				get_mapname(mapname,31);

				get_time("%m-%d-%Y",time,31);

				client_cmd( player, "record ^"%s-%s-%s^"", szName, mapname, time );

				client_print(id, print_chat, "[DEMO] Infomatia ti-a fost trimisa. Verifica consola!");                                
				console_print( id, "Nume inregistrare: ^"%s-%s-%s^"", szName, mapname, time );

				g_bRecording[ player ] = true;
			}

			else
			{
				client_print(id, print_chat, "[DEMO] Jucatorul mentionat nu este conectat.");
			}

			return PLUGIN_HANDLED;
		}

		if( contain( szArgs, "/stopdemo" ) != -1 )
		{
			copy( szTarget, sizeof szTarget - 1, szArgs[ 10 ] );

			new player = cmd_target( id, szTarget, 3 );

			if( player )
			{
				if( g_bRecording[ player ] )
				{
					static szName[ 32 ];

					get_user_name( player, szName, sizeof szName  - 1 );

					client_cmd( player, "stop" );

					client_print(id, print_chat, "[DEMO] Infomatia ti-a fost trimisa. Verifica consola!");
					console_print( id, "Stopdemo: record ^"%s^"", szName );

					g_bRecording[ player ] = false;
				}

				else
				{
					client_print(id, print_chat, "[DEMO] Jucatorul mentionat nu are demo on.");
				}
			}

			else
			{
				client_print(id, print_chat, "[DEMO] Jucatorul mentionat nu este conectat.");
			}

			return PLUGIN_HANDLED;
		}
	}

	return PLUGIN_CONTINUE;
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/
OPS ;)) !
„Peste douăzeci de ani vei fi dezamăgit din cauza lucrurilor pe care nu le-ai făcut, nu din cauza celor pe care le-ai făcut.” - Mark Twain
„Asa e si in viata, hotii castiga, prostii care invata pierd.” - Mihai Nemeș


Bio.LeagueCs.Ro - Biohazard v4.4 Xmas Edition
discord: IonutC#5114

Experinta in: Java/Spring boot/Angular/C/C++/C#/Javascript/Python/HTML/CSS/Pawn/SQL
Ai nevoie de ajutorul meu? Ma poti gasi doar la adresa de discord de mai sus.
Apella
Membru, skill +1
Membru, skill +1
Posts: 445
Joined: 17 Oct 2013, 20:56
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 10 times
Been thanked: 1 time
Contact:

16 Feb 2014, 17:39

The YONTU wrote:
Apella wrote:
The YONTU wrote:
| Afiseaza codul
#include <amxmodx>
#include <amxmisc>
 
#pragma semicolon 1
 
#define PLUGIN "System"
#define VERSION "1.3"
#define AUTHOR "Allen"

new bool: g_bRecording[ 33 ];

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

	register_clcmd( "say",          "HandleSay" );
	register_clcmd( "say_team",     "HandleSay" );
	register_clcmd( "say /listademo",       "cmdList" );
}
 
public cmdList( id )
{
	new iPlayers[ 32 ], iNum, player;
	new szName[ 32 ];

	get_players( iPlayers, iNum, "ch" );


	for( new i = 0; i < iNum; i++ )
	{
		player = iPlayers[ i ];

		if( g_bRecording[ player ] )
		{
			get_user_name( player, szName, sizeof szName - 1 );
			client_print(id, print_chat, "[DEMO] Informatiile ti-au fost trimise. Verifica consola!");
			console_print(id, "=================================");
			console_print(id, "Lista inregistrari pornite:");                      
			console_print(id, "- %s", szName );
			console_print(id, "=================================");
			console_print(id, "Pentru mai multe detalii viziteaza http://mydomain.net.
		}
                       
		else
		{
			client_print(id, print_chat, "[DEMO] Nici o inregistrare pornita!");
		}
	}

	return PLUGIN_HANDLED;
}

public HandleSay( id )
{
	if( get_user_flags( id ) & ADMIN_KICK )
	{
		static szArgs[ 256 ], szTarget[ 32 ];

		read_args( szArgs, sizeof szArgs  - 1 );

		remove_quotes( szArgs );

		if( contain( szArgs, "/demo" ) != -1 )
		{
			copy( szTarget, sizeof szTarget - 1, szArgs[ 6 ] );
                       
			new player = cmd_target( id, szTarget, 3 );
 
			new mapname[32], time[32];

			if( player )
			{
				static szName[ 32 ];

				get_user_name( player, szName, sizeof szName  - 1 );

				get_mapname(mapname,31);

				get_time("%m-%d-%Y",time,31);

				client_cmd( player, "record ^"%s-%s-%s^"", szName, mapname, time );

				client_print(id, print_chat, "[DEMO] Infomatia ti-a fost trimisa. Verifica consola!");                                
				console_print( id, "Nume inregistrare: ^"%s-%s-%s^"", szName, mapname, time );

				g_bRecording[ player ] = true;
			}

			else
			{
				client_print(id, print_chat, "[DEMO] Jucatorul mentionat nu este conectat.");
			}

			return PLUGIN_HANDLED;
		}

		if( contain( szArgs, "/stopdemo" ) != -1 )
		{
			copy( szTarget, sizeof szTarget - 1, szArgs[ 10 ] );

			new player = cmd_target( id, szTarget, 3 );

			if( player )
			{
				if( g_bRecording[ player ] )
				{
					static szName[ 32 ];

					get_user_name( player, szName, sizeof szName  - 1 );

					client_cmd( player, "stop" );

					client_print(id, print_chat, "[DEMO] Infomatia ti-a fost trimisa. Verifica consola!");
					console_print( id, "Stopdemo: record ^"%s^"", szName );

					g_bRecording[ player ] = false;
				}

				else
				{
					client_print(id, print_chat, "[DEMO] Jucatorul mentionat nu are demo on.");
				}
			}

			else
			{
				client_print(id, print_chat, "[DEMO] Jucatorul mentionat nu este conectat.");
			}

			return PLUGIN_HANDLED;
		}
	}

	return PLUGIN_CONTINUE;
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/
tot aia eroare yontu....
| Afiseaza codul
#include <amxmodx>
#include <amxmisc>
 
#pragma semicolon 1
 
#define PLUGIN "System"
#define VERSION "1.3"
#define AUTHOR "Allen"

new bool: g_bRecording[ 33 ];

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

	register_clcmd( "say",          "HandleSay" );
	register_clcmd( "say_team",     "HandleSay" );
	register_clcmd( "say /listademo",       "cmdList" );
}
 
public cmdList( id )
{
	new iPlayers[ 32 ], iNum, player;
	new szName[ 32 ];

	get_players( iPlayers, iNum, "ch" );


	for( new i = 0; i < iNum; i++ )
	{
		player = iPlayers[ i ];

		if( g_bRecording[ player ] )
		{
			get_user_name( player, szName, sizeof szName - 1 );
			client_print(id, print_chat, "[DEMO] Informatiile ti-au fost trimise. Verifica consola!");
			console_print(id, "=================================");
			console_print(id, "Lista inregistrari pornite:");                      
			console_print(id, "- %s", szName );
			console_print(id, "=================================");
			console_print(id, "Pentru mai multe detalii viziteaza http://mydomain.net.
		}
                       
		else
		{
			client_print(id, print_chat, "[DEMO] Nici o inregistrare pornita!");
		}
	}

	return PLUGIN_HANDLED;
}

public HandleSay( id )
{
	if( get_user_flags( id ) & ADMIN_KICK )
	{
		static szArgs[ 256 ], szTarget[ 32 ];

		read_args( szArgs, sizeof szArgs  - 1 );

		remove_quotes( szArgs );

		if( contain( szArgs, "/demo" ) != -1 )
		{
			copy( szTarget, sizeof szTarget - 1, szArgs[ 6 ] );
                       
			new player = cmd_target( id, szTarget, 3 );
 
			new mapname[32], time[32];

			if( player )
			{
				static szName[ 32 ];

				get_user_name( player, szName, sizeof szName  - 1 );

				get_mapname(mapname,31);

				get_time("%m-%d-%Y",time,31);

				client_cmd( player, "record ^"%s-%s-%s^"", szName, mapname, time );

				client_print(id, print_chat, "[DEMO] Infomatia ti-a fost trimisa. Verifica consola!");                                
				console_print( id, "Nume inregistrare: ^"%s-%s-%s^"", szName, mapname, time );

				g_bRecording[ player ] = true;
			}

			else
			{
				client_print(id, print_chat, "[DEMO] Jucatorul mentionat nu este conectat.");
			}

			return PLUGIN_HANDLED;
		}

		if( contain( szArgs, "/stopdemo" ) != -1 )
		{
			copy( szTarget, sizeof szTarget - 1, szArgs[ 10 ] );

			new player = cmd_target( id, szTarget, 3 );

			if( player )
			{
				if( g_bRecording[ player ] )
				{
					static szName[ 32 ];

					get_user_name( player, szName, sizeof szName  - 1 );

					client_cmd( player, "stop" );

					client_print(id, print_chat, "[DEMO] Infomatia ti-a fost trimisa. Verifica consola!");
					console_print( id, "Stopdemo: record ^"%s^"", szName );

					g_bRecording[ player ] = false;
				}

				else
				{
					client_print(id, print_chat, "[DEMO] Jucatorul mentionat nu are demo on.");
				}
			}

			else
			{
				client_print(id, print_chat, "[DEMO] Jucatorul mentionat nu este conectat.");
			}

			return PLUGIN_HANDLED;
		}
	}

	return PLUGIN_CONTINUE;
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/
OPS ;)) !
tot aia eroare
User avatar
YONTU
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 2466
Joined: 10 May 2013, 14:25
Detinator Steam: Nu
CS Status: Everyone is looking at ur shoes
Reputatie: Moderator ajutator
Fost scripter eXtreamCS
Location: Gura Humorului
Has thanked: 256 times
Been thanked: 288 times
Contact:

16 Feb 2014, 17:43

„Peste douăzeci de ani vei fi dezamăgit din cauza lucrurilor pe care nu le-ai făcut, nu din cauza celor pe care le-ai făcut.” - Mark Twain
„Asa e si in viata, hotii castiga, prostii care invata pierd.” - Mihai Nemeș


Bio.LeagueCs.Ro - Biohazard v4.4 Xmas Edition
discord: IonutC#5114

Experinta in: Java/Spring boot/Angular/C/C++/C#/Javascript/Python/HTML/CSS/Pawn/SQL
Ai nevoie de ajutorul meu? Ma poti gasi doar la adresa de discord de mai sus.
Apella
Membru, skill +1
Membru, skill +1
Posts: 445
Joined: 17 Oct 2013, 20:56
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 10 times
Been thanked: 1 time
Contact:

16 Feb 2014, 17:46

yontu numi trebe amxx eu vreau singur sal fac amxx, nu stiu cum iti merge uite cum mie pe freakz se compileaza :

Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team
Modified for www.freakz.ro

demo.sma(41) : error 037: invalid string (possibly non-terminated string)

1 Error.
Compile failed!

si file asta care mi l-ai dat mi se deschide ca TXT !!! si inauntru imi arata litere chineze..
User avatar
YONTU
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 2466
Joined: 10 May 2013, 14:25
Detinator Steam: Nu
CS Status: Everyone is looking at ur shoes
Reputatie: Moderator ajutator
Fost scripter eXtreamCS
Location: Gura Humorului
Has thanked: 256 times
Been thanked: 288 times
Contact:

16 Feb 2014, 17:50

Ce BIP-u' meu :)) ! WTF !!! =)) Are un bug cand il compilezi!
La mine se compileaza perfect!





EDIT: Cauta linia

Code: Select all

console_print(id, "Pentru mai multe detalii viziteaza http://mydomain.net.
si ii adaugi la sfarsit, adica dupa http://mydomain.net. simbolurile astea:

Code: Select all

");
In final iese asa:

Code: Select all

console_print(id, "Pentru mai multe detalii viziteaza http://mydomain.net.");
Apoi compilezi! :)
„Peste douăzeci de ani vei fi dezamăgit din cauza lucrurilor pe care nu le-ai făcut, nu din cauza celor pe care le-ai făcut.” - Mark Twain
„Asa e si in viata, hotii castiga, prostii care invata pierd.” - Mihai Nemeș


Bio.LeagueCs.Ro - Biohazard v4.4 Xmas Edition
discord: IonutC#5114

Experinta in: Java/Spring boot/Angular/C/C++/C#/Javascript/Python/HTML/CSS/Pawn/SQL
Ai nevoie de ajutorul meu? Ma poti gasi doar la adresa de discord de mai sus.
Post Reply

Return to “Cereri”

  • Information