Public feed
#888822
#include <a_samp>
new Text:SSWTextDraw_Main;
new Text:SSWTextDraw_IP;
new Text:ChatBox;
public OnFilterScriptExit()
{
print(" *** [FS]CHAT + IPADRESS UnLoaded ***");
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/chatbg", true))
{
TextDrawHideForPlayer(playerid, Text:ChatBox);
} else {
TextDrawShowForPlayer(playerid, Text:ChatBox);
return 1;
}
return 0;
}
public OnPlayerConnect(playerid){
TextDrawShowForPlayer(playerid, ChatBox);
TextDrawShowForPlayer(playerid, SSWTextDraw_Main);
TextDrawShowForPlayer(playerid, SSWTextDraw_IP);
return 1;
}
public OnFilterScriptInit()
{
ChatBox = TextDrawCreate(7.000000,10.000000," Stunt WorldChat");
TextDrawUseBox(ChatBox,1);
TextDrawBoxColor(ChatBox,0x00000066);
TextDrawTextSize(ChatBox,475.000000,0.000000);
TextDrawAlignment(ChatBox,0);
TextDrawFont(ChatBox,2);
TextDrawLetterSize(ChatBox,1.000000,12.000000);
TextDrawColor(ChatBox,0x00000066);
TextDrawSetOutline(ChatBox,0);
TextDrawSetProportional(ChatBox,0);
TextDrawSetShadow(ChatBox,0);
SSWTextDraw_Main = TextDrawCreate(1.000000,427.000000,"Sa_Stunt_World");
TextDrawAlignment(SSWTextDraw_Main,0);
TextDrawBackgroundColor(SSWTextDraw_Main,0x000000ff);
TextDrawFont(SSWTextDraw_Main,2);
TextDrawLetterSize(SSWTextDraw_Main,1.000000,1.000000);
TextDrawColor(SSWTextDraw_Main,0xff0000ff);
TextDrawSetOutline(SSWTextDraw_Main,1);
TextDrawSetProportional(SSWTextDraw_Main,1);
TextDrawSetShadow(SSWTextDraw_Main,1);
SSWTextDraw_IP = TextDrawCreate(1.000000,437.000000,"IP: 213.119.107.102:7777");
TextDrawAlignment(SSWTextDraw_IP,0);
TextDrawBackgroundColor(SSWTextDraw_IP,0x000000ff);
TextDrawFont(SSWTextDraw_IP,1);
TextDrawLetterSize(SSWTextDraw_IP,1.000000,1.000000);
TextDrawColor(SSWTextDraw_IP,0xffffffff);
TextDrawSetProportional(SSWTextDraw_IP,1);
return 1;
}