James_Diablo
Новичок
Нужна помощь
Добрый день. Такая проблема. Поставил себе панель админов как на Адвансе, но у меня 1й ид читера показывается для всех игроков, а все остальные для админов. Помогите исправить пожалуйста.
Добрый день. Такая проблема. Поставил себе панель админов как на Адвансе, но у меня 1й ид читера показывается для всех игроков, а все остальные для админов. Помогите исправить пожалуйста.
new Text:CheatShow[2][10];
AddCheater0(playerid)
{
for(new c; c < 10; c++) if(CheaterID[0][c] == playerid) return 1;
new string[3];
format(string, sizeof(string), "%i", playerid);
TextDrawSetString(CheatShow[0][CountCheater[0]], string);
CheaterID[0][CountCheater[0]] = playerid;
CountCheater[0]++;
if(CountCheater[0] >= 10) CountCheater[0] = 0;
return 1;
}
AddCheater1(playerid)
{
for(new c; c < 10; c++) if(CheaterID[1][c] == playerid) return 1;
new string[3];
format(string, sizeof(string), "%i", playerid);
TextDrawSetString(CheatShow[1][CountCheater[1]], string);
CheaterID[1][CountCheater[1]] = playerid;
CountCheater[1]++;
if(CountCheater[1] >= 10) CountCheater[1] = 0;
return 1;
}
{
for(new c; c < 10; c++) if(CheaterID[0][c] == playerid) return 1;
new string[3];
format(string, sizeof(string), "%i", playerid);
TextDrawSetString(CheatShow[0][CountCheater[0]], string);
CheaterID[0][CountCheater[0]] = playerid;
CountCheater[0]++;
if(CountCheater[0] >= 10) CountCheater[0] = 0;
return 1;
}
AddCheater1(playerid)
{
for(new c; c < 10; c++) if(CheaterID[1][c] == playerid) return 1;
new string[3];
format(string, sizeof(string), "%i", playerid);
TextDrawSetString(CheatShow[1][CountCheater[1]], string);
CheaterID[1][CountCheater[1]] = playerid;
CountCheater[1]++;
if(CountCheater[1] >= 10) CountCheater[1] = 0;
return 1;
}
for(new i = 0; i < 10; i++) TextDrawShowForPlayer(playerid, CheatShow[0]), TextDrawShowForPlayer(playerid, CheatShow[1]);
for(new i = 0; i < 10; i++) TextDrawHideForPlayer(playerid, CheatShow[0]), TextDrawHideForPlayer(playerid, CheatShow[1]);
for(new i = 0; i < 10; i++)
{
if(CheaterID[0] == playerid)
{
TextDrawSetString(CheatShow[0], "_");
CheaterID[0] = INVALID_PLAYER_ID;
}
if(CheaterID[1] == playerid)
{
TextDrawSetString(CheatShow[1], "_");
CheaterID[1] = INVALID_PLAYER_ID;
}
}
for(new i = 0; i < 10; i++)
{
if(CheaterID[0] == playerid)
{
TextDrawSetString(CheatShow[0], "_");
CheaterID[0] = INVALID_PLAYER_ID;
}
if(CheaterID[1] == playerid)
{
TextDrawSetString(CheatShow[1], "_");
CheaterID[1] = INVALID_PLAYER_ID;
}
}
new Float
rawPos = 26.000000;
CountCheater[0] = 0;
CountCheater[1] = 0;
for(new i; i < 10; i++)
{
if(i > 0) DrawPos += 30;
CheatShow[0] = TextDrawCreate(DrawPos, 423.000000, "_");
CheatShow[1] = TextDrawCreate(DrawPos, 434.000000, "_");
TextDrawColor(CheatShow[0], 0xef8100FF);
TextDrawColor(CheatShow[1], 0xffffffFF);
TextDrawFont(CheatShow[0], 3);
TextDrawFont(CheatShow[1], 3);
TextDrawSetOutline(CheatShow[0], 1);
TextDrawSetOutline(CheatShow[1], 1);
TextDrawLetterSize(CheatShow[0], 0.3500, 1.270);
TextDrawLetterSize(CheatShow[1], 0.3500, 1.270);
CheaterID[0] = INVALID_PLAYER_ID;
CheaterID[1] = INVALID_PLAYER_ID;
}
CountCheater[0] = 0;
CountCheater[1] = 0;
for(new i; i < 10; i++)
{
if(i > 0) DrawPos += 30;
CheatShow[0] = TextDrawCreate(DrawPos, 423.000000, "_");
CheatShow[1] = TextDrawCreate(DrawPos, 434.000000, "_");
TextDrawColor(CheatShow[0], 0xef8100FF);
TextDrawColor(CheatShow[1], 0xffffffFF);
TextDrawFont(CheatShow[0], 3);
TextDrawFont(CheatShow[1], 3);
TextDrawSetOutline(CheatShow[0], 1);
TextDrawSetOutline(CheatShow[1], 1);
TextDrawLetterSize(CheatShow[0], 0.3500, 1.270);
TextDrawLetterSize(CheatShow[1], 0.3500, 1.270);
CheaterID[0] = INVALID_PLAYER_ID;
CheaterID[1] = INVALID_PLAYER_ID;
}
Последнее редактирование:
