Cerere modificare

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
ah3llboy
Membru, skill +1
Membru, skill +1
Posts: 156
Joined: 10 Jul 2012, 07:34
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Been thanked: 1 time
Contact:

17 Jul 2012, 22:00

vr si eu acest plugin
| Afiseaza codul
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <hamsandwich>
#include <fun>
			
new plugin_on
new iUsedMenu[33]

enum Color
{
	NORMAL = 1, // clients scr_concolor cvar color
	GREEN, // Green Color
	TEAM_COLOR, // Red, grey, blue
	GREY, // grey
	RED, // Red
	BLUE, // Blue
}

new TeamName[][] = 
{
	"",
	"TERRORIST",
	"CT",
	"SPECTATOR"
}


public plugin_init(){

    register_plugin("VIP MENU", "1.1", "dragosh, MIk3")
    register_menucmd(register_menuid("VIP MENU"), 1023, "setoption") 
    plugin_on = register_cvar("amx_vipmenu", "1")


    register_clcmd("say /vipmenu", "vip_menu", ADMIN_CVAR)

    register_clcmd("say /vmenu", "vip_menu", ADMIN_CVAR)
    register_clcmd("say_team /vmenu", "vip_menu", ADMIN_CVAR)
    RegisterHam(Ham_Spawn, "player", "iReset", 1);
}

public iReset(id) {
    if(!is_vip_ok(id))
        return

    iUsedMenu[id] = false
}

public vip_menu(id,level,cid) {
    if(!is_vip_ok(id))
        return

    iUsedMenu[id]++

    if ( !get_pcvar_num(plugin_on) ) 
    {	
        ColorChat(id, RED, "Vip Menu este dezactivat.");
        return;
    }
		
    if(iUsedMenu[id] > 1) 
        return

    chooseoption(id)
}

public chooseoption(id)
{
    new menu[192] 
    new keys = MENU_KEY_0|MENU_KEY_1|MENU_KEY_2|MENU_KEY_3|MENU_KEY_4|MENU_KEY_5|MENU_KEY_6|MENU_KEY_7|MENU_KEY_8|MENU_KEY_9     
    format(menu, 191, "\yVIP MENU^n^n\r1.\w 250 HP^n\r2.\w Armura^n\r3.\w MP5 Navy^n\r4.\w Schmidt TMP^n\r5.\w Ingram Mac 10^n\r6.\w .40 Dual Elites^n^n\r7.\w ES Five-Seven^n\r8.\w Deagle ^n\r9.\w Scut^n^n\r0.\w Iesire") 
    show_menu(id, keys, menu)      
    return PLUGIN_CONTINUE
}

public setoption(id, key, menu)
{
    if(key == 0) {
         new name[17]
         get_user_name(id, name, 18)
         set_user_health(id,250)
         ColorChat(0, GREEN, "^x04[VIP] ^x03%s^x01 a baut un RedBull si a primit^x04 250 HP", name)
         return PLUGIN_HANDLED
    }

    if(key == 1) {
         new name[17]
         get_user_name(id, name, 18)
         set_user_armor(id, 300)
         ColorChat(0, GREEN, "^x04[VIP] ^x03%s^x01 a imbracat o^x04 Armura cu 300 Aparare", name)
         return PLUGIN_HANDLED

    }

    if(key == 2) {
         new name[17]
         get_user_name(id, name, 18)
         give_item(id, "weapon_mp5navy")
         ColorChat(id, TEAM_COLOR, "^x04[VIP] ^x03%s^x01 s-a echipa cu o arma ultra-usoara,^x04 MP5 Navy", name)
         return PLUGIN_HANDLED
    }

    if(key == 3) {
         new name[17]
         get_user_name(id, name, 18)
         give_item(id, "weapon_tmp")
         ColorChat(0, GREEN, "^x04[VIP] ^x03%s^x01 este gata de lupta,iese la atac cu un^x04 Schmidt TMP", name)
         return PLUGIN_HANDLED

    }

    if(key == 4) {
         new name[17]
         get_user_name(id, name, 18)
         give_item(id, "weapon_mac10")
         ColorChat(0, GREEN, "^x04[VIP] ^x03%s^x01 face pe Gangesterul inarmat cu^x04 MAC 10", name)
         return PLUGIN_HANDLED
    }

    if(key == 5) {
         new name[17]
         get_user_name(id, name, 18)
         give_item(id, "weapon_elite")
         ColorChat(0, GREEN, "^x04[VIP] ^x03%s^x01 tocmai si-a luat doua pistoale stralucitoare,^x04 .40 Dual Elites", name)
         return PLUGIN_HANDLED
    }
    
    if(key == 6) {
         new name[17]
         get_user_name(id, name, 18)
         give_item(id, "weapon_fiveseven")
         ColorChat(0, GREEN, "^x04[VIP] ^x03%s^x01 se joaca de-a Agentul 007 cu noul sau^x04 ES Five-Seven", name)
         return PLUGIN_HANDLED
    }

    if(key == 7) {
         new name[17]
         get_user_name(id, name, 18)
         give_item(id, "weapon_deagle")
         ColorChat(0, RED, "^x04[VIP] ^x03%s^x01 si-a luat un ^x04Deagle", name)
         return PLUGIN_HANDLED
    }

    if(key == 8) {
         new name[17]
         get_user_name(id, name, 18)
         give_item(id, "weapon_shield")
         ColorChat(0, RED, "^x04[VIP] ^x03%s^x01 a trecut pe modul defensiv,el se apara folosind ^x04Scutul Antiglont", name)
         return PLUGIN_HANDLED
    }
         
    else {
         return PLUGIN_HANDLED
    }

    return PLUGIN_HANDLED
}

public plugin_precache()
{
        precache_model("models/player/vip/vip.mdl")
	return PLUGIN_CONTINUE 

}

ColorChat(id, Color:type, const msg[], {Float,Sql,Result,_}:...)
{
	new message[256];

	switch(type)
	{
		case NORMAL: // clients scr_concolor cvar color
		{
			message[0] = 0x01;
		}
		case GREEN: // Green
		{
			message[0] = 0x04;
		}
		default: // White, Red, Blue
		{
			message[0] = 0x03;
		}
	}

	vformat(message[1], 251, msg, 4);

	// Asigurate ca mesajul nu este mai mare de 192 de caractere. Iti va pica serverul.
	message[192] = '^0';

	new team, ColorChange, index, MSG_Type;
	
	if(id)
	{
		MSG_Type = MSG_ONE;
		index = id;
	} else {
		index = FindPlayer();
		MSG_Type = MSG_ALL;
	}
	
	team = get_user_team(index);
	ColorChange = ColorSelection(index, MSG_Type, type);

	ShowColorMessage(index, MSG_Type, message);
		
	if(ColorChange)
	{
		Team_Info(index, MSG_Type, TeamName[team]);
	}
}

ShowColorMessage(id, type, message[])
{
	static bool:saytext_used;
	static get_user_msgid_saytext;
	if(!saytext_used)
	{
		get_user_msgid_saytext = get_user_msgid("SayText");
		saytext_used = true;
	}
	message_begin(type, get_user_msgid_saytext, _, id);
	write_byte(id)		
	write_string(message);
	message_end();	
}

Team_Info(id, type, team[])
{
	static bool:teaminfo_used;
	static get_user_msgid_teaminfo;
	if(!teaminfo_used)
	{
		get_user_msgid_teaminfo = get_user_msgid("TeamInfo");
		teaminfo_used = true;
	}
	message_begin(type, get_user_msgid_teaminfo, _, id);
	write_byte(id);
	write_string(team);
	message_end();

	return 1;
}

ColorSelection(index, type, Color:Type)
{
	switch(Type)
	{
		case RED:
		{
			return Team_Info(index, type, TeamName[1]);
		}
		case BLUE:
		{
			return Team_Info(index, type, TeamName[2]);
		}
		case GREY:
		{
			return Team_Info(index, type, TeamName[0]);
		}
	}

	return 0;
}

FindPlayer()
{
	new i = -1;

	while(i <= get_maxplayers())
	{
		if(is_user_connected(++i))
			return i;
	}

	return -1;
}

stock is_vip_ok(id) {
       if(get_user_flags(id) == read_flags("abcdefghijklmnopqrstu")) {
              if(is_user_alive(id) && !is_user_bot(id)) {
                     return 1;
              } else {
                     return 0;
              }
       } else

       if(get_user_flags(id) == read_flags("abcde")) {
              if(is_user_alive(id) && !is_user_bot(id)) {
                     return 1;
              } else {
                     return 0;
              }
       } else {
              return 0;
       }

       return 0;
}
daca se poate sa fie doua meniuri Ct Si T la T deagle,invizibiliti,scut,viata 250,armura 250
ah3llboy
Membru, skill +1
Membru, skill +1
Posts: 156
Joined: 10 Jul 2012, 07:34
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Been thanked: 1 time
Contact:

19 Jul 2012, 13:43

UPPP!!
compaq
Fost moderator
Fost moderator
Posts: 2598
Joined: 01 Dec 2008, 15:32
Detinator Steam: Da
Reputatie: Fost eXtream Mod
Fost contribuitor
Fost manager
Fost Scripter eXtreamCS
Has thanked: 15 times
Been thanked: 150 times

19 Jul 2012, 23:06

Mai multe detalii. Sa fie tot pentru VIP? Cand sa se afiseze?
ah3llboy
Membru, skill +1
Membru, skill +1
Posts: 156
Joined: 10 Jul 2012, 07:34
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Been thanked: 1 time
Contact:

20 Jul 2012, 06:22

pentru accesle care sunt in plugin sunt accesele acolo si daca e sa scoti skin vip ca la mine da la toti skin vip

EDIT: adica DetinatoR si VIP
compaq
Fost moderator
Fost moderator
Posts: 2598
Joined: 01 Dec 2008, 15:32
Detinator Steam: Da
Reputatie: Fost eXtream Mod
Fost contribuitor
Fost manager
Fost Scripter eXtreamCS
Has thanked: 15 times
Been thanked: 150 times

20 Jul 2012, 10:03

ah3llboy wrote:daca se poate sa fie doua meniuri Ct Si T la T deagle,invizibiliti,scut,viata 250,armura 250
La CT sa fie la fel meniul ca la T?
ah3llboy
Membru, skill +1
Membru, skill +1
Posts: 156
Joined: 10 Jul 2012, 07:34
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Been thanked: 1 time
Contact:

20 Jul 2012, 11:00

nu meniul ct il lasi acolo si faci alt meniu separat pentru T cu deagle,invizibiliti,scut,viata 250,armura 250
ah3llboy
Membru, skill +1
Membru, skill +1
Posts: 156
Joined: 10 Jul 2012, 07:34
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Been thanked: 1 time
Contact:

20 Jul 2012, 18:00

UPP!!
ah3llboy
Membru, skill +1
Membru, skill +1
Posts: 156
Joined: 10 Jul 2012, 07:34
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Been thanked: 1 time
Contact:

21 Jul 2012, 08:24

UPP!!!
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 26 guests