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

Subplugin Submission [ZP] Addon: Counter-Strike like Buymenu for Zombie Plagie!


Post New Thread Reply   
 
Thread Tools Display Modes
SonicSonedit
Veteran Member
Join Date: Nov 2008
Location: Silent Hill
Old 12-13-2010 , 15:38   Re: [ZP] Addon: Counter-Strike like Buymenu for Zombie Plagie!
Reply With Quote #51

Kiryu Zero

[ru]
просто берёшь и забиваешь имя экстра-итема из extraitems.ini в todo.

Code:
zp_cs_buymenu_equiph07_name "/yСканнер радара" //имя, как оно будет называться в самом меню закупки
zp_cs_buymenu_equiph07_cost 10000 //$$$, ну ты понел
zp_cs_buymenu_equiph07_todo "Radar Scanner" //название спец-предмета,  который надо купить. посмотри свой zp_extraitems.ini, имя должно быть  такое-же, как и там.
И да, не смотря на то, что версия тут довольно старая, ошибка в ней была лишь одна - не сбрасывалась процедура обработки mp_buytime, если раунд заканчивался прежде, чем заканчивался buytime. остальное не ошибки, а так, говнопредупреждения, игнорь их.
лови поправленную версию, по доброй памяти. кстати, я тут работаю над одним зомби-сервером, поэтому большинство моих новых плагинов не в паблике. http://cs-o.ru/ на этой неделе запуск. надеюсь побегаем там с тобой и другими старожилами!

[en]
just type extra-item ZP name from extraitems.ini in "todo" string.
Code:
zp_cs_buymenu_equiph07_name "/yScanner" //name that will appear in the zp-cs-buymenu
 zp_cs_buymenu_equiph07_cost 10000 //$$$, you know what to do.
 zp_cs_buymenu_equiph07_todo "Radar Scanner" //Extra item "system name",  check it up in your zp_extraitems.ini, the "todo" must be the same as extra-item's name in  zp_extraitems.ini.
Btw, despite the version posted here is very old, it has just one bug - incorrect mp_buytime check: when round ended before buytime is over, the buytime is not reseted. Others are not errors, but shitwarnings, ignore them.
here is last version (see attachments) for all good days, Kiryu.
Btw, i'm wokring on a private server currently, so most of my new plugins a re not public. http://cs-o.ru/ launch on this week. i'd like to play sometime there with you and all the old players i know.
__________________


Last edited by SonicSonedit; 12-21-2010 at 18:01.
SonicSonedit is offline
Kiryu Zero
Senior Member
Join Date: Apr 2010
Location: Sankt-Peterburg, Russia
Old 12-13-2010 , 16:19   Re: [ZP] Addon: Counter-Strike like Buymenu for Zombie Plagie!
Reply With Quote #52

Спасибо тебе у тебя есть моя icq?(626707586)


Thank you. you have my icq
__________________
Kiryu Zero is offline
Send a message via ICQ to Kiryu Zero Send a message via Skype™ to Kiryu Zero
Hezerf
BANNED
Join Date: Mar 2010
Old 12-13-2010 , 16:37   Re: [ZP] Addon: Counter-Strike like Buymenu for Zombie Plagie!
Reply With Quote #53

I removed warnings and and added an try to fix mp_buytime error.
Attached Files
File Type: sma Get Plugin or Get Source (zp_cs_buymenu.sma - 648 views - 50.7 KB)
Hezerf is offline
SonicSonedit
Veteran Member
Join Date: Nov 2008
Location: Silent Hill
Old 12-16-2010 , 08:28   Re: [ZP] Addon: Counter-Strike like Buymenu for Zombie Plagie!
Reply With Quote #54

Kiryu Zero
Authorize me plz

Hezerf
These warnings are for scripter, not for end-user, you didn't really change anything.
And there is no "mp_buytime error" in version posted in #52.
Anyway, i'll remove these "errors" if they annoy you so much
__________________


Last edited by SonicSonedit; 12-16-2010 at 09:16.
SonicSonedit is offline
Hezerf
BANNED
Join Date: Mar 2010
Old 12-16-2010 , 14:14   Re: [ZP] Addon: Counter-Strike like Buymenu for Zombie Plagie!
Reply With Quote #55

There are no warnings in my version....Also I'm a little scripter too.
Hezerf is offline
makiza
BANNED
Join Date: Mar 2009
Old 12-16-2010 , 14:19   Re: [ZP] Addon: Counter-Strike like Buymenu for Zombie Plagie!
Reply With Quote #56

ok, which of the 3 plugins posted should i test by the moment?
makiza is offline
Old 12-16-2010, 14:22
makiza
This message has been deleted by makiza. Reason: double post/redirection to a porn site?
jc980
Veteran Member
Join Date: Jan 2010
Location: God is with us...
Old 12-17-2010 , 02:47   Re: [ZP] Addon: Counter-Strike like Buymenu for Zombie Plagie!
Reply With Quote #57

@makiza: lol. redirection to a porn site? wtf did that happened?
__________________
jc980 is offline
makiza
BANNED
Join Date: Mar 2009
Old 12-17-2010 , 13:31   Re: [ZP] Addon: Counter-Strike like Buymenu for Zombie Plagie!
Reply With Quote #58

Quote:
Originally Posted by jc980 View Post
@makiza: lol. redirection to a porn site? wtf did that happened?
I dunno LOL

the page rediect me to a www.88.com and says about free porn movies and shit.

( ¯\(°_o)/¯ )

PD: this isn't the page is just an example
makiza is offline
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 12-17-2010 , 16:57   Re: [ZP] Addon: Counter-Strike like Buymenu for Zombie Plagie!
Reply With Quote #59

Quote:
Originally Posted by Hezerf View Post
There are no warnings in my version....Also I'm a little scripter too.
a little better scripter
__________________
georgik57 is online now
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
Old 12-17-2010, 17:28
Kiryu Zero
This message has been deleted by Kiryu Zero.
SonicSonedit
Veteran Member
Join Date: Nov 2008
Location: Silent Hill
Old 12-17-2010 , 19:50   Re: [ZP] Addon: Counter-Strike like Buymenu for Zombie Plagie!
Reply With Quote #60

Quote:
There are no warnings in my version
So? Once again - these warnings are for scripter, not for end-user, and they do not affect script in any way.
On the other hand, replacing
Code:
color[i]=255*(winteam==i);
with
Code:
color[i]=255*(winteam==i ? 1 : 0);
is the same as replacing
Code:
if (get_pcvar_num(cvar_block))
    return PLUGIN_HANDLED;
with
Code:
if (get_pcvar_num(cvar_block)==1)
{
    return PLUGIN_HANDLED;
}
yeah, it generates no trashwarnings now, but more code and calls.

srsly people, instead of being so concerned about warnings in plugin that uses fakemeta and hamsandwich, you better be concerned about plugins that use like ten modules for no actual reason and call get_pcvar_float in every FM_PlayerPreThink for every player alive regardless of deltatime.

Quote:
ok, which of the 3 plugins posted should i test by the moment?
This one http://forums.alliedmods.net/showpos...62&postcount=1
__________________


Last edited by SonicSonedit; 12-21-2010 at 18:02.
SonicSonedit 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 06:46.


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