It is currently 16 Jan 2019 14:15



Forum rules


Accesează link-ul pentru a putea vedea regulile forumului

Daca doriti sa vi se modifice un plugin, va rugam postati aici .



Reply to topic  [ 2 posts ] 
 [Plugin] Meniu VIP 
Author Message
Membru, skill 0
Membru, skill 0
User avatar

Joined: 29 Nov 2015 08:01
Posts: 29
Location: Gangster
Detinator Steam: Da
CS Status: Stil
Fond eXtream: 0
Plugin Cerut:Meniu VIP pentru DR
Descriere (adica ce face el mai exact):
Sa fie
AK47
DEAGLE
VIATA 300
SPEED
Dar speed sa ramana o runda doar apoi sa se dezactiveze / Si sa ramana chiar daca schimb arma / Apoi sa se dezactiveze, iar daca vreau sa l activez, il activez, da tot asa doar o runda
Si un mesaj Vipu X s-a conectat
Si daca este mort si vrea sa intre in meniu sa ii apara "Comanda poate fii folosita cand esti doar in viata"
Serverul ruleaza (HLDS/ReHLDS):HLDS
Versiune AMX Mod X:1.8.2
Modul Serverului:Deathrun


12 Jan 2019 03:48
Profile multumesc WWW
Scripter eXtreamCS
Scripter eXtreamCS
User avatar

Joined: 24 Aug 2011 11:24
Posts: 1666
Location: |<()|)
Detinator Steam: Da
CS Status: HLDS Builder
Detinator server CS: liber de contract
SteamID: riseofevo
Reputatie: Scripter eXtreamCS
Fond eXtream: 0
| Afiseaza codul
Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>
#include <hamsandwich>

#pragma tabsize 0

#define VIP_ACCESS   ADMIN_LEVEL_H
#define VITEZA   400.0

#define is_user_vip(%0)   (get_user_flags(%0)&VIP_ACCESS)

new bool:hs[33]

public plugin_init() {
   RegisterHam( Ham_Spawn, "player", "ham_PlayerSpawnPre", true );
   
   register_clcmd("say /vm","VM")
   register_clcmd("say_team /vm","VM")
}

public client_putinserver(id)
{
   if(is_user_vip(id)&&is_user_connected(id)&&!is_user_bot(id))
   {
      new name[32]
      get_user_name(id,name,charsmax(name))
      client_print(0,print_chat,"Vipu %s s-a conectat ",name)
   }
}

public client_PostThink(id)   if(is_user_alive(id)&&is_user_vip(id)&&hs[id])   set_user_maxspeed(id,VITEZA)

public ham_PlayerSpawnPre(id)   if(is_user_alive(id)&&is_user_vip(id)&&hs[id])   hs[id]=false

public VM(id)
{
   if(!is_user_alive(id))
   {
      client_print(id,print_chat,"Comanda poate fii folosita cand esti doar in viata")
      return
   }
   if(!is_user_vip(id))
   {
      client_print(id,print_chat,"Comanda poate fii folosita cand VIP")
      return
   }
   
   new gMenu = menu_create( "MENIU\y V.I.P", "thisContent" );
   
   menu_additem( gMenu, "AK47", "1" );
   menu_additem( gMenu, "DEAGLE", "2" );
   menu_additem( gMenu, "+300 HP", "3" );
   menu_additem( gMenu, "+SPEED", "4" );
   
   menu_setprop( gMenu, MPROP_EXIT, MEXIT_ALL );
   menu_display( id, gMenu, 0 );
}
public thisContent( id, Menu, Item )
{
   if( Item < 0 )
   {
      return 0;
   }
   
   new Key[ 3 ],Access, CallBack;
   menu_item_getinfo( Menu, Item, Access, Key, 2, _, _, CallBack );
   
   new isKey = str_to_num( Key );
   switch( isKey )
   {
      case 1:
      {
         give_item(id,"weapon_ak47")
         cs_set_user_bpammo(id,CSW_AK47,90)
      }
      case 2:
      {
         give_item(id,"weapon_deagle")
         cs_set_user_bpammo(id,CSW_DEAGLE,35)
      }
      case 3:
      {
         set_user_health(id,get_user_health(id)+300)
      }
      case 4:
      {
         if(hs[id])   return PLUGIN_HANDLED
         
         set_user_maxspeed(id,VITEZA)
         
         hs[id]=true
      }
   }
   
   return 1;
}

_________________
Stick with the best & regards Adryyy .


x , daNzeT , Arion , Chaos , Exolent , aNNakin , PoSiTiOn Of PoWeR , ExoTiQ , -UnQ- UHD , ViciousVixen , Arkshine , Askhanar , KronoS eXtream , alkaline , CryWolf , Fuffy , tre3fla , Rap^ , Hades Ownage , xPaw .


12 Jan 2019 14:29
Profile multumesc ICQ YIM
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: Baidu [Spider] and 55 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  

În cazul în care aveți probleme cu contul trimiteți un email sau mesaj la servicii_extream[arond]yahoo[punct]com

Powered by phpBB® Forum Software © phpBB Group