public OnPlayerConnect(playerid)
{
ClearChar(playerid);
SetPlayerColor(playerid, 0x6F6F6FFF);
new string[128];
format(string, sizeof(string), "~y~Welcome to~n~~b~MILLITARY ~w~VS ~r~REBELS~n~~w~%s", RPN(playerid));
TextDrawSetString(OP[4], string);
ToggleOpeningTD(playerid, 1);
PlayerInfo[playerid][pLoggedIn] = 0;
new query[248];
mysql_format(mysql, query, sizeof(query), "SELECT `BannedBy`, `BanReason`, `BannedDate`, `Username`, `IP` FROM `BanList` WHERE `Banned`=1 AND (`IP`='%e' OR `Username`='%e')", RPIP(playerid), RPN(playerid));
mysql_tquery(mysql, query, "CheckBan", "i", playerid);
mysql_format(mysql, query, sizeof(query), "SELECT * FROM `Users` WHERE `Username`='%e' LIMIT 1", RPN(playerid));
mysql_tquery(mysql, query, "LoadChar", "i", playerid);
return 1;
}
stock ToggleOpeningTD(playerid, toggle)
{
if(toggle)
{
for(new i = 0; i < 5; i++) TextDrawShowForPlayer(playerid, OP[i]);
TextDrawShowForPlayer(playerid, Vers);
}
else
{
for(new i = 0; i < 5; i++) TextDrawHideForPlayer(playerid, OP[i]);
TextDrawHideForPlayer(playerid, Vers);
}
}
OP[4] = TextDrawCreate(312.666687, 29.037025, "Welcome to MILLITARY VS REBELS");
TextDrawLetterSize(OP[4], 0.449999, 1.600000);
TextDrawAlignment(OP[4], 2);
TextDrawColor(OP[4], 0xFFF000FF);
TextDrawSetShadow(OP[4], 0);
TextDrawSetOutline(OP[4], 0);
TextDrawBackgroundColor(OP[4], 51);
TextDrawFont(OP[4], 2);
TextDrawSetProportional(OP[4], 1);
Information
You will need to use Player Textdraws instead, the way your using textdraws is globally, which means there is one Textdraw shared amongst all the players on your server, and when you change the textdraws text, your changing it for the entire server. This is where Player Textdraws come in, as they allow you to have one textdraw per player, and if you change the text of that textdraw it will only apply to the player of the textdraw you have changed. You can see more here: CreatePlayerTextDraw |