Quote:
Originally Posted by yNexus
PHP код:
new Textdraw2[MAX_PLAYERS];
PHP код:
Em OnGameModeInit
PHP код:
for(new i=0; i<GetMaxPlayers(); i++)
{
Textdraw2[i] = TextDrawCreate(480.000000, 107.000000, "GHLEMES");
TextDrawBackgroundColor(Textdraw2[i], 255);
TextDrawFont(Textdraw2[i], 1);
TextDrawLetterSize(Textdraw2[i], 1.020000, 2.000000);
TextDrawColor(Textdraw2[i], -16776961);
TextDrawSetOutline(Textdraw2[i], 0);
TextDrawSetProportional(Textdraw2[i], 1);
TextDrawSetShadow(Textdraw2[i], 1);
}
PHP код:
new Pname[MAX_PLAYER_NAME];
new string[128];
GetPlayerName(playerid, Pname, sizeof(Pname));
format(string, sizeof(string), "%s", Pname);
TextDrawSetString(Textdraw2[playerid], string);
TextDrawShowForPlayer(playerid, Textdraw2[playerid]);
|
esse modo й incorreto.
o correto e fazer com player textdraw (
https://sampwiki.blast.hk/wiki/CreatePlayerTextDraw ) que foi para isso que elas foram feitas