Raised This Month: $ Target: $400
 0% 

Please Remove This Post !


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
NowakFilip
BANNED
Join Date: Oct 2006
Location: United States
Old 10-25-2006 , 07:28   Please Remove This Post !
Reply With Quote #1

Please Remove This Post !

Last edited by NowakFilip; 10-27-2006 at 18:13.
NowakFilip is offline
Sp4rt4n
Senior Member
Join Date: Dec 2004
Old 10-25-2006 , 08:56   Re: CTs_Defusing_Bomb
Reply With Quote #2

I think a little credit is in order here...
Code:
register_plugin("CTs are defusing","0.2","KRoTaL")
Quote:
Originally Posted by Sticky
Do not use the Vexd or XtraFun modules. Use the cstrike, engine, and fun modules instead.
Might wanna change:
Code:
#include <amxmod>
to:
Code:
#include <amxmodx>
Sp4rt4n is offline
Send a message via MSN to Sp4rt4n
Rolnaaba
Veteran Member
Join Date: May 2006
Old 10-25-2006 , 10:23   Re: CTs_Defusing_Bomb
Reply With Quote #3

UM...
Code:
if(get_cvar_num("cts_are_defusing") == 0 && get_cvar_num("ts_are_planting") == 0)
    return PLUGIN_CONTINUE
So if the cvar is 0 you are continueing but the default is 1 so it will defaultly never execute the plugin?
__________________
DO NOT PM me about avp mod.
Rolnaaba is offline
organizedKaoS
Senior Member
Join Date: Feb 2006
Old 10-25-2006 , 14:57   Re: CTs_Defusing_Bomb
Reply With Quote #4

Quote:
Originally Posted by Rolnaaba View Post
UM...
Code:
if(get_cvar_num("cts_are_defusing") == 0 && get_cvar_num("ts_are_planting") == 0)
    return PLUGIN_CONTINUE
So if the cvar is 0 you are continueing but the default is 1 so it will defaultly never execute the plugin?
You must be confused.

That is the same as using
Code:
if(is_user_bot(id))      return PLUGIN_CONTINUE

The function will not proceed if the players id is bot.

Same with the above, the function will not proceed if the var is 0.

Alternatively, the code could be rewritten as
Code:
if(!cts_are_defusing && !ts_are_planting)     return PLUGIN_CONTINUE

This states that if the var for those two options is not one, do not proceed.
organizedKaoS is offline
NowakFilip
BANNED
Join Date: Oct 2006
Location: United States
Old 10-25-2006 , 15:44   Re: CTs_Defusing_Bomb
Reply With Quote #5

Ok, thanks for telling me for my mistakes
NowakFilip is offline
ThomasNguyen
Senior Member
Join Date: May 2006
Old 10-25-2006 , 15:51   Re: CTs_Defusing_Bomb
Reply With Quote #6

You still didnt credit the author.
__________________
ThomasNguyen is offline
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 10-25-2006 , 17:08   Re: CTs_Defusing_Bomb
Reply With Quote #7

Yes he did, but he is still using amxmod modules.
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
Sp4rt4n
Senior Member
Join Date: Dec 2004
Old 10-25-2006 , 17:39   Re: CTs_Defusing_Bomb
Reply With Quote #8

Quote:
Originally Posted by SweatyBanana View Post
Yes he did, but he is still using amxmod modules.
Its sposed to be in the post though, isn't it?
Sp4rt4n is offline
Send a message via MSN to Sp4rt4n
NowakFilip
BANNED
Join Date: Oct 2006
Location: United States
Old 10-25-2006 , 18:06   Re: CTs_Defusing_Bomb
Reply With Quote #9

I change it to amxmodx
If you see any more errors please post them.
Thank's.
NowakFilip is offline
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 10-25-2006 , 18:13   Re: CTs_Defusing_Bomb
Reply With Quote #10

PHP Code:
#include <VexdUM>
#include <VexdUM_stock> 
->
PHP Code:
#include <engine> 
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
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:07.


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