[Include] Graffiti System - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (
https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] Graffiti System (
/showthread.php?tid=492675)
Graffiti System -
Yvax - 04.02.2014
Graffiti System
About
This include enables you to write on anything you like with only one function.You can make a system by yourself or you can use it to create writings on walls, buildings, or whatever makes you happy.
Functions
pawn Code:
native CreateGraffiti(playerid, Float:gX, Float:gy, Float:gZ, Float:gA, gText[], gFont[], gSize, gBold, gColor[]);
native DeleteGraffiti(graffid);
It needs playerid parameter in CreateGraffiti so players are able to adjust the object.
gColor[] - Hexadecimal color as string.Eg:"0xFFFFFF".It gets converted to int thanks to Draco's HexToInt.
Filterscript
You can also download the filterscript that uses this system.It's not the same and has less color options, but more variables(if you want to make other commands, like edit).You can use this as an example of what you can do with the include.
Screens
Screen1
Screen2
Download
Filterscript -
Download(Dropbox)
Include(recommended) -
Pastebin |
Download(Dropbox)
You can copy/modify/sell/whatever it.
Re: Graffiti System -
Don_Cage - 04.02.2014
Looks nice, good job
Re: Graffiti System -
Blunt - 04.02.2014
Great work, I like it.
Re: Graffiti System -
DenZarock - 05.02.2014
Nice
Re: Graffiti System -
basicllsw - 15.02.2014
can i do this?
ex:
Graffiti[1] = CreateGraffiti(playerid, Float:gX, Float:gy, Float:gZ, Float:gA, gText[], gFont[], gSize, gBold, gColor[]);
Re: Graffiti System -
PT - 15.02.2014
nice
add this:
pawn Code:
native GetGraffitiNearPlayer(playerid);
Re: Graffiti System - Patrick - 15.02.2014
Quote:
Originally Posted by PT
pawn Code:
native GetGraffitiNearPlayer(playerid);
|
Instead of creating a new thread I will just post a reply in here about this include. I have updated the include to Hook Method 7 and added 2 new functions which is
IsPlayerNearAnyGraffiti and
IsPlayerNearGraffiti- New Function: IsPlayerNearAnyGraffiti(playerid, Float: Distance);
- New Function: IsPlayerNearGraffiti(graffid, playerid, Float: Distance);
- New Hooking Method: The script hooking method has been updated to the latest one. (Hook Method 7)
Download
Re: Graffiti System -
ACI - 15.02.2014
Quote:
Instead of creating a new thread I will just post a reply in here about this include. I have updated the include to Hook Method 7 and added 2 new functions which is IsPlayerNearAnyGraffiti and IsPlayerNearGraffiti
New Function: IsPlayerNearAnyGraffiti(playerid, Float: Distance);
New Function: IsPlayerNearGraffiti(graffid, playerid, Float: Distance);
New Hooking Method: The script hooking method has been updated to the latest one. (Hook Method 7)
Download
|
And have you been given the permission by the initial author do so?
Re: Graffiti System - Patrick - 15.02.2014
Quote:
Originally Posted by ACI
And have you been given the permission by the initial author do so?
|
Read the thread carefully and widen your eyes, then comment after you've done reading them.
Quote:
Originally Posted by Yvax
You can copy/modify/sell/whatever it.
|
EDIT: #Owned.
Re: Graffiti System -
ACI - 15.02.2014
Quote:
You can copy/modify/sell/whatever it.
|
And where is the "Done by authorized copying/editing" - this proves that this is a fair copy? Also, those functions can be added by just requesting the author "Please add IsPlayerNearGraffiti and IsPlayerNearAnyGraffiti". The only different thing you're doing is using a while loop.