01.04.2008, 17:38
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
Download: