AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   special round (https://forums.alliedmods.net/showthread.php?t=250360)

rajhellboy 10-23-2014 05:03

special round
 
i saw this plugin on a server
where admin types /spr and chooses a weapon
and people have the same weapon and they have to fight
its also has a infinite he nade option
can anyone help me
its name was special round i think i searched but was unable to find it

Albanian Zombie 10-23-2014 13:06

Re: special round
 
I hope this helps you.

joshknifer 10-23-2014 13:31

Re: special round
 
So it looks for people who bought the same weapon and makes them fight? Or it gives everybody that weapon and makes them fight? Is this for a classic server or for a JB mod? Does it last one round or every round you choose a different gun? How does the round end? Details!

rajhellboy 10-23-2014 14:55

Re: special round
 
@albanian zombie not that one admin writes a command /spr and then he chooses a gun round in which all the people get the same weapons and it lasts for 1 round when ct or it's are eliminated

popeye10 11-07-2014 06:15

Re: special round
 
[IMG]http://s28.************/s4k64w7n1/image.jpg[/IMG]


When admin Type /spr .... make Like This :)

BhK 12-14-2014 22:10

Re: special round
 
Hi,
The plugin mentioned above is a private plugin, the author only provides the compile file as its source code is private.

indraraj striker 12-14-2014 22:24

Re: special round
 
Quote:

Originally Posted by BhK (Post 2235447)
Hi,
The plugin mentioned above is a private plugin, the author only provides the compile file as its source code is private.

remove amxx -_- Do not upload here
Dont break the rule
read rule

https://forums.alliedmods.net/misc.php?do=showrules

Eviatar Mor 12-15-2014 01:58

Re: special round
 
Quote:

Originally Posted by rajhellboy (Post 2214725)
i saw this plugin on a server
where admin types /spr and chooses a weapon
and people have the same weapon and they have to fight
its also has a infinite he nade option
can anyone help me
its name was special round i think i searched but was unable to find it

Im from my phone but when i will be on my computer i will make it for u.
But tell me what u want exactly like what weapons , etc...

popeye10 12-15-2014 02:45

Re: special round
 
when admin type /spr
then menu open
1.Knife round
2.grenade+knife round
3.shotgun round
4.deagle round
5.awp round
6.pistul round
7.random pistul round
8. m4a1 round
9.ak-47 round
knife compulsary in all round& admin start any 1 round ,
suppose start deagle round, then all alive players got deagle & knife only
players can't buy any thing

Eviatar Mor 12-15-2014 06:34

Re: special round
 
Quote:

Originally Posted by popeye10 (Post 2235487)
when admin type /spr
then menu open
1.Knife round
2.grenade+knife round
3.shotgun round
4.deagle round
5.awp round
6.pistul round
7.random pistul round
8. m4a1 round
9.ak-47 round
knife compulsary in all round& admin start any 1 round ,
suppose start deagle round, then all alive players got deagle & knife only
players can't buy any thing

PHP Code:

//* Plugin generated by AMXX-Studio */

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

/* credits:
Flicker For Random Pistols
v3x For amxx menu generator
Arkshine For disable buy
zmd94 For Give me The Code by Arkshine
*/

enum _:g_eWeaponData
{
_NameForChat[32],
_WeaponName[32],
_Ammo,
_CSW
}

enum _:g_eWeaponTypes
{
S
}

new const 
g_szSecondary[][g_eWeaponData]=
{
{
"Glock18",     "weapon_glock18",     240,     CSW_GLOCK18},
{
"Usp",     "weapon_usp",        240,     CSW_USP},
{
"P228",     "weapon_p228",        240,     CSW_P228},
{
"Dual Elites""weapon_elite",     240,     CSW_ELITE},
{
"Fiveseven",     "weapon_fiveseven",    240,     CSW_FIVESEVEN},
{
"Deagle",     "weapon_deagle",     240,     CSW_DEAGLE}
}

new 
g_WpnID[g_eWeaponTypes]
new 
EnabledCvar

public plugin_init() {
register_plugin("Special Round""Version""Constentine")
register_clcmd("amx_sprmenu""SprMenuShow")
register_clcmd("say /spr""SprMenuShow")

EnabledCvar register_cvar("amx_enable""1")// Enable/Disable Plugin
}

public 
SprMenuShow(id)
{
if(
get_pcvar_numEnabledCvar ) && get_user_flags(id) & ADMIN_ALL)
{
new 
menu menu_create("Special Round""SprMenuHandler"
menu_additem(menu"Knife round""1"0
menu_additem(menu"grenade+knife round""2"0
menu_additem(menu"shotgun round""3"0
menu_additem(menu"deagle round""4"0
menu_additem(menu"awp round""5"0
menu_additem(menu"random pistul round""6"0
menu_additem(menu"m4a1 round""7"0
menu_additem(menu"ak-47 round""8"0
menu_additem(menu"tmp round""9"0
menu_additem(menu"Unlimated Grenades round""10"0
menu_setprop(menuMPROP_EXITMEXIT_ALL

menu_display(idmenu0
}
}

public 
SprMenuHandler(idmenuitem)
{
if( 
item == MENU_EXIT )
{
menu_destroy(menu);
return 
PLUGIN_HANDLED;
}
new 
data[6], szName[33]; 
new 
accescallback;
menu_item_getinfo(menuitemaccesdata,charsmax(data), szName,charsmax(szName), callback
new 
key str_to_num(data); 
switch(
key
{
case 
1: { 
hideBuyIcon
strip_user_weapons
(id
give_item(id"weapon_knife")
client_print(0print_chat"Admin Choose Knife Round!")
}
case 
2: {
hideBuyIcon
strip_user_weapons
(id
give_item(id"weapon_knife")
give_item(id"weapon_hegrenade")
give_item(id"weapon_flashbang")
give_item(id"weapon_flashbang")
give_item(id"weapon_smokegrenade")  
client_print(0print_chat"Admin Choose Grenades And Knife Round!")
}
case 
3: {
hideBuyIcon
strip_user_weapons
(id
give_item(id"weapon_m3")
give_item(id"weapon_xm1014")
cs_set_user_bpammo(id,CSW_M3,240)  
cs_set_user_bpammo(id,CSW_XM1014,240
client_print(0print_chat"Admin Choose Shotgun Round!"
}
case 
4: {
hideBuyIcon
strip_user_weapons
(id
give_item(id"weapon_deagle")
cs_set_user_bpammo(id,CSW_DEAGLE,240)  
client_print(0print_chat"Admin Choose Deagle Round!")
}
case 
5: {
hideBuyIcon
strip_user_weapons
(id
give_item(id"weapon_awp")
cs_set_user_bpammo(id,CSW_AWP,240)  
client_print(0print_chat"Admin Choose Awp Round!")
}
case 
6: {
hideBuyIcon
strip_user_weapons
(id
g_WpnID[S] = random_num(1charsmax(g_szSecondary))
give_item(idg_szSecondary[g_WpnID[S]][_WeaponName])
cs_set_user_bpammo(idg_szSecondary[g_WpnID[S]][_CSW], g_szSecondary[g_WpnID[S]][_Ammo])
client_print(0print_chat"Admin Choose Random Pistols Round!")
}
case 
7: {
hideBuyIcon
strip_user_weapons
(id
give_item(id"weapon_m4a1")
cs_set_user_bpammo(id,CSW_M4A1,240)
client_print(0print_chat"Admin Choose M4A1 Round!"
}
case 
8: {
hideBuyIcon
strip_user_weapons
(id
give_item(id"weapon_ak47")
cs_set_user_bpammo(id,CSW_AK47,240
client_print(0print_chat"Admin Choose AK47 Round!")
}
case 
9: {
hideBuyIcon
strip_user_weapons
(id
give_item(id"weapon_tmp")
cs_set_user_bpammo(id,CSW_TMP,240
client_print(0print_chat"Admin Choose Tmp Round!")
}
case 
10: {
hideBuyIcon
strip_user_weapons
(id
give_item(id"weapon_hegrenade")
give_item(id"weapon_flashbang")
give_item(id"weapon_flashbang")
give_item(id"weapon_smokegrenade")
cs_set_user_bpammo(id,CSW_HEGRENADE,240)  
cs_set_user_bpammo(id,CSW_FLASHBANG,240)  
cs_set_user_bpammo(id,CSW_SMOKEGRENADE,240)  
client_print(idprint_chat"Admin Choose Unlimated Grenades Round!")
}
}
menu_destroy(menu);
return 
PLUGIN_HANDLED;


hideBuyIcon()
{
new const 
szClassnameBuy[] = "func_buyzone"
remove_entity_name(szClassnameBuy)
new 
ent create_entity(szClassnameBuy)
entity_set_origin(entFloat:{8192.08192.08192.0})
entity_set_int(entEV_INT_solidSOLID_NOT)




All times are GMT -4. The time now is 09:26.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.