23.06.2010, 20:05
You can use a timer.
The format is (Quote from wiki):
Then the parameters will be the posx, posy, etc.
repeat can be true or false.
True if the timer will constatly call the callback or false if the timer will call the callback just one time.
It's not the best explaination, so https://sampwiki.blast.hk/wiki/SetTimerEx
pawn Код:
SetTimerEx("Public name", time in milisecounds, repeat, "format", parameters);
The format is (Quote from wiki):
pawn Код:
%b Inserts a number at this position in binary radix
%c Inserts a single character.
%d Inserts an integer (whole) number
%f Inserts a floating point number.
%i Inserts an integer.
%s Inserts a string.
%x Inserts a number in hexadecimal notation.
%% Inserts the literal '%
repeat can be true or false.
True if the timer will constatly call the callback or false if the timer will call the callback just one time.
It's not the best explaination, so https://sampwiki.blast.hk/wiki/SetTimerEx