Raised This Month: $ Target: $400
 0% 

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


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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