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

No Bomb Score


Post New Thread Reply   
 
Thread Tools Display Modes
sadboy
Member
Join Date: Jun 2009
Old 04-28-2012 , 23:35   Re: No Bomb Score
Reply With Quote #11

Approved plugins , but it doesn't work

this error happens :
If the bomb kill a CT the planter still get 3 points..

anyone please rewrite this
thanks
sadboy is offline
Swaycher
Senior Member
Join Date: Feb 2009
Location: Arg/MyHome/PawnStudio
Old 04-29-2012 , 00:35   Re: No Bomb Score
Reply With Quote #12

test with this: (I don`t tried it, sorry if it doesn´t work)

PHP Code:
// Don't Count three Fragz on Bomb explosion / defusal
// Coded by MistaGee, requested in the "german" forum by the_venom
#include <amxmodx>
#include <amxmisc>
#include <csx>
#include <fun>

public plugin_init()
{
    
register_plugin("NoBombScore""1.0""MistaGee")
}

public 
bomb_explode(planterdefuser)
{
    if(
is_running("cstrike"))
    {
        
set_user_frags(planterget_user_frags(planter) - 3);
    }
    if(
get_user_team(defuser) == 2)
    {
        
set_user_frags(defuserget_user_frags(defuser) - 3);
    }
    return 
PLUGIN_CONTINUE;
}

public 
bomb_defused(defuser)
{
    if(
is_running("cstrike")) set_user_frags(defuserget_user_frags(defuser) - 3)
        return 
PLUGIN_CONTINUE;

Swaycher is offline
Send a message via MSN to Swaycher Send a message via Skype™ to Swaycher
sadboy
Member
Join Date: Jun 2009
Old 04-29-2012 , 22:47   Re: No Bomb Score
Reply With Quote #13

Quote:
Originally Posted by Swaycher View Post
test with this: (I don`t tried it, sorry if it doesn´t work)

PHP Code:
// Don't Count three Fragz on Bomb explosion / defusal
// Coded by MistaGee, requested in the "german" forum by the_venom
#include <amxmodx>
#include <amxmisc>
#include <csx>
#include <fun>

public plugin_init()
{
    
register_plugin("NoBombScore""1.0""MistaGee")
}

public 
bomb_explode(planterdefuser)
{
    if(
is_running("cstrike"))
    {
        
set_user_frags(planterget_user_frags(planter) - 3);
    }
    if(
get_user_team(defuser) == 2)
    {
        
set_user_frags(defuserget_user_frags(defuser) - 3);
    }
    return 
PLUGIN_CONTINUE;
}

public 
bomb_defused(defuser)
{
    if(
is_running("cstrike")) set_user_frags(defuserget_user_frags(defuser) - 3)
        return 
PLUGIN_CONTINUE;



thank you for your kind but it doesn't work ,
the planter still gets 3 score
sadboy is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 04-30-2012 , 00:46   Re: No Bomb Score
Reply With Quote #14

Make sure csx module is enabled.
Also, remove the code that removes 3 frags to defuser when the bomb explodes LOL!!!!
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
sadboy
Member
Join Date: Jun 2009
Old 04-30-2012 , 11:14   Re: No Bomb Score
Reply With Quote #15

Quote:
Originally Posted by ConnorMcLeod View Post
Make sure csx module is enabled.
Also, remove the code that removes 3 frags to defuser when the bomb explodes LOL!!!!
i type "amxx modules" and see that the "csx" ,"fun" modules still run ,the plugin runs with no errors , but it doesn't work when a CT killed by c4


thus,

this problem also happens with some users (they said at page 1):



Quote:
Originally Posted by mikey_trw View Post
Yeah it seems like that, I'm trying to tackle the problem as well it seems the function bomb_explode(planter) is not called by the CSX when a counter terrorist is killed by the explosion. I cannot really think of any way round this. Especially as there is very little doumentation on CSX.

Mikey_trw

https://forums.alliedmods.net/showpo...98&postcount=7

Quote:
Originally Posted by nightscreem View Post
Mista maybe try using the bomb events not the functions of csx maybe it's just a bug

https://forums.alliedmods.net/showpo...9&postcount=10

Quote:
Originally Posted by Shadow Of Death View Post
It dosn't work -.-*

If the bomb kill a CT the planter get 3 points...

so , i want to ask :
is there a way to rewrite this plugin to make it work without using csx modules ?
or another way to fix this ?

thanks
sadboy is offline
puiu_92
New Member
Join Date: Mar 2008
Old 05-04-2014 , 13:57   Re: No Bomb Score
Reply With Quote #16

Has anyone made this work? I really need this please. A idea , i'm not a coder and I don't know how this plugin function, but as a ideea, why not take 3 score from the planter/defuzer so from 3 + 3 will = 0, Is this possible?
puiu_92 is offline
Flick3rR
Veteran Member
Join Date: Feb 2014
Location: Bulgaria, Stara Zagora
Old 05-04-2014 , 18:31   Re: No Bomb Score
Reply With Quote #17

Well, I want to ask the master scripters, why this could be caused? Really, when bomb explodes while a guy is defusing it, the planter is getting these 3 kills... I thought to make it with some bool? Or som check if player died WHILE defusing, or idk... Whatever, isn't it enough to set the planter's frags -3 when the bomb explodes, and why isn't it working, when it explodes while someone is defusing it... Strange
__________________

Last edited by Flick3rR; 05-05-2014 at 05:37.
Flick3rR is offline
Send a message via Skype™ to Flick3rR
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 09:25.


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