User
Pass
2FA
 
 

[Cerere] Plugin /vmenu

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Plugins - Help / Support
Author Message709
xMaTeYx

[Mentally Stable]



Status: Offline
(since 01-04-2016 13:59)
Joined: 09 Mar 2016
Posts: 4, Topics: 1
Location: Romania

Reputation: 3.1

Post Posted: 09-03-2016, 17:57:48 | Translate post to: ... (Click for more languages)

Nume: MaTeY
Descriere plugin: Aș dori un plugin care sa fie deschis prin comanda /vmenu . Doar pentru V.I.P.
In el sa fie :
1 SuperKnife [x3 Dmg] [Doar Zm]
2 Revive [Doar CT]
3 Gloante Infinite [Doar CT]
4 Speed
5 Invizibilitate [1 minut]
6 GodMode [1 minut]
7 Teleport [Doar CT] aici sa fie și un bind : ex bind tasta "teleport"
8 Gravity
9 NoClip [30 secunde]
10 Un deagle cu model care sã aibe x4 dmg.

Alte detalii: Sã poatã folosi o singura abilitate pe runda.
Sã aparã toate abilitãțile într-un singur meniu cand vriu /vmenu și cand sunt zm sã nu pot folosi abilitãțile de ct și cand sunt ct sa nu pot folosit abilitatile de zm.

Exemplu: -



Last edited by xMaTeYx on 24-03-2016, 19:37:31; edited 2 times in total
0 0
  
Back to top
View user's profile Send private message
xMaTeYx

[Mentally Stable]



Status: Offline
(since 01-04-2016 13:59)
Joined: 09 Mar 2016
Posts: 4, Topics: 1
Location: Romania

Reputation: 3.1

Post Posted: 15-03-2016, 16:38:36 | Translate post to: ... (Click for more languages)

UP !
0 0
  
Back to top
View user's profile Send private message
xMaTeYx

[Mentally Stable]



Status: Offline
(since 01-04-2016 13:59)
Joined: 09 Mar 2016
Posts: 4, Topics: 1
Location: Romania

Reputation: 3.1

Post Posted: 20-03-2016, 16:11:58 | Translate post to: ... (Click for more languages)

UP !
0 0
  
Back to top
View user's profile Send private message
Sa[q]

[FCSB]



Status: Offline
(since 31-01-2018 18:34)
Joined: 24 Apr 2015
Posts: 823, Topics: 125
Location: Bucuresti

Reputation: 90.6
Votes: 10

 
Post Posted: 25-03-2016, 19:24:42 | Translate post to: ... (Click for more languages)

Poftim incearca-l pe accesta... Nush daca este cea ce vroiai !

Code:
#pragma semicolon 1
#include <amxmodx>
#include <cstrike>
#include <engine>
#include <fun>
#include <hamsandwich>

#define ADMIN_JBVIP ADMIN_RESERVATION

// Define the Plugin Version
new const VERSION[] = { "1.0" };

// PREFIX
new const PREFIX[] = { "!g[ Base Builder ]!n" };

new VipUsed[33];
new HasSpeed[33];

new Float:fast_speed = 400.0;
new Float:normal_speed = 250.0;

public plugin_init()
{
   register_plugin("BaseBuilder: VIP Menu", VERSION, "");

   RegisterHam(Ham_Spawn, "player", "FwdHamSpawn_Post", 1);
   RegisterHam(Ham_Item_PreFrame, "player", "FwdPreFrame_Post", 1);
   
   register_clcmd("say vmenu", "cmdVmenu");
   register_clcmd("say /vmenu", "cmdVmenu");
   register_clcmd("say_team vmenu", "cmdVmenu");
   register_clcmd("say_team /vmenu", "cmdVmenu");
}

public FwdPreFrame_Post(id)
{
   if(is_user_alive(id) && HasSpeed[id])
      set_user_maxspeed(id, fast_speed);
}

public FwdHamSpawn_Post(id)
{
   HasSpeed[id] = false;
   VipUsed[id] = false;
   set_user_maxspeed(id, normal_speed);
   set_user_rendering( id, _, 0, 0, 0, _, 0 ); 
}

public cmdVmenu(id)
{
   if(!(get_user_flags(id) & ADMIN_JBVIP))
   {
      client_printc(id, "%s Menu apenas para !gVIP !n,Queres ser vip?, Escreve !g/vip !npara comprares.", PREFIX);
      
      return PLUGIN_HANDLED;
   }
   
   if(VipUsed[id])
   {
      client_printc(id, "%s Tu ja usaste !gVIP Menu!n nesta ronda. Por favor, Espera ate proxima ronda", PREFIX);
      
      return PLUGIN_HANDLED;
   }
   
   switch(cs_get_user_team(id))
   {
      case CS_TEAM_T:
         VipTMenu(id);
      
      case CS_TEAM_CT:
         VipCTMenu(id);
   }
   
   return PLUGIN_HANDLED;
}

public VipCTMenu(id)
{
   new menu = menu_create("\yVIP Menu \r(CT):^n", "VipCTMenu_handler");

   menu_additem(menu, "\w150 Hp + 100 Colete", "1", 0);
   menu_additem(menu, "\wM249 + Deagle", "2", 0);
   menu_additem(menu, "\wSpeed", "3", 0);
   menu_additem(menu, "\wRevive", "4", 0);
   menu_additem(menu, "\wG3SG1", "5", 0);
   
   menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);
   menu_display(id, menu, 0);
}

public VipCTMenu_handler(id, menu, item)
{
   if( item == MENU_EXIT )
   {
      menu_destroy(menu);
      return PLUGIN_HANDLED;
   }

   new data[6], iName[64];
   new access, callback;
   menu_item_getinfo(menu, item, access, data,5, iName, 63, callback);

   new key = str_to_num(data);

   switch(key)
   {
      case 1:
      {
         set_user_health(id, get_user_health(id) + 150);
         set_user_armor(id, get_user_armor(id) + 100);
         VipUsed[id] = true;
         
         client_printc(id, "%s Tu recebeste !g150 Hp!n + !g100 Colete!n", PREFIX);
      }
      case 2:
      {
            give_item(id, "weapon_m249");
            give_item(id, "weapon_deagle");
            cs_set_user_bpammo(id, CSW_M249, 200);
            cs_set_user_bpammo(id, CSW_DEAGLE, 100);
         
         VipUsed[id] = true;
         
         client_printc(id, "%s Tu recebeste !gM249!n + !gDeagle!n", PREFIX);
      }
      case 3:
      {
         VipUsed[id] = true;
         HasSpeed[id] = true;
         
         set_user_maxspeed(id, fast_speed);
         
         client_printc(id, "%s Tu recebeste !gSpeed!n", PREFIX);
   }
         
        case 4:
        {
               
            ExecuteHamB(Ham_CS_RoundRespawn, id);
 
            VipUsed[id] = true;

            client_printc(id, "%s Tu recebeste !gRevive", PREFIX);
        }
           
              case 5:
        {
            give_item(id, "weapon_g3sg1");
            cs_set_user_bpammo(id, CSW_G3SG1, 200);

            VipUsed[id] = true;

            client_printc(id, "%s Tu recebeste !gG3sg1", PREFIX);
      }
   }

   menu_destroy(menu);
   return PLUGIN_HANDLED;
}

public VipTMenu(id)
{
   new menu = menu_create("\yVIP Menu \r(TR):^n", "VipTMenu_handler");

   menu_additem(menu, "\w5000 Hp + 5000 Colete", "1", 0);
   menu_additem(menu, "\wSpeed", "2", 0);
   
   menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);
   menu_display(id, menu, 0);
}

public VipTMenu_handler(id, menu, item)
{
   if( item == MENU_EXIT )
   {
      menu_destroy(menu);
      return PLUGIN_HANDLED;
   }

   new data[6], iName[64];
   new access, callback;
   menu_item_getinfo(menu, item, access, data,5, iName, 63, callback);

   new key = str_to_num(data);

   switch(key)
   {
      case 1:
      {
            set_user_health(id, get_user_health(id) + 5000);
                                         set_user_armor(id, get_user_armor(id) + 5000);
                                         VipUsed[id] = true;

         
         client_printc(id, "%s Tu recebeste !g5000 HP + !g5000 Colete!n", PREFIX);
         
         VipUsed[id] = true;
      }
      case 2:
      {
         VipUsed[id] = true;
         HasSpeed[id] = true;
         
         set_user_maxspeed(id, fast_speed);
         
         client_printc(id, "%s Tu recebeste !gSpeed!n", PREFIX);
      }
      
      case 3:
      {
         set_user_health(id, get_user_health(id) + 50);
         set_user_armor(id, get_user_armor(id) + 150);
         VipUsed[id] = true;
         
         client_printc(id, "%s Tu recebeste !g50 Hp!n + !g150 Colete!n", PREFIX);
      }
   }

   menu_destroy(menu);
   return PLUGIN_HANDLED;
}

// Colour Chat
stock client_printc(const id, const input[], any:...)
{
    new count = 1, players[32];
    static msg[191];
    vformat(msg, 190, input, 3);
   
    replace_all(msg, 190, "!g", "^x04"); // Green Color
    replace_all(msg, 190, "!n", "^x01"); // Default Color
    replace_all(msg, 190, "!t", "^x03"); // Team Color
   
    if (id) players[0] = id; else get_players(players, count, "ch");
    {
        for (new i = 0; i < count; i++)
        {
            if (is_user_connected(players[i]))
            {
                message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i]);
                write_byte(players[i]);
                write_string(msg);
                message_end();
            }
        }
    }
}

0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID
xMaTeYx

[Mentally Stable]



Status: Offline
(since 01-04-2016 13:59)
Joined: 09 Mar 2016
Posts: 4, Topics: 1
Location: Romania

Reputation: 3.1

Post Posted: 25-03-2016, 20:51:02 | Translate post to: ... (Click for more languages)

Nu e . Dar mulțumesc pentru că ai încercat .
0 0
  
Back to top
View user's profile Send private message

  Topic locked


Topic is closed, you cannot post any messages in it anymore

Locked by destroi112, 05 August 2016 08:21



 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Plugins - Help / Support  


The time now is 16-12-2024, 21:56:04
Copyright info

Based on phpBB ro/com
B

 
 
 







I forgot my password


This message appears only once, so
like us now until it's too late ! :D
x