21.06.2014, 23:14
Tenho duas textdraws como uma TD qualquer, porйm elas estгo aparecendo na tela de login gostaria de saber como colocar para elas aparecerem apуs o spawn do player..
TextDrawShowForPlayer(playerid, Text:text);
//Topo
new Text:Textdraw1;
new Text:Textdraw2;
public OnGameModeInit()
{
AddStaticVehicle(451,1999.3174,-2581.4631,13.1982,0.1176,1,1);
Textdraw1 = TextDrawCreate(554.000000, 100.000000, "-------------------");
TextDrawAlignment(Textdraw1, 2);
TextDrawBackgroundColor(Textdraw1, 255);
TextDrawFont(Textdraw1, 2);
TextDrawLetterSize(Textdraw1, 0.200000, 1.000000);
TextDrawColor(Textdraw1, 9109759);
TextDrawSetOutline(Textdraw1, 1);
TextDrawSetProportional(Textdraw1, 1);
Textdraw2 = TextDrawCreate(524.000000, 435.000000, "--------------------");
TextDrawBackgroundColor(Textdraw2, 255);
TextDrawFont(Textdraw2, 2);
TextDrawLetterSize(Textdraw2, 0.200000, 1.000000);
TextDrawColor(Textdraw2, -1);
TextDrawSetOutline(Textdraw2, 1);
TextDrawSetProportional(Textdraw2, 1);
return 1;
}
public OnPlayerSpawn(playerid)
{
TextDrawHideForPlayer(playerid, Textdraw1);
TextDrawHideForPlayer(playerid, Textdraw2);
return 1;
}
public OnPlayerSpawn(playerid)
{
TextDrawShowForPlayer(playerid, Textdraw1);
TextDrawShowForPlayer(playerid, Textdraw2);
return 1;
}
public OnPlayerText(playerid, text[])
{
new string[128];
format(string,sizeof(string),"[%d] %s",playerid,text);
SendPlayerMessageToAll(playerid,string);
return 0;
}
new nome[24];
GetPlayerName(playerid, nome, 24);
new string[128];
format(string,sizeof(string),"[%d] %s: %s",playerid,nome,text);
SendPlayerMessageToAll(playerid,string);