28.10.2017, 17:49
(
Последний раз редактировалось DeStRoY232; 28.10.2017 в 19:30.
)
i made textdraw that is like, when i join as BALLAS it will show textdraw of it that will be like "Player has joined as BALLAS" but when i joined another team like GROVE so it should move the BALLAS textdraw below it and show like this, but it's not moving like that it's just changed the textdraw to the new one i wanna move the old textdraw below to the new one
-----------------------------------
"Player has joined as GROVE" < current one
"Player has joined as BALLAS" < old one that will move below it , it shouldn't get disappeared just move below to
-----------------------------------
the new one
same with other gang i got BALLAS, GROVE, VAGOS, AZTECAS
code:
-----------------------------------
"Player has joined as GROVE" < current one
"Player has joined as BALLAS" < old one that will move below it , it shouldn't get disappeared just move below to
-----------------------------------
the new one
same with other gang i got BALLAS, GROVE, VAGOS, AZTECAS
code:
PHP код:
//gang join textdraw
new Text:gangname[MAX_PLAYERS];
public OnPlayerRequestSpawn(playerid)
{
new pname[MAX_PLAYER_NAME], string[128], gname[10];
if(gTeam[playerid] == 0) format(gname, sizeof(gname), "BALLAS");
else if(gTeam[playerid] == 1) format(gname, sizeof(gname), "GROVE");
else if(gTeam[playerid] == 2) format(gname, sizeof(gname), "VAGOS");
else if(gTeam[playerid] == 3) format(gname, sizeof(gname), "AZTECAS");
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), "~r~%s ~w~has spawned as ~y~%s", pname, gname);
TextDrawSetString(gangname[playerid], string);
TextDrawShowForPlayer(playerid, gangname[playerid]);
return 1;
}
public LoadTextDraws()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
gangname[i] = TextDrawCreate(1.129997, 195.226608, "_");
TextDrawLetterSize(gangname[i], 0.227700, 1.720800);
TextDrawAlignment(gangname[i], 1);
TextDrawColor(gangname[i], -1378294017);
TextDrawSetShadow(gangname[i], 0);
TextDrawSetOutline(gangname[i], 1);
TextDrawBackgroundColor(gangname[i], 255);
TextDrawFont(gangname[i], 3);
TextDrawSetProportional(gangname[i], 1);
TextDrawSetShadow(gangname[i], 0);
}
}