SA-MP Forums Archive
[HELP] Need A FS! - 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: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [HELP] Need A FS! (/showthread.php?tid=641621)



[HELP] Need A FS! - StojkovicAndrej - 18.09.2017

I need a script where if someone pays you money or you get money from something else you get like a little textdraw!

https://imgur.com/a/iQvlx

Like this for example


Re: [HELP] Need A FS! - DonaldDuck - 19.09.2017

Looking for this?

Код:
#include <a_samp>

new Text:Textdraw0[MAX_PLAYERS];

public OnFilterScriptInit()
{
	print("Textdraw file generated by");
	print("    Zamaroht's textdraw editor was loaded.");

	// Create the textdraws:
	Textdraw0[playerid] = TextDrawCreate(445.000000, 83.000000, "+223939");
	TextDrawBackgroundColor(Textdraw0[playerid], 255);
	TextDrawFont(Textdraw0[playerid], 1);
	TextDrawLetterSize(Textdraw0[playerid], 0.330000, 1.100000);
	TextDrawColor(Textdraw0[playerid], 563163903);
	TextDrawSetOutline(Textdraw0[playerid], 0);
	TextDrawSetProportional(Textdraw0[playerid], 1);
	TextDrawSetShadow(Textdraw0[playerid], 1);
	TextDrawSetSelectable(Textdraw0[playerid], 0);

	return 1;
}

public OnPlayerConnect(playerid)
{
	TextDrawHideForPlayer(playerid, Textdraw0[playerid]);
	return 1;
}

public OnPlayerSpawn(playerid)
{
	TextDrawShowForPlayer(playerid, Textdraw0[playerid]);
	return 1;
}