PDA

View Full Version : [INC+FS] Spray Tags


Rafelder_GRF
01/04/2008, 05:38 PM
Spray Tags

Description:

Ingame:

-To spray a tag you have to shoot with a spraycam infront of the tag while you are looking at the tag.
-Unsprayed tags are created with CreateObject
-Sprayed tags are created with CreatePlayerObject (so everybody can spray his spray tag)

Scriptingfunctions:

CreateSprayTag(spraytag, Float:X, Float:Y, Float:Z, Float:A);
Create a spray tag (available spraytags: SPRAY_GROVE, SPRAY_BALLAS, SPRAY_VAGOS, SPRAY_AZTECAS)
GetSprayModel(sprayid);
Returns the model of a sprayid.
GetSprayPos(sprayid, &Float:X, &Float:Y, &Float:Z, &Float:A);
Returns the position.
SetPlayerSprayTag(playerid, spraytag);
Sets the player's spraytag (the player will spray this spraytag)
GetPlayerSprayTag(playerid);
Returns the spraytag of a player.
GetPlayerSprayedSprayTags(playerid);
Returns the amount of sprayed spray tags.
HasPlayerSprayedSprayTag(playerid, sprayid)
Checks if the player sprayed this sprayid.
Spray_OnPlayerConnect(playerid);
You know what this is.

Callbacks:

OnPlayerSpraySprayTag(playerid, sprayid)
Will be called if a player sprays a spraytag.
OnPlayerSprayedAllSprayTags(playerid)
Will be called if a player sprayed his last spraytag.

Spraytag editor:

/create [Grove/Ballas/Vagos/Aztecas]
Create a spray tag.
/select [id] | /select
Selects a tag id | Selects the closest tag id
/set
Sets the tag id's position.
/del
Deletes the actual tag id.
/savetofile [filename]
Saves all spray tags in a file.

Bugs:

Known bug with the first spray tag. (2nd picture) ( .../3 | 1/3 )
Not really a bug:
Dont use more than 75 spray tags (object limit! = 150 (75 spray tags = 75 normal objects + 75 player objects))

Videos+Pictures:

Video (Editor + Ingame + Bad quality): http://www.youtube.com/watch?v=nu7Fyykm49s

http://s7.directupload.net/images/080401/temp/z5jbz8oe.jpg (http://s7.directupload.net/file/d/1385/z5jbz8oe_jpg.htm) http://s7.directupload.net/images/080401/temp/a3j84pfc.jpg (http://s7.directupload.net/file/d/1385/a3j84pfc_jpg.htm) http://s7.directupload.net/images/080401/temp/v3runhnq.jpg (http://s7.directupload.net/file/d/1385/v3runhnq_jpg.htm)

Download:

http://upl.vs-hs.com/info_imgs/1f0f.jpg (http://upl.vs-hs.com/d/1f0f)

cocakiller
01/04/2008, 05:50 PM
:D schön

arnutisz
01/04/2008, 05:53 PM
nice very nice :D

Rafelder_GRF
01/04/2008, 05:56 PM
:D schön


nice very nice :D


Thanks :D

Du weißt das ich deutsch bin? xD Woher?

DarG
01/04/2008, 06:39 PM
Very Nice,I Liked It..!
=D

Einstein
01/04/2008, 06:49 PM
Wow Rafelder sehr gut gemacht gefällt mir =))

Coca weiß es ausm Deutschem Samp Forum wie ich ^^

Gutoo
01/04/2008, 06:59 PM
Nice!

Zh3r0
01/04/2008, 07:10 PM
nice 1 refelder ;) nice

Deji
01/04/2008, 07:20 PM
hmm. maybe one with a gang mode for lvdm. so that you can spray the gang name on the wall! it's probably have to be boring plain text though. unfurtunatly i cant see the use of this for my server. cool script anyway

Mr Qtip
01/04/2008, 08:42 PM
this is a keeper..Nice work :d I was hoping for soemtihng like this to come out

snipe69
01/04/2008, 09:37 PM
dudes this is an english forum!
NICE SCRIPT

BMW_M3_GTR
16/04/2008, 10:16 AM
Doesn´t work for me! :o
C:\.....\samp\pawno\include\spraytags.inc(139) : error 004: function "OnPlayerSpraySprayTag" is not implemented
C:\.....\samp\pawno\include\spraytags.inc(142) : error 004: function "OnPlayerSprayedAllSprayTags" is not implemented

JaTochNietDan
16/04/2008, 10:35 AM
Excellent work mate, do you want a mirror?

Dalenor
16/04/2008, 01:19 PM
Doesn´t work for me! :o
C:\.....\samp\pawno\include\spraytags.inc(139) : error 004: function "OnPlayerSpraySprayTag" is not implemented
C:\.....\samp\pawno\include\spraytags.inc(142) : error 004: function "OnPlayerSprayedAllSprayTags" is not implemented


Search for the Line OnPLayer... and delete it if you will use i recomend to make a backup before

ALEXALEX303
10/05/2008, 10:09 PM
When i go to a tag i and spray like 30 mins the color don`t change why ?

Ghard
11/05/2008, 01:22 AM
Nice , very... Nice

cmg4life
11/05/2008, 02:57 AM
very nice, like all ur INCs, u should make a system , like props, like add the tags ( the server) and they can spray only on them , playertopoint or XY in front... and not /spray or somethin, but if he has a spray can and presses fire, spray and a timer to avoid spam :P it will be pretty cool, but just some suggestions , also this may be connected to a gang zone system and when he sprays [number] of tags from a gang zone, that gang zone bcms his, not so hard for u Raf... good as always ;)

cheerz

Prof_Oak
11/05/2008, 03:44 AM
Yeaaah, this awesome Filterscript is freaking enormous good! Woow ! Nice one!

ALEXALEX303
11/05/2008, 06:39 AM
When i go to a tag i and spray like 30 mins the color don`t change why ?

Rafelder_GRF
11/05/2008, 09:51 AM
When i go to a tag i and spray like 30 mins the color don`t change why ?



SetPlayerSprayTag(playerid, tagid);
or you didn't stand infront of the spray tag with the right angle.

Rafelder_GRF
11/05/2008, 09:53 AM
//Edit: Sorry, wrong button xD (Quote <> modify)

Grove
11/05/2008, 10:28 AM
By the way, It might be better to check if they are near a tag under OnPlayerKeyStateChange - It's one extra timer :)

Nice work

Rafelder_GRF
11/05/2008, 10:45 AM
I don't trust in OnPlayerKeyStateChange :D

sebihunter
11/05/2008, 07:24 PM
thats fucking nice Rafelder

alexiis
28/05/2008, 08:05 AM
Rafelder_GRF I really love your spray tag include.
I used the editor and placed some tags in my test. but I had some difficulties when i try to use the functions of your include.
I would appreciate if you help me with a example.
The tags, well they appear, but when i try overlap the tag with the spray cam, like a singleplayer mode, nothing happens for me and I was a little frustrate here.
Can you helpme please, with example of the usage of your include.
since already I thank you for your help.
and of course i thankful for release this script. Now that for me if it became an honor question to have a power and the privilege to use it.

SooNy_007
28/05/2008, 03:22 PM
Nice ;)

MiX
28/05/2008, 10:46 PM
Cool

blewert
29/05/2008, 12:53 AM
Very unique, I doubt someone else has ever thought of this.

Good job Rafelder.

Rafelder_GRF
05/02/2009, 02:29 PM
Very unique, I doubt someone else has ever thought of this.

Good job Rafelder.


Its a little bit late cause I stopped with scripting but im really pleased that a moderator wrote something to my unique include :D

Jay_
17/09/2010, 10:04 PM
/bump

Don't suppose anyone has a mirror of this?

tonysbuc
23/09/2010, 09:42 AM
anyone have Mirror please

WebScript.Biz
03/02/2011, 02:27 PM
Plase mirror, this is a good FS/INC , but this mirror doesn´t work.

Bubelbub
09/07/2011, 11:44 AM
I need a Mirror, too.
The Download Link is for Objects. ( Ingame / TXD )

-> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> ->

Ich bräuchte auch einen Mirror / Spiegel :D.
Der jetzige Link geht zu irgendeiner Datei die nichts mit dem allen zu tun hat.
Danke schon mal ^^

Naruto_Emilio
09/07/2011, 12:16 PM
Good Job keep up the good work

jameskmonger
09/07/2011, 12:23 PM
Instead of this:
HasPlayerSprayedSprayTag(playerid, sprayid)

Why not have this:
GetSprayer(sprayid)

Then, if you wanted to send a message to the sprayer, instead of doing this:
for(new i; i < MAX_PLAYERS; i++) {
if(HasPlayerSprayedSprayTag(i, sprayid)) {
SendClientMessage(i, 0xFFFFFFAA, "MESSAGE");
break;
}
}
You could do this:
SendClientMessage(GetSprayer(sprayid), 0xFFFFFFAA, "MESSAGE");

Bubelbub
25/07/2011, 01:29 PM
Here is a Mirror:
Spay.zip (http://www.share-online.biz/dl/Q3LN5WOL0AU)

=====================

Hier ist eine originale Kopie zu finden.
Ich habe den Besitzer gefragt und darf diese veröffentlichen.
Spay.zip (http://www.share-online.biz/dl/Q3LN5WOL0AU)

The__
05/08/2012, 04:43 PM
Sorry for the huge bump, but anyone has it ?