Raised This Month: $ Target: $400
 0% 

HideNSeek Market


Post New Thread Reply   
 
Thread Tools Display Modes
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-24-2011 , 14:39   Re: HideNSeek Market
Reply With Quote #11

Quote:
Originally Posted by BunnYboiii View Post
check out the XPMod plugin by modernwarfare he posts efter every update..
Is he an example ? i don't think so.


About approval, if you feel my decision was unfair, you can PM any other approver.
If you update/improve your plugin and you want to re-submit it, you can PM me or any other approver.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
BunnYboiii
Senior Member
Join Date: Jul 2011
Old 09-24-2011 , 14:42   Re: HideNSeek Market
Reply With Quote #12

Okay thanks, about the posts when releasing updates.

Its better to just post it then people see whats new. Else they maybe dont see the changes..
__________________
School sucks, so much work.
BunnYboiii is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-24-2011 , 14:53   Re: HideNSeek Market
Reply With Quote #13

I don't have made rules.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
BunnYboiii
Senior Member
Join Date: Jul 2011
Old 09-24-2011 , 15:07   Re: HideNSeek Market
Reply With Quote #14

Yea, not so good rules.. You should be allowed to post in your own plugins topics.

But forget it.

Still working on the HideNSeek Market so you guys know.
__________________
School sucks, so much work.
BunnYboiii is offline
Old 09-27-2011, 12:41
BunnYboiii
This message has been deleted by ConnorMcLeod. Reason: Do i really need to explain again ??
modernwarfare
Senior Member
Join Date: Aug 2011
Location: sweden
Old 09-27-2011 , 14:06   Re: HideNSeek Market
Reply With Quote #15

Quote:
Originally Posted by BunnYboiii View Post
Code:
Version 1.0.3

- Removed some unnecessary code.
I would be pleasured if some people could give me some ideas.

Thanks.
As he said use edit button

im now using edit button instead of posting

Quote:
Originally Posted by ConnorMcLeod View Post
Is he an example ? i don't think so.


About approval, if you feel my decision was unfair, you can PM any other approver.
If you update/improve your plugin and you want to re-submit it, you can PM me or any other approver.
lol i pmed 2 onther approver they ignore me and didnt even answer?
__________________
Im supporting/coding XP Mod Plugin
Free Palestine
R.I.P. The 2967 American people that lost their lives 9/11 and R.I.P.
The 48,644 Afghan and 1,690,903 Iraqi people that paid the ultimate price for a crime they did not commit.



modernwarfare is offline
Send a message via MSN to modernwarfare Send a message via Skype™ to modernwarfare
BunnYboiii
Senior Member
Join Date: Jul 2011
Old 09-27-2011 , 14:17   Re: HideNSeek Market
Reply With Quote #16

Okay then, i will be using edit button.

I don't know, ive not PMed another approver yet. Need to clean up some code.

You can PM the unapprover too, connor i think. Then tell him u fixed ur code.
__________________
School sucks, so much work.
BunnYboiii is offline
nkz1337
BANNED
Join Date: Apr 2011
Old 09-28-2011 , 06:16   Re: HideNSeek Market
Reply With Quote #17

i edited this code ;)
Added: Change price of Weapon, health. armor, show bullets in menu;)

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

#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>
#include <engine>
#include <colorchat>
#include <fakemeta>

#define PLUGIN "HideNSeek Market"
#define VERSION "1.0.4"
#define AUTHOR "BunnYboii & tv!X^^"

new scoutdeagleawpfivesevenp90healtharmor

new pScoutpDeaglepAwppFivesevenpP90pHealthpArmorpHegrenadepFlashbangpSmokegreen

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_clcmd("say /shop""mod_menu")
    
register_clcmd("say /hnshop""mod_menu")
    
register_clcmd("say /hs""mod_menu")
    
    
// Weapon price cvar's
    
pScout register_cvar("hns_scout_price""7500")
    
pAwp register_cvar("hns_awp_price""16000")
    
pDeagle register_cvar("hns_deagle_price""9500")
    
pFiveseven register_cvar("hns_fs_price""6000")
    
p90 register_cvar("hns_p90_price""10000")
    
pHealth register_cvar("hns_health_price""3500")
    
pArmor register_cvar("hns_armor_price""5300")
    
pHegrenade register_cvar("hns_hegrenade_price""2500")
    
pFlashbang register_cvar("hns_flashbang_price""1500")
    
pSmokegreen register_cvar("hns_smokegreen_price""4500")
    
    
// Weapon cvar's
    
health register_cvar("hns_health_give""50")
    
scout register_cvar("hns_scout_ammo""1")
    
deagle register_cvar("hns_dgl_ammo""1")
    
awp register_cvar("hns_awp_ammo""2")
    
fiveseven register_cvar("hns_fs_ammo""2")
    
p90 register_cvar("hns_p90_ammo""5")
    
armor register_cvar("hns_armor_give""200")
    
    
register_event("CurWeapon""Event_CurWeapon""be","1=1")
}

public 
mod_menu(id)
{
        
    new 
menu menu_create("\w[ -\r hide'N'seek buy menu\w - ]""menu_handler")
        
    
menu_additem(menu"\wHE Grenade [\r %d $\w]""1"get_pcvar_num(pHegrenade) )
    
menu_additem(menu"\wFlashbang [\r%d $\w]""2"get_pcvar_num(pFlashbang) )
    
menu_additem(menu"\wFrost Nade [\r%d $\w]""3"get_pcvar_num(pSmokegreen) )
    
menu_additem(menu"\wScout [\r %d bullets\w] [\r%d $\w]""4"get_pcvar_num(scout),get_pcvar_num(pScout) )
    
menu_additem(menu"\wDeagle [\r %d bullets\w] [\r%d $\w]""5"get_pcvar_num(deagle), get_pcvar_num(pDeagle) )
    
menu_additem(menu"\wAWP [\r %d bullets\w] [\r%d $\w]""6"get_pcvar_num(awp), get_pcvar_num(pAwp) )
    
menu_additem(menu"\wFiveseven [\r %d bullets\w] [\r%d $\w]""7"get_pcvar_num(fiveseven), get_pcvar_num(pFiveseven) )
    
menu_additem(menu"\wHealth [\r %d\w HP\w ] [\r %d $\w ]""8"get_pcvar_num(health), get_pcvar_num(pHealth) )
    
menu_additem(menu"\wArmor [\r %d\w AR\w ] [\r %d $\w ]""9"get_pcvar_num(armor), get_pcvar_num(pArmor) )
    
    
menu_setprop(menuMPROP_EXITMEXIT_ALL)
    
menu_display(idmenu0)
}
public 
menu_handler(idmenuitem)
{
    if( 
item == MENU_EXIT )
    {
        
menu_destroy(menu)
        return 
PLUGIN_HANDLED
    
}
    
    new 
data[6], szName[64]
    new 
accesscallback
    
    menu_item_getinfo
(menuitemaccessdata,charsmax(data), szName,charsmax(szName), callback)
    
    new 
key str_to_num(data)
    new 
money cs_get_user_money(id)
    if(
is_user_alive(id))
    {
        switch(
key)
        {
            case 
1:
            {
                if( 
money >= get_pcvar_num(pHegrenade) )
                {
                    new 
setmoney money get_pcvar_num(pHegrenade)
                    
cs_set_user_money(idclamp(setmoney016000))
                    
give_item(id"weapon_hegrenade")
                    
ColorChat(idTEAM_COLOR"^x03[HNS EXTRA]^x01 You bought a^x03 HE Grenade.")
                }
                else
                {
                    
ColorChat(idTEAM_COLOR"^x04[HNS EXTRA]^x01 You have insufficient funds!")
                }
            }            
            case 
2:
            {
                if( 
money >= get_pcvar_num(pFlashbang) )
                {
                    new 
setmoney money get_pcvar_num(pFlashbang
                    
cs_set_user_money(idclamp(setmoney016000))
                    
give_item(id"weapon_flashbang")
                    
ColorChat(idTEAM_COLOR"^x04[HideNSeek Market]^x01 You bought a Flashbang.")
                    
                }
                else
                {
                    
ColorChat(idTEAM_COLOR"^x04[HideNSeek Market]^x01 You have insufficient funds!")
                }
            }
            case 
3:
            {
                if( 
money >= get_pcvar_num(pFiveseven) )
                {
                    new 
setmoney money get_pcvar_num(pFlashbang)
                    
cs_set_user_money(idclamp(setmoney016000))
                    
give_item(id"weapon_smokegrenade")
                    
ColorChat(idTEAM_COLOR"^x04[HideNSeek Market]^x01 You bought a Frostnade!")
                }
                else
                {
                    
ColorChat(idTEAM_COLOR"^x04[HideNSeek Market]^x01 You have insufficient funds!")
                }
            }
            case 
4:
            {
                if( 
money >= get_pcvar_num(pScout) )
                {
                    new 
setmoney money get_pcvar_num(pScout)
                    
cs_set_user_money(idclamp(setmoney016000))
                    
give_item(id"weapon_scout")
                    new 
weapon_id find_ent_by_owner(-1"weapon_scout"id)
                    
cs_set_weapon_ammo(weapon_idget_cvar_num(scout){
                    
ColorChat(idTEAM_COLOR"^x04[HideNSeek Market]^x01 You bought Scout.")
                    
                }
                else
                {
                    
ColorChat(idTEAM_COLOR"^x04[HideNSeek Market]^x01 You have insufficient funds!")
                }
            }
            case 
5:
            {
                if( 
money >= get_pcvar_num(pDeagle) )
                {
                    new 
setmoney money get_pcvar_num(pDeagle)
                    
cs_set_user_money(idclamp(setmoney016000))
                    
give_item(id"weapon_deagle")
                    new 
weapon_id find_ent_by_owner(-1"weapon_deagle"id)
                    
cs_set_weapon_ammo(weapon_idget_cvar_num(deagle){
                    
ColorChat(idTEAM_COLOR"^x04[HideNSeek Market]^x01 You bought a Deagle.")
                    
                }
                else
                {
                    
ColorChat(idTEAM_COLOR"^x04[HNS EXTRA]^x01 You hve insufficient funds!")
                }
            }
            case 
6:
            {
                if( 
money >= get_pcvar_num(pAwp)
                {
                    new 
setmoney money get_pcvar_num(pAwp)
                    
cs_set_user_money(idclamp(setmoney016000))
                    
give_item(id"weapon_awp")
                    new 
weapon_id find_ent_by_owner(-1"weapon_awp"id)
                    
cs_set_weapon_ammo(weapon_idget_cvar_num(awp)){
                    
ColorChat(idTEAM_COLOR"^x04[HideNSeek Market]^x01 You bought an AWP.")
                    
                }
                else
                {
                    
ColorChat(idTEAM_COLOR"^x04[HideNSeek Market]^x01 You have insufficient funds!")
                }
            }
            case 
7:
            {
                if( 
money >= get_pcvar_num(pFiveseven)
                {
                    new 
setmoney money get_pcvar_num(pFiveseven)
                    
cs_set_user_money(idclamp(setmoney016000))
                    
give_item(id"weapon_fiveseven")
                    new 
weapon_id find_ent_by_owner(-1"weapon_fiveseven"id)
                    
cs_set_weapon_ammo(weapon_idget_cvar_num(fiveseven){
                    
ColorChat(idTEAM_COLOR"^x04[HideNSeek Market]^x01 You bought a FiveSeven.")
                    
                }
                else
                {
                    
ColorChat(idTEAM_COLOR"^x04[HideNSeek Market]^x01 You have insufficient funds!")
                }
            }
            case 
8:
            {
                if( 
money >= get_pcvar_num(pHealth )
                {
                    new 
setmoney money get_pcvar_num(pHealth)
                    
cs_set_user_money(idclamp(setmoney016000 ))
                    
cs_set_user_health(idget_pcvar_num(health ) {
                    
ColorChat(idTEAM_COLOR"^x04[HNS EXTRA]^x01 You bought a Health.")
                }
                else
                {
                    
ColorChat(idTEAM_COLOR"^x04[HNS EXTRA]^x01 You have insufficient funds!")
                }
            }
            case 
9:
            {
                if( 
money >= get_pcvar_num(pArmor)
                {
                    new 
setmoney money get_pcvar_num(pArmor)
                    
cs_set_user_money(idclamp(setmoney01600))
                    
cs_set_user_armor(idget_pcvar_num(armor){
                    
ColorChat(idTEAM_COLOR"^x04[HNS EXTRA]^x01 You bought a Armor.")
                }
                else
                {
                    
ColorChat(idTEAM_COLOR"^x04[HNS EXTRA]^x01 You have insufficient funds!.")
                }
            }
        }
    }
    return 
PLUGIN_HANDLED

good? =)

Last edited by nkz1337; 09-28-2011 at 06:18.
nkz1337 is offline
Send a message via Skype™ to nkz1337
BunnYboiii
Senior Member
Join Date: Jul 2011
Old 09-28-2011 , 13:20   Re: HideNSeek Market
Reply With Quote #18

I am working on my plugin by my own, thanks anyway.
__________________
School sucks, so much work.
BunnYboiii is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-30-2011 , 01:46   Re: HideNSeek Market
Reply With Quote #19

You are not allowed to attach .amxx, removed from 1st post.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
BunnYboiii
Senior Member
Join Date: Jul 2011
Old 09-30-2011 , 05:15   Re: HideNSeek Market
Reply With Quote #20

Ive never attached .amxx, i attached .sma

EDIT: Why did you delete the HideNSeek.zip ?
__________________
School sucks, so much work.
BunnYboiii is offline
Reply



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 20:52.


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