13.01.2014, 14:49
I create that for you using textdraw editor by zamoroth if you want to make your own textdraws easy later
- https://sampforum.blast.hk/showthread.php?tid=406833
- https://sampforum.blast.hk/showthread.php?tid=406833
pawn Код:
#include <a_samp>
new Text:Textdraw0;
new Text:Textdraw1;
public OnGameModeInit()
{
Textdraw0 = TextDrawCreate(543.000000, 85.000000, ",");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 1);
TextDrawLetterSize(Textdraw0, 0.500000, 1.700000);
TextDrawColor(Textdraw0, 560737023);
TextDrawSetOutline(Textdraw0, 1);
TextDrawSetProportional(Textdraw0, 1);
TextDrawSetSelectable(Textdraw0, 0);
Textdraw1 = TextDrawCreate(578.000000, 85.000000, ",");
TextDrawBackgroundColor(Textdraw1, 255);
TextDrawFont(Textdraw1, 1);
TextDrawLetterSize(Textdraw1, 0.500000, 1.700000);
TextDrawColor(Textdraw1, 560737023);
TextDrawSetOutline(Textdraw1, 1);
TextDrawSetProportional(Textdraw1, 1);
TextDrawSetSelectable(Textdraw1, 0);
for(new i; i < MAX_PLAYERS; i ++)
{
if(IsPlayerConnected(i))
{
TextDrawShowForPlayer(i, Textdraw0);
TextDrawShowForPlayer(i, Textdraw1);
}
}
return 1;
}
public OnGameModeExit()
{
TextDrawHideForAll(Textdraw0);
TextDrawDestroy(Textdraw0);
TextDrawHideForAll(Textdraw1);
TextDrawDestroy(Textdraw1);
return 1;
}
public OnPlayerSpawn(playerid)
{
TextDrawShowForPlayer(playerid, Textdraw0);
TextDrawShowForPlayer(playerid, Textdraw1);
return 1;
}