Raised This Month: $12 Target: $400
 3% 

special round


Post New Thread Reply   
 
Thread Tools Display Modes
Eviatar Mor
Senior Member
Join Date: Jun 2014
Location: israel
Old 12-17-2014 , 10:49   Re: special round
Reply With Quote #21

Quote:
Originally Posted by DeepModi View Post
As Popeye10 describe in the img that what i want.
I want to change the function.
I mean
i want it to use with amx_sprmenu in console.
I dont want this in the normal chat.
so can you do this?
just see the last code.
i do /spr and amx_sprmenu in console.
Eviatar Mor is offline
bsparty
Member
Join Date: Sep 2014
Location: India
Old 12-27-2014 , 11:51   Re: special round
Reply With Quote #22

Quote:
Originally Posted by Eviatar Mor View Post
just see the last code.
i do /spr and amx_sprmenu in console.
Eviatar Mor,nice work brother

Eviatar, Popeye10 wanted you to add a feature or re-code the plugin in such a manner that if we select a round(lets us assume only knife round)then we should not be able to choose the round again . Each round must come with a roundlimit of 1 i.e if one round is in progress then we should not be able to select other round via /spr
bsparty is offline
priyojit
Member
Join Date: Nov 2013
Location: Kolkata
Old 12-27-2014 , 12:41   Re: special round
Reply With Quote #23

Also Put Ads That
[SPR] Admin %s Started %s Round
[SPR] % Round End.

After End 1 More Restart Then In DHud Message It Will Come "Liveee^nPlay Hard, Go Pro"
__________________
Learning Pawn [20% Completed] | Java [100%] | PHP [100%] | CSS [100%]
priyojit is offline
Eviatar Mor
Senior Member
Join Date: Jun 2014
Location: israel
Old 12-28-2014 , 05:43   Re: special round
Reply With Quote #24

Quote:
Originally Posted by priyojit View Post
Also Put Ads That
[SPR] Admin %s Started %s Round
[SPR] % Round End.

After End 1 More Restart Then In DHud Message It Will Come "Liveee^nPlay Hard, Go Pro"
i put only -
Quote:
[SPR] Admin %s Started %s Round
[SPR] % Round End.
DHud Message It Will Come "Liveee^nPlay Hard, Go Pro"
PHP Code:
/* Plugin generated by AMXX-Studio */

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

/* credits:
Flicker For Random Pistols
v3x For amxx menu generator
Arkshine For disable buy
zmd94 For Give me The Code by Arkshine
Exolent[jNr] for random colors
*/

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""ConstentinoN")
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(idclientmenuitem)
{
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(client
give_item(client"weapon_knife")
client_print(0print_chat"[SPR] Admin Choose Knife Round!")
}
case 
2: {
hideBuyIcon
strip_user_weapons
(client
give_item(client"weapon_knife")
give_item(client"weapon_hegrenade")
give_item(client"weapon_flashbang")
give_item(client"weapon_flashbang")
give_item(client"weapon_smokegrenade")  
client_print(0print_chat"[SPR] Admin Choose Grenades And Knife Round!")
}
case 
3: {
hideBuyIcon
strip_user_weapons
(client
give_item(client"weapon_m3")
give_item(client"weapon_xm1014")
cs_set_user_bpammo(client,CSW_M3,240)  
cs_set_user_bpammo(client,CSW_XM1014,240
client_print(0print_chat"[SPR] Admin Choose Shotgun Round!"
}
case 
4: {
hideBuyIcon
strip_user_weapons
(client
give_item(client"weapon_deagle")
cs_set_user_bpammo(client,CSW_DEAGLE,240)  
client_print(0print_chat"[SPR] Admin Choose Deagle Round!")
}
case 
5: {
hideBuyIcon
strip_user_weapons
(client
give_item(client"weapon_awp")
cs_set_user_bpammo(client,CSW_AWP,240)  
client_print(0print_chat"[SPR] Admin Choose Awp Round!")
}
case 
6: {
hideBuyIcon
strip_user_weapons
(client
g_WpnID[S] = random_num(1charsmax(g_szSecondary))
give_item(clientg_szSecondary[g_WpnID[S]][_WeaponName])
cs_set_user_bpammo(clientg_szSecondary[g_WpnID[S]][_CSW], g_szSecondary[g_WpnID[S]][_Ammo])
client_print(0print_chat"[SPR] Admin Choose Random Pistols Round!")
}
case 
7: {
hideBuyIcon
strip_user_weapons
(client
give_item(client"weapon_m4a1")
cs_set_user_bpammo(client,CSW_M4A1,240)
client_print(0print_chat"[SPR] Admin Choose M4A1 Round!"
}
case 
8: {
hideBuyIcon
strip_user_weapons
(client
give_item(client"weapon_ak47")
cs_set_user_bpammo(client,CSW_AK47,240
client_print(0print_chat"[SPR] Admin Choose AK47 Round!")
}
case 
9: {
hideBuyIcon
strip_user_weapons
(client
give_item(client"weapon_tmp")
cs_set_user_bpammo(client,CSW_TMP,240
client_print(0print_chat"[SPR] Admin Choose Tmp Round!")
}
case 
10: {
hideBuyIcon
strip_user_weapons
(client
give_item(client"weapon_hegrenade")
give_item(client"weapon_flashbang")
give_item(client"weapon_flashbang")
give_item(client"weapon_smokegrenade")
cs_set_user_bpammo(client,CSW_HEGRENADE,240)  
cs_set_user_bpammo(client,CSW_FLASHBANG,240)  
cs_set_user_bpammo(client,CSW_SMOKEGRENADE,240)  
client_print(0print_chat"[SPR] Admin Choose Unlimated Grenades Round!")
}
}
set_dhudmessage(random(256), random(256), random(256))
show_dhudmessage(client"Liveee^nPlay Hard, Go Pro")
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)

Eviatar Mor is offline
feifei
Senior Member
Join Date: Sep 2014
Location: India
Old 02-15-2015 , 03:36   Re: special round
Reply With Quote #25

Will it work /vote ??
__________________
MaTriX is my life
Visit Here ;) For ZP MODs
feifei is offline
ashwink7
Junior Member
Join Date: Feb 2014
Old 03-30-2015 , 11:57   Re: special round
Reply With Quote #26

This is my plugin iam the original author of this plugin since this was private plugin i did not release it in allied modders so before posting any further versions of this plugin you have to ask me or consult me about the same i can give proofs also

Last edited by ashwink7; 03-30-2015 at 12:06.
ashwink7 is offline
joshknifer
Veteran Member
Join Date: Jun 2011
Location: Denver, CO
Old 03-30-2015 , 17:01   Re: special round
Reply With Quote #27

Quote:
Originally Posted by ashwink7 View Post
This is my plugin iam the original author of this plugin since this was private plugin i did not release it in allied modders so before posting any further versions of this plugin you have to ask me or consult me about the same i can give proofs also
Provide the proof then. This plugin was written from scratch by a member in response to one seen in a server.
__________________
joshknifer is offline
Send a message via Skype™ to joshknifer
ashwink7
Junior Member
Join Date: Feb 2014
Old 03-31-2015 , 05:26   Re: special round
Reply With Quote #28

Quote:
Originally Posted by joshknifer View Post
Provide the proof then. This plugin was written from scratch by a member in response to one seen in a server.
the one seen in server was my plugin only here is the proof see the date of post
http://prntscr.com/6nmbfy
ashwink7 is offline
joshknifer
Veteran Member
Join Date: Jun 2011
Location: Denver, CO
Old 03-31-2015 , 11:49   Re: special round
Reply With Quote #29

That is fine, but since you don't provide the source code, you can't claim that the guy stole your code. Ideas are free to be copied, as long as the work is original.
__________________
joshknifer is offline
Send a message via Skype™ to joshknifer
ashwink7
Junior Member
Join Date: Feb 2014
Old 03-31-2015 , 15:29   Re: special round
Reply With Quote #30

Quote:
Originally Posted by joshknifer View Post
That is fine, but since you don't provide the source code, you can't claim that the guy stole your code. Ideas are free to be copied, as long as the work is original.
I never claimed that he stole my code all i said was that this was my plugin i released it first so i just told him that if he releases any furder versions of it he should ask me or consult me for the same
ashwink7 is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:16.


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