Raised This Month: $ Target: $400
 0% 

set_user_frags without <fun>, add scoreboard info, shield remove


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sappounet
Junior Member
Join Date: Jan 2009
Old 01-24-2009 , 20:20   set_user_frags without <fun>, add scoreboard info, shield remove
Reply With Quote #1

Hello,

I got some questions :

1)
i want to remove the +3 when you planted a bomb that has exploded or when you defused a bomb so i catched "triggered" with register_logevent and then i do that :

Code:
if(equal(arg2, "Defused_The_Bomb"))
    {
    new currentfrags = get_user_frags(id)
    new newfrags = currentfrags - 3
    set_user_frags(id, newfrags)
    }
This works well, but to use "set_user_frags" i have to include <fun> and i dont want to.

Is there any other solution to change players frags ?

2)
I would like to add informations on the score board (KIT for CTs wo got defusal kits, Money for each payer, etc)

Is it possible to do that without creating a new score board ?

If not, could you very quickly explain me how to create a new scoreboard (name of fonctions to use, etc) ?

3)
I would like to totally disabled Tactical Shield:

Code:
register_event("WeapPickup","task_weaponpick","b");
but the shield has no weapon id and does not use the WeapPickup event

I also tried

Code:
register_clcmd("shield", "task_blockshield")

public task_blockshield(playerid)
{
return PLUGIN_HANDLED
}
His works if you buy it using bind (bind "x" "shield") but this don't works if you use buymenu ( 'Buy' then 8 then 8 ).

How could I do ?

4)
Maybe you know this bug i want to fix :
When you duck a bit too fast under a ceiling or an object, you are slowed down and you have to duck during a longer time (2 seconds) to be able to move at normal speed.

How could i fix that ? i got no ideas


Thanks

Last edited by sappounet; 01-24-2009 at 20:57.
sappounet is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 01-24-2009 , 20:22   Re: set_user_frags without include <fun> ? add scoreboard info ?
Reply With Quote #2

1. Include fakemeta_util, and use fm_set_user_frags().

2. Impossible.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
sappounet
Junior Member
Join Date: Jan 2009
Old 01-24-2009 , 20:38   Re: set_user_frags without <fun>, add scoreboard info, shield remove
Reply With Quote #3

Thanks for your answer.

I really would like to have the best performance plugin so i try to use only the very needed includes.

What are the impact of include <fun> or include <fakemeta_util> ?

Thanks
sappounet is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 01-24-2009 , 21:19   Re: set_user_frags without <fun>, add scoreboard info, shield remove
Reply With Quote #4

fakemeta_util is uses the fakemeta module.
fun is its own module.

Either way, you will need a module enabled to set a client's frags.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 01-25-2009 , 05:23   Re: set_user_frags without <fun>, add scoreboard info, shield remove
Reply With Quote #5

2. Kind of possible. Prethink + IN_SCORE + HUD. Though they would never go exactly to the right location, because the size of each player's slot in scoreboard will depend on how many other players are in the server. Ofc this isn't IN the scoreboard, but kind of.
SnoW is offline
Send a message via MSN to SnoW
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 01:43.


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