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

special round


Post New Thread Reply   
 
Thread Tools Display Modes
popeye10
Senior Member
Join Date: May 2014
Location: Navi Mumbai (India)
Old 12-15-2014 , 07:01   Re: special round
Reply With Quote #11

Eviatar Mor bro,tested & working gr8
but add the Special Round is 1 time per round.
suppose knife round start we can't start another round
__________________
popeye10 is offline
Eviatar Mor
Senior Member
Join Date: Jun 2014
Location: israel
Old 12-15-2014 , 07:50   Re: special round
Reply With Quote #12

Quote:
Originally Posted by popeye10 View Post
Eviatar Mor bro,tested & working gr8
but add the Special Round is 1 time per round.
suppose knife round start we can't start another round
im glad it work for u... but i not understand what the problem is ?
Eviatar Mor is offline
DeepModi
Junior Member
Join Date: Dec 2014
Old 12-15-2014 , 12:58   Re: special round
Reply With Quote #13

Oh you are really the great programmer
but when i copy your code and paste and try to compile its say pawn compiler not found
help me.
and also when i try to save the file I dont find save as ".amx" i save it as ".sma"
@Eviatar Mor

Last edited by DeepModi; 12-15-2014 at 13:04.
DeepModi is offline
DeepModi
Junior Member
Join Date: Dec 2014
Old 12-15-2014 , 13:06   Re: special round
Reply With Quote #14

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?
DeepModi is offline
Fuck For Fun
Veteran Member
Join Date: Nov 2013
Old 12-15-2014 , 13:33   Re: special round
Reply With Quote #15

Quote:
Originally Posted by Eviatar Mor View Post
i make it fast but try it :
[UnTested]

PHP Code:
/* Plugin generated by AMXX-Studio */

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

// Flicker For Random Pistols
new gBuyCommands[][] =   
{  
"usp""glock""deagle""p228""elites""fn57""m3""xm1014""mp5""tmp""p90""mac10""ump45""ak47",   
"galil""famas""sg552""m4a1""aug""scout""awp""g3sg1""sg550""m249""vest""vesthelm""flash""hegren",  
"sgren""defuser""nvgs""shield""primammo""secammo""km45""9x19mm""nighthawk""228compact""12gauge",  
"autoshotgun""smg""mp""c90""cv47""defender""clarion""krieg552""bullpup""magnum""d3au1""krieg550",  
"buyammo1""buyammo2"  
}  

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 
CvarBuyZone
new Buy false
new g_WpnID[g_eWeaponTypes]
new 
EnabledCvar

public plugin_precache() { 
disable_buyzone(); 


public 
plugin_init() {
register_plugin("Special Round""Version""Constentine")
register_clcmd("say /spr""SprMenuShow")
register_logevent("logevent_round_start"2"1=Round_Start")

EnabledCvar register_cvar("amx_enable""1")// Enable/Disable Plugin
CvarBuyZone register_cvar("amx_buy""1")// Enable Buy Zone/Disable Buy Zone When u Start Special Round
for (new isizeof gBuyCommandsi++)  
register_clcmd(gBuyCommands[i], "BlockBuyCommands")  
}

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_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: { 
Buy true
strip_user_weapons
(id
give_item(id"weapon_knife")
}
case 
2: {
Buy true
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")
}
case 
3: {
Buy true
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)  
}
case 
4: {
Buy true
strip_user_weapons
(id
give_item(id"weapon_deagle")
cs_set_user_bpammo(id,CSW_DEAGLE,240)  
}
case 
5: {
Buy true
strip_user_weapons
(id
give_item(id"weapon_awp")
cs_set_user_bpammo(id,CSW_AWP,240)  
}
case 
6: {
Buy true
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])
}
case 
7: {
Buy true
strip_user_weapons
(id
give_item(id"weapon_m4a1")
cs_set_user_bpammo(id,CSW_M4A1,240
}
case 
8: {
Buy true
strip_user_weapons
(id
give_item(id"weapon_ak47")
cs_set_user_bpammo(id,CSW_AK47,240
}
}
menu_destroy(menu);
return 
PLUGIN_HANDLED;



public 
disable_buyzone() { 
if(
Buy){
new 
ent find_ent_by_class(-1,"info_map_parameters"); 

if(!
ent) { 
ent create_entity("info_map_parameters"); 


DispatchKeyValue(ent,"buying","3"); 
DispatchSpawn(ent); 
}



public 
BlockBuyCommands(id)  
{  
if (
Buy &&!get_pcvar_num(CvarBuyZone))  
return 
PLUGIN_CONTINUE;  

return 
PLUGIN_HANDLED;
}  

public 
logevent_round_start(client){
Buy false

Lols?

Quote:
Originally Posted by Eviatar Mor View Post
i make it fast but try it

Last edited by Fuck For Fun; 12-15-2014 at 13:33.
Fuck For Fun is offline
Send a message via Skype™ to Fuck For Fun
feifei
Senior Member
Join Date: Sep 2014
Location: India
Old 12-16-2014 , 12:22   Re: special round
Reply With Quote #16

Quote:
Originally Posted by Eviatar Mor View Post
i make it fast but try it :
[UnTested]
First:- you can use voting, by using /vote command.





Second:- you can choose which type of weapon's fight do you want! by using /spr command




NOTE:-
If any admin start voting in that during time no one admins can't start vote again !
If any admin start /spr then choose any weapon's fight in that during time no one admins can't choose others.
__________________
MaTriX is my life
Visit Here ;) For ZP MODs
feifei is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 12-16-2014 , 13:49   Re: special round
Reply With Quote #17

I'm working on this type of plugin. Just wait for the release.
zmd94 is offline
feifei
Senior Member
Join Date: Sep 2014
Location: India
Old 12-17-2014 , 10:19   Re: special round
Reply With Quote #18

Quote:
Originally Posted by zmd94 View Post
I'm working on this type of plugin. Just wait for the release.
make it for cs1.6

I mean not ZP mod !!
Please make same which one I described
__________________
MaTriX is my life
Visit Here ;) For ZP MODs

Last edited by feifei; 12-17-2014 at 10:20.
feifei is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 12-17-2014 , 10:33   Re: special round
Reply With Quote #19

Already finished. ;)

Weapons War v5.5 (26 Weapons)
zmd94 is offline
tousif
AlliedModders Donor
Join Date: Nov 2014
Location: India
Old 12-17-2014 , 10:47   Re: special round
Reply With Quote #20

nice Waiting for release
tousif 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 19:11.


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