[FilterScript] MRSH: News System [TextDraw]
#1


MRSH SYSTEMS
Name: News System [TextDraw]
Code:
Код:
#include <a_samp>
#include <sscanf2>
#include <zcmd>

new Text:Mrsh[MAX_PLAYERS];

public OnFilterScriptInit()
{
	return 1;
}

public OnFilterScriptExit()
{
	return 1;
}

CMD:an(playerid, params[])
{
  new string[126];
  if(sscanf(params,"s[126]",string)) return SendClientMessage(playerid, 0xFF0000AA,"USAGE: /an [news]");
  format(string, sizeof(string),"NEWS: ~r~%s",string);
  TextDrawSetString(Mrsh[playerid], string);
  return 1;
}

public OnPlayerConnect(playerid)
{
	Mrsh[playerid] = TextDrawCreate(328.000000, 433.000000, "News:");
	TextDrawBackgroundColor(Mrsh[playerid], 255);
	TextDrawFont(Mrsh[playerid], 1);
	TextDrawLetterSize(Mrsh[playerid], 0.500000, 1.399999);
	TextDrawColor(Mrsh[playerid], 16777215);
	TextDrawSetOutline(Mrsh[playerid], 0);
	TextDrawSetProportional(Mrsh[playerid], 0);
	TextDrawSetShadow(Mrsh[playerid], 1);
	TextDrawUseBox(Mrsh[playerid], 1);
	TextDrawBoxColor(Mrsh[playerid], 136);
	TextDrawTextSize(Mrsh[playerid], 0.000000, -319.000000);
	TextDrawShowForAll(Mrsh[playerid]);
}
Reply
#2

Any screens?
Reply
#3

Quote:
Originally Posted by Mckarlis
Посмотреть сообщение
Any screens?
Yep
Reply
#4

any ss / video ?
Reply
#5

Dont need screenshot because its very simple!
under game add News: ABCDEFG with red coler!
and If anyone could provide screenshot i edit post!
Reply
#6

You need playertextdraws and lol!

TextDrawShowForAll(Mrsh[playerid]);
Reply
#7

Quote:
Originally Posted by [uL]Pottus
Посмотреть сообщение
You need playertextdraws and lol!

TextDrawShowForAll(Mrsh[playerid]);
https://sampforum.blast.hk/showthread.php?tid=408824
read this.
using a translator.
Reply
#8

Nice
Reply
#9

thank you!
Reply
#10

where is the new textdraw system ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)