Force Gag

Pluginuri facute de utilizatorii forumului eXtream.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

User avatar
JaiLBreaK
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 1535
Joined: 05 Jan 2016, 18:17
Detinator Steam: Nu
Detinator server CS: Da
Reputatie: Membru Club eXtreamCS (2 luni)
Scripter eXtreamCS
Fond eXtream: 0
Has thanked: 3 times
Been thanked: 7 times
Contact:

05 Dec 2017, 21:11

stai sa treaca saptamana asta urata si ii fac update
Image
eXtreamSHOP
User avatar
kobra3
Membru, skill +1
Membru, skill +1
Posts: 283
Joined: 23 Jul 2015, 21:58
Detinator Steam: Da
CS Status: Disponibil
Detinator server CS: cs.area-games.ro
SteamID: ikobra3
Fond eXtream: 0
Location: Bucuresti
Has thanked: 1 time

10 Nov 2019, 02:56

Cum modific limita aia de 10 minute in 1440?
User avatar
Laurentiu P.
Fost moderator
Fost moderator
Posts: 2338
Joined: 10 Jul 2013, 20:26
Detinator Steam: Nu
Reputatie: Fost super moderator
Fond eXtream: 100
Has thanked: 16 times
Been thanked: 37 times

10 Nov 2019, 15:35

Code: Select all

public gag_cmd(id, level, cid)
{
	if(!cmd_access(id, level, cid, 4))
		return PLUGIN_HANDLED;  	
	
	new arg[32], arg2[32], arg3[32], arg4[32], szArg = charsmax(arg);
	new minutes;
	new bool:MultiGag = read_argc() == 5 ? true : false 
	
	read_argv(1, arg, szArg)
	
	new target2, target = cmd_target(id, arg, CMDTARGET_OBEY_IMMUNITY|CMDTARGET_NO_BOTS)
	
	if (!target) 
		return PLUGIN_HANDLED
	
	read_argv(2, arg2, szArg);
	if(MultiGag == true)
	{
		target2 = cmd_target(id, arg2, CMDTARGET_OBEY_IMMUNITY|CMDTARGET_NO_BOTS)
		if (!target) 
			return PLUGIN_HANDLED

		if(g_Gag[0][target2])
		{
			console_print(id, "Jucatorul are deja gag!");
			return PLUGIN_HANDLED;
		}

		read_argv(3, arg3, szArg);
		minutes = str_to_num(arg3);
		read_argv(4, arg4, szArg);
		remove_quotes(arg4);
	}
	else
	{
		minutes = str_to_num(arg2);
		read_argv(3, arg4, szArg);
		remove_quotes(arg4);
	}

	if(minutes < 1||minutes > 1440)
	{
		console_print(id, "Minut minim 1 si maxim 1440");
		return PLUGIN_HANDLED;
	}
	
	if(g_Gag[0][target])
	{
		console_print(id, "Jucatorul are deja gag!");
		return PLUGIN_HANDLED;
	}

	new name[32], namet[32], namett[32];
	get_user_name(id, name, szArg);
	get_user_name(target, namet, szArg);
	if(MultiGag == true)
	{
		get_user_name(target2, namett, szArg);
		g_Gag[0][target2] = 1;
		g_Gag[1][target2] = minutes;
		print(0, "%s !g%s!n a dat gag jucatorilor!g %s!n si!g %s!n pentru [!t%d!n] minut%s.", tag, name, namet, namett, minutes, (minutes == 1 ? "" : "e"));
	}
	else
		print(0, "%s !g%s!n a dat gag jucatorului!g %s!n pentru [!t%d!n] minut%s.", tag, name, namet, minutes, (minutes == 1 ? "" : "e"));

	print(0, "%s !nMotiv: !g%s", tag, arg4);
	g_Gag[0][target] = 1;
	g_Gag[1][target] = minutes;
	
	set_task(60.0, "count", target + 123, _, _, "b");
	return PLUGIN_HANDLED;
}
Image
User avatar
kobra3
Membru, skill +1
Membru, skill +1
Posts: 283
Joined: 23 Jul 2015, 21:58
Detinator Steam: Da
CS Status: Disponibil
Detinator server CS: cs.area-games.ro
SteamID: ikobra3
Fond eXtream: 0
Location: Bucuresti
Has thanked: 1 time

25 Jan 2020, 19:01

Il poate modifica cineva ca in momentul in care jucatorul are gag sa nu-si poata schimba nici nick-ul ?
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:14

Frumos, multumim.
Post Reply

Return to “Pluginuri eXtream”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 5 guests