[FilterScript] [FS] ۞ Blip filterscript v1.0 ۞ (8.2.2008)
#1

What is this?
It's a function with timer which will set player's color from color1 to color2 and from color2 to color1 every second.


Example:
pawn Code:
public OnPlayerSpawn(playerid)
{
  SetPlayerBlipColor(playerid, 1000, 0xFFFFFFAA, 0xFF0000AA);
  return 1;
}

Functions:
Code:
SetPlayerBlipColor(playerid, delay, color1, color2);
SetPlayerBlipColorForAll(delay, color1, color2);
۞ Download v1.0
Reply
#2

Kind of a 'flash' marker?
Nice done, although, wont it make bugs, timer for each player who uses, in every second.

EDIT:

Quote:
Originally Posted by Correlli
It's a function
And in the file, deleting all use'less lines you done, and the FS Init / Exit,
It'd take way less lines, which can be a simple function posted in the functions topic,
And not as a filter script, but as i said, nice anyway, you could change the function name to

FlashPlayer(), FlashPlayerEx(). // Ex == for all..
Reply
#3

Quote:
Originally Posted by eldiablo1337
Kind of a 'flash' marker?
Nice done, although, wont it make bugs, timer for each player who uses, in every second.
Something like that. I didn't had chance to test on much players, i only tested on myself and it worked normal.
Reply
#4

Please re - read my first post, i've edited it.

Anyway, setting the function to your self only, won't cause any lags,
But using a private timer for each player which has a LOOP (reapet)
Will cause lags.
Reply
#5

mmm.... nice Corelli! :P may be pastebin link? rapidshare is too busy

Reply
#6

Quote:
Originally Posted by eldiablo1337
Please re - read my first post, i've edited it.

Anyway, setting the function to your self only, won't cause any lags,
But using a private timer for each player which has a LOOP (reapet)
Will cause lags.
I know, i don't need anyone to teach me some things, thanks. I just though it's useful for some players, if you don't want to use it --> don't use it.

pastebin.com link
Reply
#7

You have any function to disable the flesh when it has already started?
Reply
#8

Quote:
Originally Posted by Correlli
Quote:
Originally Posted by eldiablo1337
Please re - read my first post, i've edited it.

Anyway, setting the function to your self only, won't cause any lags,
But using a private timer for each player which has a LOOP (reapet)
Will cause lags.
I know, i don't need anyone to teach me some things, thanks. I just though it's useful for some players, if you don't want to use it --> don't use it.

pastebin.com link
thanks. nice coded! it's like gang zone flash :P
Reply
#9

Quote:
Originally Posted by eldiablo1337
You have any function to disable the flesh when it has already started?
No, but good idea. I'll add it in the next version.
Reply
#10

Cool, you could do this:


Code:
public BlipFunc(playerid, color1, color2)
{
	if(IsPlayerConnected(playerid))
	{
	if(GetPlayerColor(playerid) == color1)
	{
	SetPlayerColor(playerid, color2);
	}
	else if(GetPlayerColor(playerid) == color2)
	{
	SetPlayerColor(playerid, GetPlayerColor(playerid) | 0x000000FF);
	}
	}
	return 0;
}
---

Code:
SetPlayerColor(playerid, GetPlayerColor(playerid) | 0x000000FF);
Makes the color invisble^, so it wil flash the players color (lets say yellow) every second ^^, instead of flashing 2 different colors
Reply
#11

Nice, but i though 2 colors. Like blue-red for police team for example.
Reply
#12

Quote:
Originally Posted by Correlli
Nice, but i though 2 colors. Like blue-red for police team for example.
Yea, good idea
Reply
#13

Hey nice, very handy
Reply
#14

very nice men i think i will use this
Reply
#15

..pppllssss for reuplod it can be nice script by i dinґt download this....and i neeed this som much ..pls reupload
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)