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

Block rotating door when it's touched by a Weapon


Post New Thread Reply   
 
Thread Tools Display Modes
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 11-25-2009 , 21:42   Re: Block rotating door when is touched by grenades
Reply With Quote #11

18 lines, good... but the porpuse of my plugin is different. Let the people choose what to block, why to block all without leave the choise of the others?

Also, less lines do not mean better code/plugin.
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...
Alucard^ is offline
Send a message via Skype™ to Alucard^
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 11-26-2009 , 15:14   Re: Block rotating door when is touched by grenades
Reply With Quote #12

Quote:
Originally Posted by Alucard^ View Post
18 lines, good... but the porpuse of my plugin is different. Let the people choose what to block,
I see you upset my friend :

Quote:
why to block all without leave the choise of the others?
Where i said that?

Quote:
Also, less lines do not mean better code/plugin.
And where shit did I say that too?
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is online now
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 11-26-2009 , 16:53   Re: Block rotating door when is touched by grenades
Reply With Quote #13

Upset? No, i know your intentions ;)

Quote:
Originally Posted by meTaLiCrosSS
Where i said that?
Omg, in your code? o.O, you don't need to say nothing, you posted a code that let only players to opens/closes doors, so? That is not the porpuse of my plugin... i don't see nothing usefull in your code (and in your post). Also, i think you misinterpreted what Arkshine said.
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...

Last edited by Alucard^; 11-26-2009 at 16:57.
Alucard^ is offline
Send a message via Skype™ to Alucard^
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-26-2009 , 17:09   Re: Block rotating door when is touched by grenades
Reply With Quote #14

Quote:
Originally Posted by meTaLiCroSS View Post
18 Lines,
You completly failed with your 15 lines block and classname checks.
8 lines and much more efficient :

PHP Code:
#include <amxmodx>
#include <hamsandwich>

new g_iMaxPlayers

public plugin_init()
{
    
RegisterHam(Ham_Touch"func_door_rotating""FuncDoorRotating_Touch")
    
g_iMaxPlayers get_maxplayers()
}

public 
FuncDoorRotating_Touch(iEntiOther)
{
    if( 
iOther g_iMaxPlayers )
    {
        return 
HAM_SUPERCEDE
    
}
    return 
HAM_IGNORED

Anyway this is not the purpose of this plugin, though the author should implement something.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 11-26-2009 , 17:13   Re: Block rotating door when is touched by grenades
Reply With Quote #15

Quote:
Originally Posted by Alucard^ View Post
ah dind knew that existed
__________________
I am out of order!
grimvh2 is offline
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 11-26-2009 , 17:22   Re: Block rotating door when is touched by grenades
Reply With Quote #16

Quote:
Originally Posted by Alucard^ View Post
Upset? No, i know your intentions ;)
Omg, in your code? o.O, you don't need to say nothing, you posted a code that let only players to opens/closes doors, so? That is not the porpuse of my plugin... i don't see nothing usefull in your code (and in your post). Also, i think you misinterpreted what Arkshine said.
Dude, you are very bad psychologically, you should know.

Quote:
Originally Posted by ConnorMcLeod View Post
You completly failed with your 15 lines block and classname checks.
8 lines and much more efficient :

PHP Code:
#include <amxmodx>
#include <hamsandwich>

new g_iMaxPlayers

public plugin_init()
{
    
RegisterHam(Ham_Touch"func_door_rotating""FuncDoorRotating_Touch")
    
g_iMaxPlayers get_maxplayers()
}

public 
FuncDoorRotating_Touch(iEntiOther)
{
    if( 
iOther g_iMaxPlayers )
    {
        return 
HAM_SUPERCEDE
    
}
    return 
HAM_IGNORED

Anyway this is not the purpose of this plugin, though the author should implement something.
For me works perfectly, so that phrase "You completly failed" was not necesary to say.

Also:

PHP Code:
#include <amxmodx>
#include <engine>

public plugin_init()
    
register_touch("func_door_rotating""player""fw_PlayerDoorTouch")
    
public 
fw_PlayerDoorTouch(doorplayer)
    return 
PLUGIN_HANDLED 
Hahah
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross

Last edited by meTaLiCroSS; 11-26-2009 at 17:24.
meTaLiCroSS is online now
IneedHelp
Veteran Member
Join Date: Mar 2007
Location: Argentina
Old 11-26-2009 , 17:46   Re: Block rotating door when is touched by grenades
Reply With Quote #17

Quote:
Originally Posted by meTaLiCroSS View Post
Also:

PHP Code:
#include <amxmodx>
#include <engine>

public plugin_init()
    
register_touch("func_door_rotating""player""fw_PlayerDoorTouch")
    
public 
fw_PlayerDoorTouch(doorplayer)
    return 
PLUGIN_HANDLED 
Hahah
LOL WRONG.
__________________
IneedHelp is offline
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 11-26-2009 , 17:50   Re: Block rotating door when is touched by grenades
Reply With Quote #18

Quote:
Originally Posted by IneedHelp View Post
LOL WRONG.
It works perfectly for me dude.
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is online now
IneedHelp
Veteran Member
Join Date: Mar 2007
Location: Argentina
Old 11-26-2009 , 17:50   Re: Block rotating door when is touched by grenades
Reply With Quote #19

Quote:
Originally Posted by meTaLiCroSS View Post
It works perfectly for me dude.
Quote:
Block rotating door when is touched by grenades
Yes. So Connor's method is fine
__________________

Last edited by IneedHelp; 11-27-2009 at 05:45.
IneedHelp is offline
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 11-26-2009 , 17:54   Re: Block rotating door when is touched by grenades
Reply With Quote #20

Quote:
Originally Posted by IneedHelp View Post
Yes. So Connor's method is fine
What the fuck... that code is an answer for Connor's post :-/

Edit: Ha, so you are wrong now
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross

Last edited by meTaLiCroSS; 11-26-2009 at 17:56.
meTaLiCroSS is online now
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 12:05.


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