Cerere plugin Vip

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
Bogdanbd1
Membru, skill 0
Membru, skill 0
Posts: 30
Joined: 19 Dec 2013, 10:56
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 4 times
Contact:

19 Dec 2013, 11:05

As dori daca se poate un plugin vip si sa contina urmatoarele:
bullet damage
cand se tasteaza in chat /vip sa apara o lista cu persoanele care sunt vip (conectate in acel moment pe server)
cand tastezi in chat vip sa apara pretul la vip ( 1 euro)
cand apasa cineva tab sa ii apara vip-urile care sunt in acel moment pe server
sa fie atribuita o litera cu flagul i care sa dea inca 50% armura
si model pentru vip (optional)
Va multumesc :)
LordOfNothing
Membru, skill +1
Membru, skill +1
Posts: 387
Joined: 19 Jul 2013, 14:51
Detinator Steam: Nu
Reputatie: Restrictie PM
Has thanked: 11 times
Been thanked: 34 times

19 Dec 2013, 12:31

Cosmin
Fost moderator
Fost moderator
Posts: 9366
Joined: 06 Jul 2013, 21:08
Detinator Steam: Da
Detinator server CS: Nu
Reputatie: Fost eXtream Mod
Fost Scripter eXtreamCS
Nume anterior: scosmynnnn
Has thanked: 492 times
Been thanked: 546 times

19 Dec 2013, 12:42

| Afiseaza codul
#include < amxmodx >
#include < hamsandwich >
#include < fun >
#include < cstrike >

#define PLUGIN "VIP"
#define VERSION "1.0"
#define AUTHOR "C0sm1N" //mersi lui Cyby pentru codul de la bullet_damage.

#pragma semicolon 1

new const Vip_Model[] = "models/player/vip/vip.mdl";

new bool:bulletdamage[33], g_hudmsg1, g_Task = 32344535, gmsgSayText;

static const COLOR[] = "^x04";

public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR);
	register_event("Damage", "event_damage", "b", "2!0", "3=0", "4!0");
	RegisterHam(Ham_Spawn,"player","fham_spawn",1);
	g_hudmsg1 = CreateHudSyncObj();
	gmsgSayText = get_user_msgid("SayText");
	
	register_clcmd("say /vip","cmdVips");
	register_clcmd("say vip","cmdMotd");
}
public fham_spawn(id)
{
	if(get_user_flags(id) & ADMIN_CHAT && is_user_alive(id))
	{
		bulletdamage[id] = true;
		set_user_health(id, get_user_health(id) + 50);
		set_task(1.0,"ScoreBoard",id + g_Task);
		cs_reset_user_model(id);
		cs_set_user_model(id,Vip_Model);
		client_cmd(id, "cl_minmodels 0");
	}
}
public ScoreBoard( idtask )
{
	new id = idtask - g_Task;
	if(is_user_connected(id))
	{
		message_begin( MSG_ALL, get_user_msgid( "ScoreAttrib" ) );
		write_byte( id );
		write_byte( 4 );
		message_end( );
	}
}
public cmdVips(user) 
{
	new adminnames[33][32];
	new message[256];
	new id, count, x, len;
	new maxplayers = get_maxplayers();
	for(id = 1 ; id <= maxplayers ; id++)
	if(is_user_connected(id))
	if(get_user_flags(id) & ADMIN_CHAT)
	get_user_name(id, adminnames[count++], 31);
	
	len = format(message, 255, "%s VIP ONLINE: ",COLOR);
	if(count > 0) {
		for(x = 0 ; x < count ; x++) {
			len += format(message[len], 255-len, "%s%s ", adminnames[x], x < (count-1) ? ", ":"");
			if(len > 96 ) {
				print_message(user, message);
				len = format(message, 255, "%s ",COLOR);
			}
		}
		print_message(user, message);
	}
	else {
		len += format(message[len], 255-len, "No VIP online.");
		print_message(user, message);
	}
}

print_message(id, msg[]) {
	message_begin(MSG_ONE, gmsgSayText, {0,0,0}, id);
	write_byte(id);
	write_string(msg);
	message_end();
}
public cmdMotd( id )
{
	show_motd( id, "addons/amxmodx/configs/preturi_vip.html", "" );
}

public plugin_precache()
{
	precache_model(Vip_Model);
}
public event_damage( id )
{
	static attacker; attacker = get_user_attacker(id);
	static damage; damage = read_data(2);
	if(is_user_connected(attacker) && bulletdamage[attacker])
	{
		set_hudmessage(0, 100, 200, -1.0, 0.55, 2, 0.1, 4.0, 0.02, 0.02, -1);
		ShowSyncHudMsg(attacker, g_hudmsg1, "%i^n", damage);
	}
}
public client_disconnect(id)
{
	bulletdamage[id] = false;	
}
Fisierul preturi_vip.html ti-l faci tu,nu ma pricep la dastea gasesti pe net daca cauti si il adaugi in configs cu numele asta: preturi_vip.html
User avatar
pgvd
Membru, skill +1
Membru, skill +1
Posts: 212
Joined: 15 Dec 2013, 23:15
Detinator Steam: Da
Has thanked: 36 times
Been thanked: 1 time
Contact:

19 Dec 2013, 18:14

Am adaugat models/player/vip/vip.mdl, dar pe server am skinu normal, nu-l am VIP, din ce cauza?
Cosmin
Fost moderator
Fost moderator
Posts: 9366
Joined: 06 Jul 2013, 21:08
Detinator Steam: Da
Detinator server CS: Nu
Reputatie: Fost eXtream Mod
Fost Scripter eXtreamCS
Nume anterior: scosmynnnn
Has thanked: 492 times
Been thanked: 546 times

19 Dec 2013, 22:13

| Afiseaza codul
#include < amxmodx >
#include < hamsandwich >
#include < fun >
#include < cstrike >

#define PLUGIN "VIP"
#define VERSION "1.0"
#define AUTHOR "C0sm1N" //mersi lui Cyby pentru codul de la bullet_damage.

#pragma semicolon 1

new const Vip_Model[] = "models/player/vip/vip.mdl";

new bool:bulletdamage[33], g_hudmsg1, g_Task = 32344535, gmsgSayText;

static const COLOR[] = "^x04";

public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR);
	register_event("Damage", "event_damage", "b", "2!0", "3=0", "4!0");
	RegisterHam(Ham_Spawn,"player","fham_spawn",1);
	g_hudmsg1 = CreateHudSyncObj();
	gmsgSayText = get_user_msgid("SayText");
	
	register_clcmd("say /vip","cmdVips");
	register_clcmd("say vip","cmdMotd");
}
public fham_spawn(id)
{
	if(get_user_flags(id) & ADMIN_IMMUNITY && is_user_alive(id))
	{
		bulletdamage[id] = true;
		set_user_health(id, get_user_health(id) + 50);
		set_task(1.0,"ScoreBoard",id + g_Task);
		cs_reset_user_model(id);
		cs_set_user_model(id,"Vip_Model");
		client_cmd(id, "cl_minmodels 0");
	}
}
public ScoreBoard( idtask )
{
	new id = idtask - g_Task;
	if(is_user_connected(id))
	{
		message_begin( MSG_ALL, get_user_msgid( "ScoreAttrib" ) );
		write_byte( id );
		write_byte( 4 );
		message_end( );
	}
}
public cmdVips(user) 
{
	new adminnames[33][32];
	new message[256];
	new id, count, x, len;
	new maxplayers = get_maxplayers();
	for(id = 1 ; id <= maxplayers ; id++)
	if(is_user_connected(id))
	if(get_user_flags(id) & ADMIN_IMMUNITY)
	get_user_name(id, adminnames[count++], 31);
	
	len = format(message, 255, "%s VIP ONLINE: ",COLOR);
	if(count > 0) {
		for(x = 0 ; x < count ; x++) {
			len += format(message[len], 255-len, "%s%s ", adminnames[x], x < (count-1) ? ", ":"");
			if(len > 96 ) {
				print_message(user, message);
				len = format(message, 255, "%s ",COLOR);
			}
		}
		print_message(user, message);
	}
	else {
		len += format(message[len], 255-len, "No VIP online.");
		print_message(user, message);
	}
}

print_message(id, msg[]) {
	message_begin(MSG_ONE, gmsgSayText, {0,0,0}, id);
	write_byte(id);
	write_string(msg);
	message_end();
}
public cmdMotd( id )
{
	show_motd( id, "addons/amxmodx/configs/preturi_vip.html", "" );
}

public plugin_precache()
{
	precache_model(Vip_Model);
}
public event_damage( id )
{
	static attacker; attacker = get_user_attacker(id);
	static damage; damage = read_data(2);
	if(is_user_connected(attacker) && bulletdamage[attacker])
	{
		set_hudmessage(0, 100, 200, -1.0, 0.55, 2, 0.1, 4.0, 0.02, 0.02, -1);
		ShowSyncHudMsg(attacker, g_hudmsg1, "%i^n", damage);
	}
}
public client_disconnect(id)
{
	bulletdamage[id] = false;	
}
Vezi daca merge asta,daca nu astalalta merge sigur,dar te rog testeaza-l si pe asta ca vreau sa stiu si eu :)

2.
| Afiseaza codul
#include < amxmodx >
#include < hamsandwich >
#include < fun >
#include < cstrike >

#define PLUGIN "VIP"
#define VERSION "1.0"
#define AUTHOR "C0sm1N" //mersi lui Cyby pentru codul de la bullet_damage.

#pragma semicolon 1

new bool:bulletdamage[33], g_hudmsg1, g_Task = 32344535, gmsgSayText;

static const COLOR[] = "^x04";

public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR);
	register_event("Damage", "event_damage", "b", "2!0", "3=0", "4!0");
	RegisterHam(Ham_Spawn,"player","fham_spawn",1);
	g_hudmsg1 = CreateHudSyncObj();
	gmsgSayText = get_user_msgid("SayText");
	
	register_clcmd("say /vip","cmdVips");
	register_clcmd("say vip","cmdMotd");
}
public fham_spawn(id)
{
	if(get_user_flags(id) & ADMIN_IMMUNITY && is_user_alive(id))
	{
		bulletdamage[id] = true;
		set_user_health(id, get_user_health(id) + 50);
		set_task(1.0,"ScoreBoard",id + g_Task);
		cs_reset_user_model(id);
		cs_set_user_model(id,"vip");
		client_cmd(id, "cl_minmodels 0");
	}
}
public ScoreBoard( idtask )
{
	new id = idtask - g_Task;
	if(is_user_connected(id))
	{
		message_begin( MSG_ALL, get_user_msgid( "ScoreAttrib" ) );
		write_byte( id );
		write_byte( 4 );
		message_end( );
	}
}
public cmdVips(user) 
{
	new adminnames[33][32];
	new message[256];
	new id, count, x, len;
	new maxplayers = get_maxplayers();
	for(id = 1 ; id <= maxplayers ; id++)
	if(is_user_connected(id))
	if(get_user_flags(id) & ADMIN_IMMUNITY)
	get_user_name(id, adminnames[count++], 31);
	
	len = format(message, 255, "%s VIP ONLINE: ",COLOR);
	if(count > 0) {
		for(x = 0 ; x < count ; x++) {
			len += format(message[len], 255-len, "%s%s ", adminnames[x], x < (count-1) ? ", ":"");
			if(len > 96 ) {
				print_message(user, message);
				len = format(message, 255, "%s ",COLOR);
			}
		}
		print_message(user, message);
	}
	else {
		len += format(message[len], 255-len, "No VIP online.");
		print_message(user, message);
	}
}

print_message(id, msg[]) {
	message_begin(MSG_ONE, gmsgSayText, {0,0,0}, id);
	write_byte(id);
	write_string(msg);
	message_end();
}
public cmdMotd( id )
{
	show_motd( id, "addons/amxmodx/configs/preturi_vip.html", "" );
}

public plugin_precache()
{
	precache_model("models/player/vip/vip.mdl");
}
public event_damage( id )
{
	static attacker; attacker = get_user_attacker(id);
	static damage; damage = read_data(2);
	if(is_user_connected(attacker) && bulletdamage[attacker])
	{
		set_hudmessage(0, 100, 200, -1.0, 0.55, 2, 0.1, 4.0, 0.02, 0.02, -1);
		ShowSyncHudMsg(attacker, g_hudmsg1, "%i^n", damage);
	}
}
public client_disconnect(id)
{
	bulletdamage[id] = false;	
}
Bogdanbd1
Membru, skill 0
Membru, skill 0
Posts: 30
Joined: 19 Dec 2013, 10:56
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 4 times
Contact:

31 Dec 2013, 11:53

In loc de armura imi da hp. De asemenea sa aiba imunitate si flagul pe u daca se poate.
Multumesc.

Si as dori o modificare si la acest plugin. Doresc flag-ul modificat in loc de g sa fie sa fie ad.
#include < amxmodx >
#include < amxmisc >
#include < cstrike >
#include < fun >
#include < engine >
#include < hamsandwich >

#define PLUGIN "Meniu de VIP"
#define VERSION "1.0"
#define AUTHOR "Cosm1n"

new cvar_pluginon;


public plugin_init()
{

register_plugin( PLUGIN, VERSION, AUTHOR );
cvar_pluginon = register_cvar ( "amx_vipmenu", "1" )
register_clcmd("say /vipmenu","vip_menu", ADMIN_CVAR )

}


public vip_menu ( id, level, cid )
{
if(!cmd_access(id,level,cid,1))
return PLUGIN_HANDLED

if ( !get_pcvar_num ( cvar_pluginon ) )
return PLUGIN_HANDLED

if (is_user_alive(id))
{
new menu = menu_create( "Avantaje V.I.P:", "menu_handler" )
menu_additem(menu, "Gravitatie", "1", 0)
menu_additem(menu, "Viata 200", "2", 0 )
menu_additem(menu, "Armura 100", "3", 0 )
menu_additem(menu, "M4A1+Deagle", "4", 0)
menu_additem(menu, "AK47+Deagle", "5", 0)

menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);
menu_display(id, menu, 0);
}

return 1
}

public menu_handler ( id, menu, item )
{
if( item == MENU_EXIT )
{
return 1
}

new data[6], szName[64];
new access, callback;
menu_item_getinfo(menu, item, access, data,charsmax(data), szName,charsmax(szName), callback);
new key = str_to_num(data);

switch(key)
{
case 1:
{
set_user_gravity(id,0.7)
}
case 2:
{
set_user_health(id, 200)
}
case 3:
{
set_user_armor(id, 100)
}

case 4:
{
give_item(id, "weapon_m4a1");
give_item(id, "weapon_deagle");
cs_set_user_bpammo(id, CSW_M4A1, 90);
cs_set_user_bpammo(id, CSW_DEAGLE, 35);
}
case 5:
{
give_item(id, "weapon_ak47");
give_item(id, "weapon_deagle");
cs_set_user_bpammo(id, CSW_AK47, 90);
cs_set_user_bpammo(id, CSW_DEAGLE, 35);
}

}

menu_destroy(menu);
return 1

}
User avatar
Lothbrok
Membru, skill +1
Membru, skill +1
Posts: 366
Joined: 01 Jan 2013, 15:04
Detinator Steam: Da
Detinator server CS: Te intereseaza?
SteamID: Te intereseaza?
Reputatie: Fost Moderator ajutator
Membru club eXtreamCS (3 luni)
Nume anterior: Vechy!
Restrictie moderator
Location: Constanta
Been thanked: 36 times
Contact:

31 Dec 2013, 11:57

Bogdanbd1 wrote:In loc de armura imi da hp. De asemenea sa aiba imunitate si flagul pe u daca se poate.
Multumesc.

Si as dori o modificare si la acest plugin. Doresc flag-ul modificat in loc de g sa fie sa fie ad.
#include < amxmodx >
#include < amxmisc >
#include < cstrike >
#include < fun >
#include < engine >
#include < hamsandwich >

#define PLUGIN "Meniu de VIP"
#define VERSION "1.0"
#define AUTHOR "Cosm1n"

new cvar_pluginon;


public plugin_init()
{

register_plugin( PLUGIN, VERSION, AUTHOR );
cvar_pluginon = register_cvar ( "amx_vipmenu", "1" )
register_clcmd("say /vipmenu","vip_menu", ADMIN_CVAR )

}


public vip_menu ( id, level, cid )
{
if(!cmd_access(id,level,cid,1))
return PLUGIN_HANDLED

if ( !get_pcvar_num ( cvar_pluginon ) )
return PLUGIN_HANDLED

if (is_user_alive(id))
{
new menu = menu_create( "Avantaje V.I.P:", "menu_handler" )
menu_additem(menu, "Gravitatie", "1", 0)
menu_additem(menu, "Viata 200", "2", 0 )
menu_additem(menu, "Armura 100", "3", 0 )
menu_additem(menu, "M4A1+Deagle", "4", 0)
menu_additem(menu, "AK47+Deagle", "5", 0)

menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);
menu_display(id, menu, 0);
}

return 1
}

public menu_handler ( id, menu, item )
{
if( item == MENU_EXIT )
{
return 1
}

new data[6], szName[64];
new access, callback;
menu_item_getinfo(menu, item, access, data,charsmax(data), szName,charsmax(szName), callback);
new key = str_to_num(data);

switch(key)
{
case 1:
{
set_user_gravity(id,0.7)
}
case 2:
{
set_user_health(id, 200)
}
case 3:
{
set_user_armor(id, 100)
}

case 4:
{
give_item(id, "weapon_m4a1");
give_item(id, "weapon_deagle");
cs_set_user_bpammo(id, CSW_M4A1, 90);
cs_set_user_bpammo(id, CSW_DEAGLE, 35);
}
case 5:
{
give_item(id, "weapon_ak47");
give_item(id, "weapon_deagle");
cs_set_user_bpammo(id, CSW_AK47, 90);
cs_set_user_bpammo(id, CSW_DEAGLE, 35);
}

}

menu_destroy(menu);
return 1

}

Acele flag-uri le poti seta din users.ini .
http://svx.ro - MasterServer in teste.
http://cs16-download.com - Download CS 1.6
http://download-cs16.biz - Download CS 1.6
http://download-cs16.eu - Download CS 1.6
http://download-cs16.org - Download CS 1.6
Post Reply

Return to “Cereri”

  • Information
  • Who is online

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