Fast_Stone
Умник
HTML:
При в заходе у игроков в банде появляется это окошка каждый раз, Хочу сделать чтобы при капте только появилась.
HTML:
/capture текстрав:
PHP:
//================================/capture текстрав=============================
fon = TextDrawCreate(1, 285, "_");
TextDrawUseBox(fon, 1);
TextDrawBoxColor(fon, 0x00000075);
TextDrawTextSize(fon, 150.0, 400.0);
TextDrawLetterSize(fon, 0.0, 5.3);
//==============================================================================
timetext = TextDrawCreate(10.0, 285.0, "Time:");
TextDrawLetterSize(timetext, 0.4, 1.2);
TextDrawColor(timetext, 0x33AAFFFF);
TextDrawFont(timetext, 2);
TextDrawSetProportional(timetext, 1);
TextDrawSetOutline(timetext, 2);
//==============================================================================
vremya = TextDrawCreate(50.0, 285.0, "none");
TextDrawLetterSize(vremya, 0.4, 1.2);
TextDrawColor(vremya, 0x33AAFFFF);
TextDrawFont(vremya, 2);
TextDrawSetOutline(vremya, 2);
//==============================================================================
onecommand = TextDrawCreate(10.0, 300.0, "none");
TextDrawLetterSize(onecommand, 0.4, 1.2);
TextDrawFont(onecommand, 2);
TextDrawSetOutline(onecommand, 2);
//==============================================================================
twocommand = TextDrawCreate(10.0, 315.0, "none");
TextDrawUseBox(twocommand, 0);
TextDrawLetterSize(twocommand, 0.4, 1.2);
TextDrawFont(twocommand, 2);
TextDrawSetOutline(twocommand, 2);
//==============================================================================
kolone = TextDrawCreate(133.0, 315.0, "0");
TextDrawLetterSize(kolone, 0.4, 1.2);
TextDrawFont(kolone, 2);
TextDrawSetOutline(kolone, 2);
//==============================================================================
koltwo = TextDrawCreate(133.0, 300.0, "0");
TextDrawLetterSize(koltwo, 0.4, 1.2);
TextDrawFont(koltwo, 2);
TextDrawSetOutline(koltwo, 2);
//==============================================================================
WarZoneID = 255;
PHP:
public OnPlayerDisconnect(playerid, reason)
PHP:
if(capt == 1 || capt == 10)
{
if(PlayerInfo[playerid][pMRInections] == 12 || PlayerInfo[playerid][pMRInections] == 13 || PlayerInfo[playerid][pMRInections] == 15 || PlayerInfo[playerid][pMRInections] == 17 || PlayerInfo[playerid][pMRInections] == 18)
{
TextDrawHideForPlayer(playerid, fon);
TextDrawHideForPlayer(playerid, onecommand);
TextDrawHideForPlayer(playerid, twocommand);
TextDrawHideForPlayer(playerid, kolone);
TextDrawHideForPlayer(playerid, koltwo);
TextDrawHideForPlayer(playerid, timetext);
TextDrawHideForPlayer(playerid, vremya);
GangZoneStopFlashForPlayer(playerid, WarZoneID);
}
}
