03.05.2012, 21:03
Ae Galera baixei esse textdraw na net mais so que ele nгo fuciona
Alguem pode me ajudar?
pawn Код:
#include <a_samp>
new Text:LOOST;
new Text:WWW;
new Text:TECNOSAMP;
new Text:NET;
new Text:INI;
new Text:FIN;
public OnFilterScriptInit()
{
LOOST = TextDrawCreate(511.000000, 399.000000, "LoOsT");
TextDrawBackgroundColor(LOOST, 255);
TextDrawFont(LOOST, 1);
TextDrawLetterSize(LOOST, 1.109999, 3.699998);
TextDrawColor(LOOST, -1);
TextDrawSetOutline(LOOST, 0);
TextDrawSetProportional(LOOST, 1);
TextDrawSetShadow(LOOST, 3);
WWW = TextDrawCreate(510.000000, 430.000000, "www");
TextDrawBackgroundColor(WWW, 255);
TextDrawFont(WWW, 0);
TextDrawLetterSize(WWW, 0.500000, 1.100000);
TextDrawColor(WWW, -16776961);
TextDrawSetOutline(WWW, 1);
TextDrawSetProportional(WWW, 1);
TECNOSAMP = TextDrawCreate(544.000000, 430.000000, "tecno-samp");
TextDrawBackgroundColor(TECNOSAMP, 255);
TextDrawFont(TECNOSAMP, 1);
TextDrawLetterSize(TECNOSAMP, 0.279999, 1.200000);
TextDrawColor(TECNOSAMP, -1);
TextDrawSetOutline(TECNOSAMP, 1);
TextDrawSetProportional(TECNOSAMP, 1);
NET = TextDrawCreate(602.000000, 430.000000, "net");
TextDrawBackgroundColor(NET, 255);
TextDrawFont(NET, 0);
TextDrawLetterSize(NET, 0.500000, 1.100000);
TextDrawColor(NET, -16776961);
TextDrawSetOutline(NET, 1);
TextDrawSetProportional(NET, 1);
INI = TextDrawCreate(540.000000, 430.000000, ".");
TextDrawBackgroundColor(INI, 255);
TextDrawFont(INI, 2);
TextDrawLetterSize(INI, 0.500000, 1.100000);
TextDrawColor(INI, -65281);
TextDrawSetOutline(INI, 0);
TextDrawSetProportional(INI, 1);
TextDrawSetShadow(INI, 1);
FIN = TextDrawCreate(598.000000, 430.000000, ".");
TextDrawBackgroundColor(FIN, 255);
TextDrawFont(FIN, 2);
TextDrawLetterSize(FIN, 0.500000, 1.100000);
TextDrawColor(FIN, -65281);
TextDrawSetOutline(FIN, 0);
TextDrawSetProportional(FIN, 1);
TextDrawSetShadow(FIN, 1);
for(new i; i < MAX_PLAYERS; i ++)
{
if(IsPlayerConnected(i))
{
TextDrawShowForPlayer(i, LOOST);
TextDrawShowForPlayer(i, WWW);
TextDrawShowForPlayer(i, TECNOSAMP);
TextDrawShowForPlayer(i, NET);
TextDrawShowForPlayer(i, INI);
TextDrawShowForPlayer(i, FIN);
}
}
return 1;
}
public OnFilterScriptExit()
{
TextDrawHideForAll(LOOST);
TextDrawDestroy(LOOST);
TextDrawHideForAll(WWW);
TextDrawDestroy(WWW);
TextDrawHideForAll(TECNOSAMP);
TextDrawDestroy(TECNOSAMP);
TextDrawHideForAll(NET);
TextDrawDestroy(NET);
TextDrawHideForAll(INI);
TextDrawDestroy(INI);
TextDrawHideForAll(FIN);
TextDrawDestroy(FIN);
return 1;
}
public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid, LOOST);
TextDrawShowForPlayer(playerid, WWW);
TextDrawShowForPlayer(playerid, TECNOSAMP);
TextDrawShowForPlayer(playerid, NET);
TextDrawShowForPlayer(playerid, INI);
TextDrawShowForPlayer(playerid, FIN);
return 1;
}