[Ajuda] TextDraw
#3

#include <a_samp>
#include <zcmd>
#define PLAYERS 200

new Text:Name;
new strt[256];

public OnPlayerConnect(playerid)
{
Name = TextDrawCreate(1.000000, 328.000000," ");
TextDrawBackgroundColor(Name, 255);
TextDrawFont(Name, 2);
TextDrawLetterSize(Name, 0.500000, 1.000000);
TextDrawColor(Name, 16711935);
TextDrawSetOutline(Name, 1);
TextDrawSetProportional(Name, 1);
return 1;
}

public OnPlayerDisconnect(playerid, reason)
{

TextDrawHideForAll(Name);
return 1;
}

public OnPlayerSpawn(playerid)
{

TextDrawHideForPlayer(playerid,Name);
return 1;
}

if(IsPlayerConnected(playerid))
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name,sizeof(name));
format(strt,sizeof(strt),"Nick: ~b~%s",name);
TextDrawSetString(Name,strt);
TextDrawShowForPlayer(playerid,Name);
}
return 1;
}

COMMANDnhaoff(playerid,params[])
{
TextDrawHideForPlayer(playerid,Name);
return 1;
}
Reply


Messages In This Thread
TextDraw - by maxblaya01 - 18.07.2015, 04:32
Re: TextDraw - by Welconha - 18.07.2015, 04:33
Re : TextDraw - by maxblaya01 - 18.07.2015, 04:47
Re: TextDraw - by Welconha - 18.07.2015, 05:15
Re : TextDraw - by maxblaya01 - 18.07.2015, 05:25
Re: TextDraw - by Welconha - 18.07.2015, 05:27
Re: TextDraw - by Lуs - 18.07.2015, 06:39
Re: TextDraw - by IgorLuiz - 18.07.2015, 07:36
Re: TextDraw - by Lуs - 18.07.2015, 08:43
Re: TextDraw - by IgorLuiz - 18.07.2015, 14:51

Forum Jump:


Users browsing this thread: 2 Guest(s)