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