PDA

View Full Version : Duck Spam


Frozen^
04-06-2008, 06:25
Can someone help me about a code, what puts player spam duck to BlockMaker.
or Is there any? +karma for help

ive tried like this but...

actionDuck(id)
{
new taskid = TASK_DUCK + id;

set_task(id, bInDuck, 1);
}
but it wont work :S

DeeKeiD
04-06-2008, 09:36
i'm noob in scripting but try this

public actionDuck(id)
{
new taskid = TASK_DUCK +id;
set_task(id,bInDuck,1);
}

Howdy!
04-06-2008, 10:22
set_task ( Float:time, const function[], id = 0, parameter[]="", len = 0, flags[]="", repeat = 0 )



The parameters break down as such:

* Float:time - Interval of timer in second. (minimum 0.1 seconds)
* function[] - A string that contains the public function to run on the timer.
* id - A unique id to assign to the task.
* parameter - An array contain data to send to the timer function.
* len - Size of the array to send to the timer function.
* flags - One of the following:
-- "a" - Repeat task a specified number of times
-- "b" - Loop task infinitely
-- "c" - do task on time after a map timeleft
-- "d" - do task on time before a map timeleft
* repeat - If flags is "a", specifies the number of times to repeat the task.


Remember that functions executed by set_task needs be public.

Frozen^
04-06-2008, 11:11
/home/groups/amxmodx/tmp3/textZeo3tB.sma(1785) : error 029: invalid expression, assumed zero
/home/groups/amxmodx/tmp3/textZeo3tB.sma(1785) : error 035: argument type mismatch (argument 1)
/home/groups/amxmodx/tmp3/textZeo3tB.sma(1785) : error 001: expected token: "=", but found "["
/home/groups/amxmodx/tmp3/textZeo3tB.sma(1785) : fatal error 107: too many error messages on one line

Compilation aborted.
4 Errors.

Jon
04-06-2008, 12:21
Yes, that code is TOTALLY not from my modified version of blockmaker..

zacky
07-30-2008, 03:50
This is easy to do! you will need:
#include <fakemeta>

and the other #includes in blockmaker!

then just replace your with this

actionDuck(id)
{
set_pev(id, pev_bInDuck, 1);
}

I Found code from BCM4!