2021-04-18, 12:30 PM
Hello, I would like to present you the Los Santos Gang Graffiti.
Video:
![[Image: c0RgnwW.gif]](https://i.imgur.com/c0RgnwW.gif)
Installation:
Download:
Graffiti.inc
graffiti.bin (put in /scriptfiles)
3DTryg.inc
Notice:
Filterscript not exist because filterscripts have limits.
This has been replaced by include, having automatic installation, efficient GameMode/FilterScript.
Video:
![[Image: c0RgnwW.gif]](https://i.imgur.com/c0RgnwW.gif)
Installation:
Code:
#include <streamer>
#include <3DTryg>
//#define GRAFFITI_DEFAULT_GANG 0
//#define GRAFFITI_DEFAULT_COLOR 0x003D00FF
//#define GRAFFITI_DEFAULT_NAME "Sekhmete Axion Rush"
#include <Graffiti>
public OnGameModeInit(){
//...load gang meta before init Graffiti
Graffiti::Init();
return 1;
}
public Graffiti::GetPlayerGang(playerid){
return PlayerData[playerid][gang]; //your variable returning gangid
}
//called after player change graffiti tag
public OnGraffitiTagChanged(mobid,playerid,gangid,old_gangid){
new buffer[32];
format(buffer,sizeof(buffer),"~w~Tag painted ~n~%d of %d",Graffiti::CountGangTags(gangid),MAX_GRAFFITI);
GameTextForPlayer(playerid,buffer,3000,4);
//Graffiti::SetGangName(mobid,0xDBDE1FFF,"Grove Street");
return 1;
}
//called after server init
public OnGraffitiTagCreated(mobid,gangid){
//Graffiti::SetGangName(mobid,0xDBDE1FFF,"Grove Street");
return 1;
}
Download:
Graffiti.inc
graffiti.bin (put in /scriptfiles)
3DTryg.inc
Notice:
Filterscript not exist because filterscripts have limits.
This has been replaced by include, having automatic installation, efficient GameMode/FilterScript.