Позитифчик=)
Умник
Здраствуйте ув.форумчане.
Ранее я пообещал что выложу очень похожую копию /recon 2.0 с Samp-Rp.Ru
И так TD очень похожие...(Отличаеться оформление).
Функционал очень похож...
Скажу сразу оптимизация тут не самая лучшая но и не самая худшая(Поэтому не стоит мне о этом напоминать)
И так приступим.
Скриншот
У кого не грузит
Ко всем new
Далее в public OnPlayerClickTextDraw(playerid, Text:clickedid)
Далее в public OnGameModeInit
Куда нибудь в конец мода
К командам
Ко всем case
P.S Совсем забыл панель инфы игрока
В public OnPlayerConnect
Ранее я пообещал что выложу очень похожую копию /recon 2.0 с Samp-Rp.Ru
И так TD очень похожие...(Отличаеться оформление).
Функционал очень похож...
Скажу сразу оптимизация тут не самая лучшая но и не самая худшая(Поэтому не стоит мне о этом напоминать)
И так приступим.
Скриншот
У кого не грузит
Чтобы видеть скрытое содержание Зарегистрируйтесь на форуме!
Ко всем new
PHP:
new Text:Click[19];
new Text:gmclick[5];
new Text:statsclick[7];
new Text:banclick[7];
new Text:kickclick[5];
new Text:dropclick[11];
new Text:recon[15];
new Text:stats[12][MAX_PLAYERS];
new bool:recontd[5][MAX_PLAYERS];
new Float:SpectPosFloat[MAX_PLAYERS][4];
new SpectPos[MAX_PLAYERS][2];
new Spectate[MAX_PLAYERS];
new gSpectateID[MAX_PLAYERS];
new gSpectateType[MAX_PLAYERS];
PHP:
if(clickedid == Click[0])
{
format(stringer, sizeof(stringer), "/re %i",Spectate[playerid]+1);
CallLocalFunction("OnPlayerCommandText", "is", playerid, stringer);
if(IsPlayerInAnyVehicle(Spectate[playerid])) PlayerSpectateVehicle(playerid, GetPlayerVehicleID(Spectate[playerid]), 1);
else PlayerSpectatePlayer(playerid, Spectate[playerid], 1);
SetPlayerInterior(playerid,GetPlayerInterior(Spectate[playerid]));
SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(Spectate[playerid]));
StartRecon(playerid);
}
if(clickedid == Click[1])
{
if(recontd[0][playerid] == false)
{
for(new i = 0; i < 5; i++) TextDrawShowForPlayer(playerid,gmclick[i]);
recontd[0][playerid] = true;
return true;
}
else
{
for(new i = 0; i < 5; i++) TextDrawHideForPlayer(playerid,gmclick[i]);
recontd[0][playerid] = false;
return true;
}
}
if(clickedid == gmclick[1])
{
format(stringer,sizeof(stringer),"/gm %s",Spectate[playerid]);
OnPlayerCommandText(playerid,stringer);
StartRecon(playerid);
}
if(clickedid == gmclick[2])
{
SendClientMessage(playerid, COLOR_WHITE, "Данной функции еще нету!");
StartRecon(playerid);
}
if(clickedid == Click[2])
{
if(recontd[1][playerid] == false)
{
for(new x = 0; x < 11; x++) TextDrawShowForPlayer(playerid,dropclick[x]);
recontd[1][playerid] = true;
}
else
{
for(new x = 0; x < 11; x++) TextDrawHideForPlayer(playerid,dropclick[x]);
recontd[1][playerid] = false;
}
}
if(clickedid == dropclick[1])
{
if(PlayerInfo[playerid][pAdmin] <= 1) return SendClientMessage(playerid, COLOR_WHITE, YouCanNot); StartRecon(playerid);
ShowPlayerDialog(playerid,13996,DIALOG_STYLE_INPUT,"Бан Чата","Введите причину","Готово","Отмена");
}
if(clickedid == dropclick[2])
{
format(stringer,sizeof(stringer),"/slap %d",Spectate[playerid]);
OnPlayerCommandText(playerid,stringer);
StartRecon(playerid);
}
if(clickedid == dropclick[3])
{
format(stringer,sizeof(stringer),"/demorgan %d",Spectate[playerid]);
OnPlayerCommandText(playerid,stringer);
StartRecon(playerid);
}
if(clickedid == dropclick[4])
{
format(stringer,sizeof(stringer),"/freeze %d",Spectate[playerid]);
OnPlayerCommandText(playerid,stringer);
StartRecon(playerid);
}
if(clickedid == dropclick[5])
{
format(stringer,sizeof(stringer),"/unfreeze %d",Spectate[playerid]);
OnPlayerCommandText(playerid,stringer);
StartRecon(playerid);
}
if(clickedid == Click[3])
{
if(recontd[2][playerid] == false)
{
for(new a = 0; a < 5; a++) TextDrawShowForPlayer(playerid,kickclick[a]);
recontd[2][playerid] = true;
}
else
{
for(new a = 0; a < 5; a++) TextDrawHideForPlayer(playerid,kickclick[a]);
recontd[2][playerid] = false;
}
}
if(clickedid == kickclick[1])
{
if(PlayerInfo[playerid][pAdmin] <= 2) return SendClientMessage(playerid, COLOR_WHITE, YouCanNot); StartRecon(playerid);
ShowPlayerDialog(playerid,13997,DIALOG_STYLE_INPUT,"Кик","Введите причину","Кик","Отмена");
}
if(clickedid == kickclick[2])
{
format(stringer,sizeof(stringer),"/skick %d",Spectate[playerid]);
OnPlayerCommandText(playerid,stringer);
StartRecon(playerid);
}
if(clickedid == Click[4])
{
if(PlayerInfo[playerid][pAdmin] <= 4) return SendClientMessage(playerid, COLOR_WHITE, YouCanNot); StartRecon(playerid);
ShowPlayerDialog(playerid,13998,DIALOG_STYLE_INPUT,"Варн","Введите причину","Варн","Отмена");
}
if(clickedid == Click[5])
{
if(recontd[3][playerid] == false)
{
for(new a = 0; a < 7; a++) TextDrawShowForPlayer(playerid,banclick[a]);
recontd[3][playerid] = true;
}
else
{
for(new a = 0; a < 7; a++) TextDrawHideForPlayer(playerid,banclick[a]);
recontd[3][playerid] = false;
}
}
if(clickedid == banclick[1])
{
if(PlayerInfo[playerid][pAdmin] <= 6) return SendClientMessage(playerid, COLOR_WHITE, YouCanNot); StartRecon(playerid);
ShowPlayerDialog(playerid,13999,DIALOG_STYLE_INPUT,"Бан","Введите причину","Бан","Отмена");
}
if(clickedid == banclick[2])
{
format(stringer,sizeof(stringer),"/sban %d",Spectate[playerid]);
OnPlayerCommandText(playerid,stringer);
StartRecon(playerid);
}
if(clickedid == banclick[3])
{
SendClientMessage(playerid, COLOR_WHITE, "Данной функции еще нету!");
StartRecon(playerid);
}
if(clickedid == Click[6])
{
if(recontd[4][playerid] == false)
{
for(new a = 0; a < 7; a++) TextDrawShowForPlayer(playerid,statsclick[a]);
recontd[4][playerid] = true;
}
else
{
for(new a = 0; a < 7; a++) TextDrawHideForPlayer(playerid,statsclick[a]);
recontd[4][playerid] = false;
}
}
if(clickedid == statsclick[1])
{
format(stringer,sizeof(stringer),"/getstats %d",Spectate[playerid]);
OnPlayerCommandText(playerid,stringer);
StartRecon(playerid);
}
if(clickedid == statsclick[2])
{
SendClientMessage(playerid, COLOR_WHITE, "Данной функции еще нету!");
StartRecon(playerid);
}
if(clickedid == statsclick[3])
{
format(stringer,sizeof(stringer),"/getip %d",Spectate[playerid]);
OnPlayerCommandText(playerid,stringer);
StartRecon(playerid);
}
if(clickedid == Click[7])
{
if(IsPlayerInAnyVehicle(Spectate[playerid])) PlayerSpectateVehicle(playerid, GetPlayerVehicleID(Spectate[playerid]), 1);
else PlayerSpectatePlayer(playerid, Spectate[playerid], 1);
SetPlayerInterior(playerid,GetPlayerInterior(Spectate[playerid]));
SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(Spectate[playerid]));
return true;
}
if(clickedid == Click[8])
{
StopSpectate(playerid);
}
if(clickedid == recon[12])
{
format(temp,sizeof(temp), "Level: Уровень игрока!");
strcat(stringer,temp);
format(temp,sizeof(temp), "Warns: Кол-во варнов у игрока,если 0,это не значит что их небыло у игрока.\n");
strcat(stringer,temp);
format(temp,sizeof(temp), "Armout: Броня игрока\n");
strcat(stringer,temp);
format(temp,sizeof(temp), "Health: Здоровье\n\n\n");
strcat(stringer,temp);
format(temp,sizeof(temp), "Car HP: Здоровье машины\n");
strcat(stringer,temp);
format(temp,sizeof(temp), "Speed: Скорость машины");
strcat(stringer,temp);
format(temp,sizeof(temp), "Ping: Пинг игрока");
strcat(stringer,temp);
format(temp,sizeof(temp), "Ammo: Патроны игрока");
strcat(stringer,temp);
format(temp,sizeof(temp), "Shot: Количество выстрелов/попаданий,процент попаданий");
strcat(stringer,temp);
format(temp,sizeof(temp), "TimeShot: Количество выстрелов/попаданий,процент попаданий");
strcat(stringer,temp);
ShowPlayerDialog(playerid,10004,DIALOG_STYLE_MSGBOX, "Помощь",stringer, "Закрыть", "");
}
PHP:
//===============================================================Stats RECON
recon[0] = TextDrawCreate(641.531494, 147.916656, "usebox");
TextDrawLetterSize(recon[0], 0.000000, 25.285184);
TextDrawTextSize(recon[0], 504.471435, 0.000000);
TextDrawAlignment(recon[0], 1);
TextDrawColor(recon[0], 0);
TextDrawUseBox(recon[0], true);
TextDrawBoxColor(recon[0], -2139062017);
TextDrawSetShadow(recon[0], 0);
TextDrawSetOutline(recon[0], 0);
TextDrawFont(recon[0], 0);
recon[1] = TextDrawCreate(639.188842, 150.250000, "usebox");
TextDrawLetterSize(recon[1], 0.000000, 24.701854);
TextDrawTextSize(recon[1], 506.814056, 0.000000);
TextDrawAlignment(recon[1], 1);
TextDrawColor(recon[1], 0);
TextDrawUseBox(recon[1], true);
TextDrawBoxColor(recon[1], 102);
TextDrawSetShadow(recon[1], 0);
TextDrawSetOutline(recon[1], 0);
TextDrawFont(recon[1], 0);
recon[2] = TextDrawCreate(513.030822, 190.749984, "::Level:");
TextDrawLetterSize(recon[2], 0.325372, 0.812500);
TextDrawAlignment(recon[2], 1);
TextDrawColor(recon[2], 8388863);
TextDrawSetShadow(recon[2], 0);
TextDrawSetOutline(recon[2], 1);
TextDrawBackgroundColor(recon[2], 255);
TextDrawFont(recon[2], 1);
TextDrawSetProportional(recon[2], 1);
recon[3] = TextDrawCreate(513.030883, 198.916717, "::Warns:");
TextDrawLetterSize(recon[3], 0.328651, 0.835833);
TextDrawAlignment(recon[3], 1);
TextDrawColor(recon[3], 8388863);
TextDrawSetShadow(recon[3], 0);
TextDrawSetOutline(recon[3], 1);
TextDrawBackgroundColor(recon[3], 255);
TextDrawFont(recon[3], 1);
TextDrawSetProportional(recon[3], 1);
recon[4] = TextDrawCreate(513.499511, 214.083404, "::Armour:");
TextDrawLetterSize(recon[4], 0.277114, 1.039998);
TextDrawAlignment(recon[4], 1);
TextDrawColor(recon[4], -16776961);
TextDrawSetShadow(recon[4], 0);
TextDrawSetOutline(recon[4], 1);
TextDrawBackgroundColor(recon[4], 255);
TextDrawFont(recon[4], 1);
TextDrawSetProportional(recon[4], 1);
recon[5] = TextDrawCreate(513.499206, 224.583374, "::Health:");
TextDrawLetterSize(recon[5], 0.301010, 0.987496);
TextDrawAlignment(recon[5], 1);
TextDrawColor(recon[5], -16776961);
TextDrawSetShadow(recon[5], 0);
TextDrawSetOutline(recon[5], 1);
TextDrawBackgroundColor(recon[5], 255);
TextDrawFont(recon[5], 1);
TextDrawSetProportional(recon[5], 1);
recon[6] = TextDrawCreate(513.499450, 239.749984, "::CarHP:");
TextDrawLetterSize(recon[6], 0.306163, 0.993332);
TextDrawAlignment(recon[6], 1);
TextDrawColor(recon[6], -2147450625);
TextDrawSetShadow(recon[6], 0);
TextDrawSetOutline(recon[6], 1);
TextDrawBackgroundColor(recon[6], 255);
TextDrawFont(recon[6], 1);
TextDrawSetProportional(recon[6], 1);
recon[7] = TextDrawCreate(513.499389, 249.666519, "::Speed:");
TextDrawLetterSize(recon[7], 0.293980, 1.010833);
TextDrawAlignment(recon[7], 1);
TextDrawColor(recon[7], -2147450625);
TextDrawSetShadow(recon[7], 0);
TextDrawSetOutline(recon[7], 1);
TextDrawBackgroundColor(recon[7], 255);
TextDrawFont(recon[7], 1);
TextDrawSetProportional(recon[7], 1);
recon[8] = TextDrawCreate(513.967529, 264.249877, "::Ping:");
TextDrawLetterSize(recon[8], 0.291171, 1.121665);
TextDrawAlignment(recon[8], 1);
TextDrawColor(recon[8], 2142327295);
TextDrawSetShadow(recon[8], 0);
TextDrawSetOutline(recon[8], 1);
TextDrawBackgroundColor(recon[8], 255);
TextDrawFont(recon[8], 1);
TextDrawSetProportional(recon[8], 1);
recon[9] = TextDrawCreate(513.967895, 274.166595, "::Ammo:");
TextDrawLetterSize(recon[9], 0.232602, 1.284999);
TextDrawAlignment(recon[9], 1);
TextDrawColor(recon[9], 2142327295);
TextDrawSetShadow(recon[9], 0);
TextDrawSetOutline(recon[9], 1);
TextDrawBackgroundColor(recon[9], 255);
TextDrawFont(recon[9], 1);
TextDrawSetProportional(recon[9], 1);
recon[10] = TextDrawCreate(513.967773, 292.249938, "::Shot:");
TextDrawLetterSize(recon[10], 0.239629, 1.156666);
TextDrawAlignment(recon[10], 1);
TextDrawColor(recon[10], -16711681);
TextDrawSetShadow(recon[10], 0);
TextDrawSetOutline(recon[10], 1);
TextDrawBackgroundColor(recon[10], 255);
TextDrawFont(recon[10], 1);
TextDrawSetProportional(recon[10], 1);
recon[11] = TextDrawCreate(513.967712, 303.916687, "::TimeShot:");
TextDrawLetterSize(recon[11], 0.219013, 1.069162);
TextDrawAlignment(recon[11], 1);
TextDrawColor(recon[11], -16711681);
TextDrawSetShadow(recon[11], 0);
TextDrawSetOutline(recon[11], 1);
TextDrawBackgroundColor(recon[11], 255);
TextDrawFont(recon[11], 1);
TextDrawSetProportional(recon[11], 1);
recon[12] = TextDrawCreate(529.897644, 337.750030, "LD_SPAC:white");
TextDrawLetterSize(recon[12], 0.000000, 0.000000);
TextDrawTextSize(recon[12], 85.739379, 20.999984);
TextDrawAlignment(recon[12], 1);
TextDrawColor(recon[12], 909523455);
TextDrawSetShadow(recon[12], 0);
TextDrawSetOutline(recon[12], 0);
TextDrawFont(recon[12], 4);
TextDrawSetSelectable(recon[12], true);
recon[13] = TextDrawCreate(560.351684, 343.000061, "Help");
TextDrawLetterSize(recon[13], 0.314597, 1.150832);
TextDrawAlignment(recon[13], 1);
TextDrawColor(recon[13], -1);
TextDrawSetShadow(recon[13], 0);
TextDrawSetOutline(recon[13], 1);
TextDrawBackgroundColor(recon[13], 255);
TextDrawFont(recon[13], 1);
TextDrawSetProportional(recon[13], 1);
recon[14] = TextDrawCreate(554.260498, 172.083435, "ID:");
TextDrawLetterSize(recon[14], 0.422825, 1.273331);
TextDrawAlignment(recon[14], 1);
TextDrawColor(recon[14], -1);
TextDrawSetShadow(recon[14], 0);
TextDrawSetOutline(recon[14], 1);
TextDrawBackgroundColor(recon[14], 255);
TextDrawFont(recon[14], 1);
TextDrawSetProportional(recon[14], 1);
//=====================================================================STATS
statsclick[0] = TextDrawCreate(150.115676, 277.833404, "usebox");
TextDrawLetterSize(statsclick[0], 0.000000, 7.751495);
TextDrawTextSize(statsclick[0], 73.431922, 0.000000);
TextDrawAlignment(statsclick[0], 1);
TextDrawColor(statsclick[0], 0);
TextDrawUseBox(statsclick[0], true);
TextDrawBoxColor(statsclick[0], -2139062017);
TextDrawSetShadow(statsclick[0], 0);
TextDrawSetOutline(statsclick[0], 0);
TextDrawFont(statsclick[0], 0);
statsclick[1] = TextDrawCreate(77.215225, 277.833465, "LD_SPAC:white");
TextDrawLetterSize(statsclick[1], 0.000000, 0.000000);
TextDrawTextSize(statsclick[1], 69.341140, 22.750000);
TextDrawAlignment(statsclick[1], 1);
TextDrawColor(statsclick[1], 909523455);
TextDrawSetShadow(statsclick[1], 0);
TextDrawSetOutline(statsclick[1], 0);
TextDrawFont(statsclick[1], 4);
TextDrawSetSelectable(statsclick[1], true);
statsclick[2] = TextDrawCreate(77.278182, 301.583435, "LD_SPAC:white");
TextDrawLetterSize(statsclick[2], 0.000000, 0.000000);
TextDrawTextSize(statsclick[2], 69.341140, 22.750000);
TextDrawAlignment(statsclick[2], 1);
TextDrawColor(statsclick[2], 909523455);
TextDrawSetShadow(statsclick[2], 0);
TextDrawSetOutline(statsclick[2], 0);
TextDrawFont(statsclick[2], 4);
TextDrawSetSelectable(statsclick[2], true);
statsclick[3] = TextDrawCreate(76.872619, 324.750061, "LD_SPAC:white");
TextDrawLetterSize(statsclick[3], 0.000000, 0.000000);
TextDrawTextSize(statsclick[3], 69.341140, 22.750000);
TextDrawAlignment(statsclick[3], 1);
TextDrawColor(statsclick[3], 909523455);
TextDrawSetShadow(statsclick[3], 0);
TextDrawSetOutline(statsclick[3], 0);
TextDrawFont(statsclick[3], 4);
TextDrawSetSelectable(statsclick[3], true);
statsclick[4] = TextDrawCreate(101.326477, 284.333343, "Stats");
TextDrawLetterSize(statsclick[4], 0.208241, 1.220834);
TextDrawAlignment(statsclick[4], 1);
TextDrawColor(statsclick[4], 16777215);
TextDrawSetShadow(statsclick[4], 0);
TextDrawSetOutline(statsclick[4], 1);
TextDrawBackgroundColor(statsclick[4], 255);
TextDrawFont(statsclick[4], 1);
TextDrawSetProportional(statsclick[4], 1);
statsclick[5] = TextDrawCreate(101.857955, 307.500091, "IWep");
TextDrawLetterSize(statsclick[5], 0.208241, 1.220834);
TextDrawAlignment(statsclick[5], 1);
TextDrawColor(statsclick[5], 16777215);
TextDrawSetShadow(statsclick[5], 0);
TextDrawSetOutline(statsclick[5], 1);
TextDrawBackgroundColor(statsclick[5], 255);
TextDrawFont(statsclick[5], 1);
TextDrawSetProportional(statsclick[5], 1);
statsclick[6] = TextDrawCreate(100.983871, 330.666717, "GetIP");
TextDrawLetterSize(statsclick[6], 0.208241, 1.220834);
TextDrawAlignment(statsclick[6], 1);
TextDrawColor(statsclick[6], 16777215);
TextDrawSetShadow(statsclick[6], 0);
TextDrawSetOutline(statsclick[6], 1);
TextDrawBackgroundColor(statsclick[6], 255);
TextDrawFont(statsclick[6], 1);
TextDrawSetProportional(statsclick[6], 1);
//=======================================================================BAN
banclick[0] = TextDrawCreate(150.115676, 254.500030, "usebox");
TextDrawLetterSize(banclick[0], 0.000000, 7.751495);
TextDrawTextSize(banclick[0], 73.431922, 0.000000);
TextDrawAlignment(banclick[0], 1);
TextDrawColor(banclick[0], 0);
TextDrawUseBox(banclick[0], true);
TextDrawBoxColor(banclick[0], -2139062017);
TextDrawSetShadow(banclick[0], 0);
TextDrawSetOutline(banclick[0], 0);
TextDrawFont(banclick[0], 0);
banclick[1] = TextDrawCreate(77.215225, 254.500137, "LD_SPAC:white");
TextDrawLetterSize(banclick[1], 0.000000, 0.000000);
TextDrawTextSize(banclick[1], 69.341140, 22.750000);
TextDrawAlignment(banclick[1], 1);
TextDrawColor(banclick[1], 909523455);
TextDrawSetShadow(banclick[1], 0);
TextDrawSetOutline(banclick[1], 0);
TextDrawFont(banclick[1], 4);
TextDrawSetSelectable(banclick[1], true);
banclick[2] = TextDrawCreate(77.278182, 278.250091, "LD_SPAC:white");
TextDrawLetterSize(banclick[2], 0.000000, 0.000000);
TextDrawTextSize(banclick[2], 69.341140, 22.750000);
TextDrawAlignment(banclick[2], 1);
TextDrawColor(banclick[2], 909523455);
TextDrawSetShadow(banclick[2], 0);
TextDrawSetOutline(banclick[2], 0);
TextDrawFont(banclick[2], 4);
TextDrawSetSelectable(banclick[2], true);
banclick[3] = TextDrawCreate(76.872619, 301.416778, "LD_SPAC:white");
TextDrawLetterSize(banclick[3], 0.000000, 0.000000);
TextDrawTextSize(banclick[3], 69.341140, 22.750000);
TextDrawAlignment(banclick[3], 1);
TextDrawColor(banclick[3], 909523455);
TextDrawSetShadow(banclick[3], 0);
TextDrawSetOutline(banclick[3], 0);
TextDrawFont(banclick[3], 4);
TextDrawSetSelectable(banclick[3], true);
banclick[4] = TextDrawCreate(105.074645, 260.416687, "Ban");
TextDrawLetterSize(banclick[4], 0.208241, 1.220834);
TextDrawAlignment(banclick[4], 1);
TextDrawColor(banclick[4], 16777215);
TextDrawSetShadow(banclick[4], 0);
TextDrawSetOutline(banclick[4], 1);
TextDrawBackgroundColor(banclick[4], 255);
TextDrawFont(banclick[4], 1);
TextDrawSetProportional(banclick[4], 1);
banclick[5] = TextDrawCreate(102.326477, 283.583435, "SBan");
TextDrawLetterSize(banclick[5], 0.208241, 1.220834);
TextDrawAlignment(banclick[5], 1);
TextDrawColor(banclick[5], 16777215);
TextDrawSetShadow(banclick[5], 0);
TextDrawSetOutline(banclick[5], 1);
TextDrawBackgroundColor(banclick[5], 255);
TextDrawFont(banclick[5], 1);
TextDrawSetProportional(banclick[5], 1);
banclick[6] = TextDrawCreate(103.074661, 306.833282, "IBan");
TextDrawLetterSize(banclick[6], 0.208241, 1.220834);
TextDrawAlignment(banclick[6], 1);
TextDrawColor(banclick[6], 16777215);
TextDrawSetShadow(banclick[6], 0);
TextDrawSetOutline(banclick[6], 1);
TextDrawBackgroundColor(banclick[6], 255);
TextDrawFont(banclick[6], 1);
TextDrawSetProportional(banclick[6], 1);
//======================================================================KICK
kickclick[0] = TextDrawCreate(150.052719, 207.999984, "usebox");
TextDrawLetterSize(kickclick[0], 0.000000, 5.127777);
TextDrawTextSize(kickclick[0], 73.431922, 0.000000);
TextDrawAlignment(kickclick[0], 1);
TextDrawColor(kickclick[0], 0);
TextDrawUseBox(kickclick[0], true);
TextDrawBoxColor(kickclick[0], -2139062017);
TextDrawSetShadow(kickclick[0], 0);
TextDrawSetOutline(kickclick[0], 0);
TextDrawFont(kickclick[0], 0);
kickclick[1] = TextDrawCreate(77.089309, 208.166671, "LD_SPAC:white");
TextDrawLetterSize(kickclick[1], 0.000000, 0.000000);
TextDrawTextSize(kickclick[1], 69.341140, 22.750000);
TextDrawAlignment(kickclick[1], 1);
TextDrawColor(kickclick[1], 909523455);
TextDrawSetShadow(kickclick[1], 0);
TextDrawSetOutline(kickclick[1], 0);
TextDrawFont(kickclick[1], 4);
TextDrawSetSelectable(kickclick[1], true);
kickclick[2] = TextDrawCreate(77.152267, 231.333404, "LD_SPAC:white");
TextDrawLetterSize(kickclick[2], 0.000000, 0.000000);
TextDrawTextSize(kickclick[2], 69.341140, 22.750000);
TextDrawAlignment(kickclick[2], 1);
TextDrawColor(kickclick[2], 909523455);
TextDrawSetShadow(kickclick[2], 0);
TextDrawSetOutline(kickclick[2], 0);
TextDrawFont(kickclick[2], 4);
TextDrawSetSelectable(kickclick[2], true);
kickclick[3] = TextDrawCreate(103.606124, 213.333312, "Kick");
TextDrawLetterSize(kickclick[3], 0.208241, 1.220834);
TextDrawAlignment(kickclick[3], 1);
TextDrawColor(kickclick[3], 16777215);
TextDrawSetShadow(kickclick[3], 0);
TextDrawSetOutline(kickclick[3], 1);
TextDrawBackgroundColor(kickclick[3], 255);
TextDrawFont(kickclick[3], 1);
TextDrawSetProportional(kickclick[3], 1);
kickclick[4] = TextDrawCreate(101.794998, 236.500000, "SKick");
TextDrawLetterSize(kickclick[4], 0.208241, 1.220834);
TextDrawAlignment(kickclick[4], 1);
TextDrawColor(kickclick[4], 16777215);
TextDrawSetShadow(kickclick[4], 0);
TextDrawSetOutline(kickclick[4], 1);
TextDrawBackgroundColor(kickclick[4], 255);
TextDrawFont(kickclick[4], 1);
TextDrawSetProportional(kickclick[4], 1);
//======================================================================DROP
dropclick[0] = TextDrawCreate(150.052719, 184.666702, "usebox");
TextDrawLetterSize(dropclick[0], 0.000000, 12.905220);
TextDrawTextSize(dropclick[0], 73.431922, 0.000000);
TextDrawAlignment(dropclick[0], 1);
TextDrawColor(dropclick[0], 0);
TextDrawUseBox(dropclick[0], true);
TextDrawBoxColor(dropclick[0], -2139062017);
TextDrawSetShadow(dropclick[0], 0);
TextDrawSetOutline(dropclick[0], 0);
TextDrawFont(dropclick[0], 0);
TextDrawSetSelectable(dropclick[0], true);
dropclick[1] = TextDrawCreate(77.089309, 184.833404, "LD_SPAC:white");
TextDrawLetterSize(dropclick[1], 0.000000, 0.000000);
TextDrawTextSize(dropclick[1], 69.341140, 22.750000);
TextDrawAlignment(dropclick[1], 1);
TextDrawColor(dropclick[1], 909523455);
TextDrawSetShadow(dropclick[1], 0);
TextDrawSetOutline(dropclick[1], 0);
TextDrawFont(dropclick[1], 4);
TextDrawSetSelectable(dropclick[1], true);
dropclick[2] = TextDrawCreate(77.152267, 208.000091, "LD_SPAC:white");
TextDrawLetterSize(dropclick[2], 0.000000, 0.000000);
TextDrawTextSize(dropclick[2], 69.341140, 22.750000);
TextDrawAlignment(dropclick[2], 1);
TextDrawColor(dropclick[2], 909523455);
TextDrawSetShadow(dropclick[2], 0);
TextDrawSetOutline(dropclick[2], 0);
TextDrawFont(dropclick[2], 4);
TextDrawSetSelectable(dropclick[2], true);
dropclick[3] = TextDrawCreate(77.215225, 231.166732, "LD_SPAC:white");
TextDrawLetterSize(dropclick[3], 0.000000, 0.000000);
TextDrawTextSize(dropclick[3], 69.341140, 22.750000);
TextDrawAlignment(dropclick[3], 1);
TextDrawColor(dropclick[3], 909523455);
TextDrawSetShadow(dropclick[3], 0);
TextDrawSetOutline(dropclick[3], 0);
TextDrawFont(dropclick[3], 4);
TextDrawSetSelectable(dropclick[3], true);
dropclick[4] = TextDrawCreate(77.278182, 254.916778, "LD_SPAC:white");
TextDrawLetterSize(dropclick[4], 0.000000, 0.000000);
TextDrawTextSize(dropclick[4], 69.341140, 22.750000);
TextDrawAlignment(dropclick[4], 1);
TextDrawColor(dropclick[4], 909523455);
TextDrawSetShadow(dropclick[4], 0);
TextDrawSetOutline(dropclick[4], 0);
TextDrawFont(dropclick[4], 4);
TextDrawSetSelectable(dropclick[4], true);
dropclick[5] = TextDrawCreate(76.872619, 278.083435, "LD_SPAC:white");
TextDrawLetterSize(dropclick[5], 0.000000, 0.000000);
TextDrawTextSize(dropclick[5], 69.341140, 22.750000);
TextDrawAlignment(dropclick[5], 1);
TextDrawColor(dropclick[5], 909523455);
TextDrawSetShadow(dropclick[5], 0);
TextDrawSetOutline(dropclick[5], 0);
TextDrawFont(dropclick[5], 4);
TextDrawSetSelectable(dropclick[5], true);
dropclick[6] = TextDrawCreate(99.858047, 192.916809, "Mute");
TextDrawLetterSize(dropclick[6], 0.274771, 0.806662);
TextDrawAlignment(dropclick[6], 1);
TextDrawColor(dropclick[6], 16777215);
TextDrawSetShadow(dropclick[6], 0);
TextDrawSetOutline(dropclick[6], 1);
TextDrawBackgroundColor(dropclick[6], 255);
TextDrawFont(dropclick[6], 1);
TextDrawSetProportional(dropclick[6], 1);
dropclick[7] = TextDrawCreate(101.326553, 216.083450, "Slap");
TextDrawLetterSize(dropclick[7], 0.274771, 0.806662);
TextDrawAlignment(dropclick[7], 1);
TextDrawColor(dropclick[7], 16777215);
TextDrawSetShadow(dropclick[7], 0);
TextDrawSetOutline(dropclick[7], 1);
TextDrawBackgroundColor(dropclick[7], 255);
TextDrawFont(dropclick[7], 1);
TextDrawSetProportional(dropclick[7], 1);
dropclick[8] = TextDrawCreate(97.641342, 239.833480, "Prison");
TextDrawLetterSize(dropclick[8], 0.274771, 0.806662);
TextDrawAlignment(dropclick[8], 1);
TextDrawColor(dropclick[8], 16777215);
TextDrawSetShadow(dropclick[8], 0);
TextDrawSetOutline(dropclick[8], 1);
TextDrawBackgroundColor(dropclick[8], 255);
TextDrawFont(dropclick[8], 1);
TextDrawSetProportional(dropclick[8], 1);
dropclick[9] = TextDrawCreate(95.830215, 261.833404, "Freeze");
TextDrawLetterSize(dropclick[9], 0.274771, 0.806662);
TextDrawAlignment(dropclick[9], 1);
TextDrawColor(dropclick[9], 16777215);
TextDrawSetShadow(dropclick[9], 0);
TextDrawSetOutline(dropclick[9], 1);
TextDrawBackgroundColor(dropclick[9], 255);
TextDrawFont(dropclick[9], 1);
TextDrawSetProportional(dropclick[9], 1);
dropclick[10] = TextDrawCreate(89.333877, 286.166809, "UnFreeze");
TextDrawLetterSize(dropclick[10], 0.274771, 0.806662);
TextDrawAlignment(dropclick[10], 1);
TextDrawColor(dropclick[10], 16777215);
TextDrawSetShadow(dropclick[10], 0);
TextDrawSetOutline(dropclick[10], 1);
TextDrawBackgroundColor(dropclick[10], 255);
TextDrawFont(dropclick[10], 1);
TextDrawSetProportional(dropclick[10], 1);
//========================================================================GM
gmclick[0] = TextDrawCreate(150.052719, 161.333358, "usebox");
TextDrawLetterSize(gmclick[0], 0.000000, 5.127777);
TextDrawTextSize(gmclick[0], 73.431922, 0.000000);
TextDrawAlignment(gmclick[0], 1);
TextDrawColor(gmclick[0], 0);
TextDrawUseBox(gmclick[0], true);
TextDrawBoxColor(gmclick[0], -2139062017);
TextDrawSetShadow(gmclick[0], 0);
TextDrawSetOutline(gmclick[0], 0);
TextDrawFont(gmclick[0], 0);
gmclick[1] = TextDrawCreate(77.089309, 161.500106, "LD_SPAC:white");
TextDrawLetterSize(gmclick[1], 0.000000, 0.000000);
TextDrawTextSize(gmclick[1], 69.341140, 22.750000);
TextDrawAlignment(gmclick[1], 1);
TextDrawColor(gmclick[1], 909523455);
TextDrawSetShadow(gmclick[1], 0);
TextDrawSetOutline(gmclick[1], 0);
TextDrawFont(gmclick[1], 4);
TextDrawSetSelectable(gmclick[1], true);
gmclick[2] = TextDrawCreate(77.152267, 184.666748, "LD_SPAC:white");
TextDrawLetterSize(gmclick[2], 0.000000, 0.000000);
TextDrawTextSize(gmclick[2], 69.341140, 22.750000);
TextDrawAlignment(gmclick[2], 1);
TextDrawColor(gmclick[2], 909523455);
TextDrawSetShadow(gmclick[2], 0);
TextDrawSetOutline(gmclick[2], 0);
TextDrawFont(gmclick[2], 4);
TextDrawSetSelectable(gmclick[2], true);
gmclick[3] = TextDrawCreate(93.767181, 167.249969, "Check GM");
TextDrawLetterSize(gmclick[3], 0.208241, 1.220834);
TextDrawAlignment(gmclick[3], 1);
TextDrawColor(gmclick[3], 16777215);
TextDrawSetShadow(gmclick[3], 0);
TextDrawSetOutline(gmclick[3], 1);
TextDrawBackgroundColor(gmclick[3], 255);
TextDrawFont(gmclick[3], 1);
TextDrawSetProportional(gmclick[3], 1);
gmclick[4] = TextDrawCreate(87.739364, 190.416671, "Check GMCAR");
TextDrawLetterSize(gmclick[4], 0.208241, 1.220834);
TextDrawAlignment(gmclick[4], 1);
TextDrawColor(gmclick[4], 16777215);
TextDrawSetShadow(gmclick[4], 0);
TextDrawSetOutline(gmclick[4], 1);
TextDrawBackgroundColor(gmclick[4], 255);
TextDrawFont(gmclick[4], 1);
TextDrawSetProportional(gmclick[4], 1);
//=============================================================ГЛАНАЯ ПАНЕЛЬ
Click[9] = TextDrawCreate(74.620788, 138.000000, "usebox");
TextDrawLetterSize(Click[9], 0.000000, 23.249439);
TextDrawTextSize(Click[9], -2.000000, 0.000000);
TextDrawAlignment(Click[9], 1);
TextDrawColor(Click[9], 0);
TextDrawUseBox(Click[9], true);
TextDrawBoxColor(Click[9], -2139062017);
TextDrawSetShadow(Click[9], 0);
TextDrawSetOutline(Click[9], 0);
TextDrawFont(Click[9], 0);
Click[0] = TextDrawCreate(1.874084, 138.250000, "LD_SPAC:white");//Change
TextDrawLetterSize(Click[0], 0.000000, 0.000000);
TextDrawTextSize(Click[0], 69.341140, 22.750000);
TextDrawAlignment(Click[0], 1);
TextDrawColor(Click[0], 909523455);
TextDrawSetShadow(Click[0], 0);
TextDrawSetOutline(Click[0], 0);
TextDrawFont(Click[0], 4);
TextDrawSetSelectable(Click[0], true);
Click[1] = TextDrawCreate(1.468521, 161.416687, "LD_SPAC:white");//Check
TextDrawLetterSize(Click[1], 0.000000, 0.000000);
TextDrawTextSize(Click[1], 69.341140, 22.750000);
TextDrawAlignment(Click[1], 1);
TextDrawColor(Click[1], 909523455);
TextDrawSetShadow(Click[1], 0);
TextDrawSetOutline(Click[1], 0);
TextDrawFont(Click[1], 4);
TextDrawSetSelectable(Click[1], true);
Click[2] = TextDrawCreate(1.531478, 184.583374, "LD_SPAC:white");//Drop
TextDrawLetterSize(Click[2], 0.000000, 0.000000);
TextDrawTextSize(Click[2], 69.341140, 22.750000);
TextDrawAlignment(Click[2], 1);
TextDrawColor(Click[2], 909523455);
TextDrawSetShadow(Click[2], 0);
TextDrawSetOutline(Click[2], 0);
TextDrawFont(Click[2], 4);
TextDrawSetSelectable(Click[2], true);
Click[3] = TextDrawCreate(1.594436, 207.750061, "LD_SPAC:white");//Kick
TextDrawLetterSize(Click[3], 0.000000, 0.000000);
TextDrawTextSize(Click[3], 69.341140, 22.750000);
TextDrawAlignment(Click[3], 1);
TextDrawColor(Click[3], 909523455);
TextDrawSetShadow(Click[3], 0);
TextDrawSetOutline(Click[3], 0);
TextDrawFont(Click[3], 4);
TextDrawSetSelectable(Click[3], true);
Click[4] = TextDrawCreate(1.657393, 231.500106, "LD_SPAC:white");//Warn
TextDrawLetterSize(Click[4], 0.000000, 0.000000);
TextDrawTextSize(Click[4], 69.341140, 22.750000);
TextDrawAlignment(Click[4], 1);
TextDrawColor(Click[4], 909523455);
TextDrawSetShadow(Click[4], 0);
TextDrawSetOutline(Click[4], 0);
TextDrawFont(Click[4], 4);
TextDrawSetSelectable(Click[4], true);
Click[5] = TextDrawCreate(1.720351, 254.666809, "LD_SPAC:white");//Ban
TextDrawLetterSize(Click[5], 0.000000, 0.000000);
TextDrawTextSize(Click[5], 69.341140, 22.750000);
TextDrawAlignment(Click[5], 1);
TextDrawColor(Click[5], 909523455);
TextDrawSetShadow(Click[5], 0);
TextDrawSetOutline(Click[5], 0);
TextDrawFont(Click[5], 4);
TextDrawSetSelectable(Click[5], true);
Click[6] = TextDrawCreate(1.783309, 277.833465, "LD_SPAC:white");//Stats
TextDrawLetterSize(Click[6], 0.000000, 0.000000);
TextDrawTextSize(Click[6], 69.341140, 22.750000);
TextDrawAlignment(Click[6], 1);
TextDrawColor(Click[6], 909523455);
TextDrawSetShadow(Click[6], 0);
TextDrawSetOutline(Click[6], 0);
TextDrawFont(Click[6], 4);
TextDrawSetSelectable(Click[6], true);
Click[7] = TextDrawCreate(1.846267, 301.583435, "LD_SPAC:white");//Refresh
TextDrawLetterSize(Click[7], 0.000000, 0.000000);
TextDrawTextSize(Click[7], 69.341140, 22.750000);
TextDrawAlignment(Click[7], 1);
TextDrawColor(Click[7], 909523455);
TextDrawSetShadow(Click[7], 0);
TextDrawSetOutline(Click[7], 0);
TextDrawFont(Click[7], 4);
TextDrawSetSelectable(Click[7], true);
Click[8] = TextDrawCreate(1.440703, 324.750061, "LD_SPAC:white");//Exit
TextDrawLetterSize(Click[8], 0.000000, 0.000000);
TextDrawTextSize(Click[8], 69.341140, 22.750000);
TextDrawAlignment(Click[8], 1);
TextDrawColor(Click[8], 909523455);
TextDrawSetShadow(Click[8], 0);
TextDrawSetOutline(Click[8], 0);
TextDrawFont(Click[8], 4);
TextDrawSetSelectable(Click[8], true);
//=====================================================================PANEL
Click[10] = TextDrawCreate(19.677909, 168.583358, "Check >>");
TextDrawLetterSize(Click[10], 0.215268, 0.952498);
TextDrawAlignment(Click[10], 1);
TextDrawColor(Click[10], 16777215);
TextDrawSetShadow(Click[10], 0);
TextDrawSetOutline(Click[10], 1);
TextDrawBackgroundColor(Click[10], 255);
TextDrawFont(Click[10], 1);
TextDrawSetProportional(Click[10], 1);
Click[11] = TextDrawCreate(22.020437, 191.333389, "Drop >>");
TextDrawLetterSize(Click[11], 0.208709, 1.010830);
TextDrawAlignment(Click[11], 1);
TextDrawColor(Click[11], 16777215);
TextDrawSetShadow(Click[11], 0);
TextDrawSetOutline(Click[11], 1);
TextDrawBackgroundColor(Click[11], 255);
TextDrawFont(Click[11], 1);
TextDrawSetProportional(Click[11], 1);
Click[12] = TextDrawCreate(21.552005, 214.666671, "Kick >>");
TextDrawLetterSize(Click[12], 0.227448, 1.080832);
TextDrawAlignment(Click[12], 1);
TextDrawColor(Click[12], 16777215);
TextDrawSetShadow(Click[12], 0);
TextDrawSetOutline(Click[12], 1);
TextDrawBackgroundColor(Click[12], 255);
TextDrawFont(Click[12], 1);
TextDrawSetProportional(Click[12], 1);
Click[13] = TextDrawCreate(24.831626, 238.583404, "Warn");
TextDrawLetterSize(Click[13], 0.233539, 1.039999);
TextDrawAlignment(Click[13], 1);
TextDrawColor(Click[13], 16777215);
TextDrawSetShadow(Click[13], 0);
TextDrawSetOutline(Click[13], 1);
TextDrawBackgroundColor(Click[13], 255);
TextDrawFont(Click[13], 1);
TextDrawSetProportional(Click[13], 1);
Click[14] = TextDrawCreate(23.426073, 261.333312, "Ban >>");
TextDrawLetterSize(Click[14], 0.226511, 1.016666);
TextDrawAlignment(Click[14], 1);
TextDrawColor(Click[14], 16777215);
TextDrawSetShadow(Click[14], 0);
TextDrawSetOutline(Click[14], 1);
TextDrawBackgroundColor(Click[14], 255);
TextDrawFont(Click[14], 1);
TextDrawSetProportional(Click[14], 1);
Click[15] = TextDrawCreate(18.272361, 284.666595, "Stats >>");
TextDrawLetterSize(Click[15], 0.236349, 1.086665);
TextDrawAlignment(Click[15], 1);
TextDrawColor(Click[15], 16777215);
TextDrawSetShadow(Click[15], 0);
TextDrawSetOutline(Click[15], 1);
TextDrawBackgroundColor(Click[15], 255);
TextDrawFont(Click[15], 1);
TextDrawSetProportional(Click[15], 1);
Click[16] = TextDrawCreate(22.489006, 306.250000, "Refresh");
TextDrawLetterSize(Click[16], 0.208241, 1.220834);
TextDrawAlignment(Click[16], 1);
TextDrawColor(Click[16], 16777215);
TextDrawSetShadow(Click[16], 0);
TextDrawSetOutline(Click[16], 1);
TextDrawBackgroundColor(Click[16], 255);
TextDrawFont(Click[16], 1);
TextDrawSetProportional(Click[16], 1);
Click[17] = TextDrawCreate(18.740905, 145.250106, "Change");
TextDrawLetterSize(Click[17], 0.274771, 0.806662);
TextDrawAlignment(Click[17], 1);
TextDrawColor(Click[17], 16777215);
TextDrawSetShadow(Click[17], 0);
TextDrawSetOutline(Click[17], 1);
TextDrawBackgroundColor(Click[17], 255);
TextDrawFont(Click[17], 1);
TextDrawSetProportional(Click[17], 1);
Click[18] = TextDrawCreate(26.705764, 332.500000, "Exit");
TextDrawLetterSize(Click[18], 0.263996, 0.917500);
TextDrawAlignment(Click[18], 1);
TextDrawColor(Click[18], 16777215);
TextDrawSetShadow(Click[18], 0);
TextDrawSetOutline(Click[18], 1);
TextDrawBackgroundColor(Click[18], 255);
TextDrawFont(Click[18], 1);
TextDrawSetProportional(Click[18], 1);
SetTimer("StartStats",1000, 1);
//=====================================================================RECON
Куда нибудь в конец мода
PHP:
stock StopRecon(playerid)
{
for(new i = 0; i < 19; i++) TextDrawHideForPlayer(playerid,Click[i]);
for(new p = 0; p < 15; p++) TextDrawHideForPlayer(playerid,recon[p]);
for(new w = 0; w < 5; w++) TextDrawHideForPlayer(playerid,gmclick[w]);
for(new e = 0; e < 5; e++) TextDrawHideForPlayer(playerid,kickclick[e]);
for(new r = 0; r < 7; r++) TextDrawHideForPlayer(playerid,statsclick[r]);
for(new u = 0; u < 7; u++) TextDrawHideForPlayer(playerid,banclick[u]);
for(new y = 0; y < 11; y++) TextDrawHideForPlayer(playerid,dropclick[y]);
return true;
}
stock StartRecon(playerid)
{
for(new i = 0; i < 19; i++) TextDrawShowForPlayer(playerid,Click[i]);
for(new p = 0; p < 15; p++) TextDrawShowForPlayer(playerid,recon[p]);
SelectTextDraw(playerid, 0xeded26FF);
return true;
}
publics: StartStats(playerid)
{
new id = Spectate[playerid];
new Float:vehhel, vehh[20];
new stats0[32],stats1[32],stats2[32],stats3[32],stats4[32],stats5[32],stats6[32],stats7[32],stats11[32];
new Level = PlayerInfo[id][pLevel];
new Warns = PlayerInfo[id][pWarns];
new Float:aermor;
format(stats0, sizeof(stats0), "%d", Level);
format(stats1, sizeof(stats1), "%d", Warns);
format(stats2, sizeof(stats2), "%d", GetPlayerArmour((id),aermor));
format(stats3, sizeof(stats3), "%d", PlayerInfo[id][pHealth]);
if(vehhel <= 300) format(stats4, sizeof(stats4),"%s30",vehh); else format(stats4, sizeof(stats4),"%s%.0f",vehh,vehhel / 10);
if(vehhel <= 500) vehh = "";
else vehh = "";
format(stats5, sizeof(stats5), "%d", SpeedVehicle(playerid) / 2);
format(stats6, sizeof(stats6), "%d", GetPlayerPing(id));
format(stats7, sizeof(stats7), "%d", GetPlayerAmmo(id));
//format(stats8, sizeof(stats8), "%d / %d : %d", Shot(id));//SHOT
//format(stats9, sizeof(stats9), "%d / %d : %d", Shottime(id));//SHOTTIME
format(stringer, sizeof(stringer), "%s", PlayerInfo[id][pNames]);
format(stats11, sizeof(stats11), "%d", Spectate[playerid]);
TextDrawSetString(stats[0][playerid],stats0);//LEVEL
TextDrawSetString(stats[1][playerid],stats1);//WARN
TextDrawSetString(stats[2][playerid],stats2);//ARMOUT
TextDrawSetString(stats[3][playerid],stats3);//HEALTH
TextDrawSetString(stats[4][playerid],stats4);//CARHP
TextDrawSetString(stats[5][playerid],stats5);//SPEEDCAR
TextDrawSetString(stats[6][playerid],stats6);//PING
TextDrawSetString(stats[7][playerid],stats7);//AMMO
//TextDrawSetString(stats[8][playerid],stats8);//SHOT
//TextDrawSetString(stats[9][playerid],stats9);//SHOTTIME
TextDrawSetString(stats[10][playerid],stringer);//NICKNAMEN
TextDrawSetString(stats[11][playerid],stats11);//ID
}
stock StopSpectate(playerid)
{
SetTimerEx("SpectOff",100,false,"i",playerid);
TogglePlayerSpectating(playerid, false);
for(new f = 0; f < 12; f++) TextDrawHideForPlayer(playerid, stats[f][playerid]);
StopRecon(playerid);
gSpectateID[playerid] = INVALID_PLAYER_ID;
gSpectateType[playerid] = ADMIN_SPEC_TYPE_NONE;
return true;
}
publics: SpectOff(playerid)
{
SetPPos(playerid,SpectPosFloat[playerid][0],SpectPosFloat[playerid][1],SpectPosFloat[playerid][2]);
SetPlayerFacingAngle(playerid, SpectPosFloat[playerid][3]);
SetPlayerInterior(playerid,SpectPos[playerid][0]);
SetPlayerVirtualWorld(playerid,SpectPos[playerid][1]);
return true;
}
К командам
PHP:
if (strcmp(cmd, "/re", true) == 0)
{
if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, COLOR_WHITE, YouCanNot);
tmp = strcharsplit(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_WHITE, "Используйте: /re [id]");
giveplayerid = ReturnUser(tmp);
if(!IsPlayerConnected(giveplayerid) || gPlayerLogged[giveplayerid] == 0) return SendClientMessage(playerid, COLOR_GREY,"Игрок не авторизирован / зарегистрирован");
GetPlayerPos(playerid, SpectPosFloat[playerid][0], SpectPosFloat[playerid][1], SpectPosFloat[playerid][2]);
GetPlayerFacingAngle(playerid, SpectPosFloat[playerid][3]);
SpectPos[playerid][0] = GetPlayerInterior(playerid);
SpectPos[playerid][1] = GetPlayerVirtualWorld(playerid);
Spectate[playerid] = giveplayerid;
TogglePlayerSpectating(playerid, 1);
if(IsPlayerInAnyVehicle(Spectate[playerid]))
{
SetPlayerInterior(playerid,GetPlayerInterior(Spectate[playerid]));
SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(Spectate[playerid]));
PlayerSpectateVehicle(playerid, GetPlayerVehicleID(Spectate[playerid]), 1);
}
else
{
SetPlayerInterior(playerid,GetPlayerInterior(Spectate[playerid]));
SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(Spectate[playerid]));
PlayerSpectatePlayer(playerid, Spectate[playerid], 1);
}
for(new f = 0; f < 12; f++) TextDrawShowForPlayer(playerid,stats[f][playerid]);
StartRecon(playerid);
return true;
}
else if(strcmp(cmd, "/reoff", true) == 0)
{
if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, COLOR_WHITE, YouCanNot);
TogglePlayerSpectating(playerid, 0);
SetCameraBehindPlayer(playerid);
StopSpectate(playerid);
PlayerSpec[PlayerSpectateID[playerid]] = INVALID_PLAYER_ID;
PlayerSpectateID[playerid] = INVALID_PLAYER_ID;
GameTextForPlayer(playerid, "~W~RECON ~R~OFF", 5000, 4);
return true;
}
Ко всем case
PHP:
case 13996:
{
if(PlayerInfo[playerid][pAdmin] >= 1)
{
format(stringer, sizeof(stringer), "/mute %d %s",Spectate[playerid],inputtext);
OnPlayerCommandText(playerid,stringer);
}
}
case 13997:
{
if(PlayerInfo[playerid][pAdmin] >= 2)
{
format(stringer, sizeof(stringer), "/kick %d %s",Spectate[playerid],inputtext);
OnPlayerCommandText(playerid,stringer);
}
}
case 13998:
{
if(PlayerInfo[playerid][pAdmin] >= 4)
{
format(stringer, sizeof(stringer), "/warn %d %s",Spectate[playerid],inputtext);
OnPlayerCommandText(playerid,stringer);
}
}
case 13999:
{
if(PlayerInfo[playerid][pAdmin] >= 6)
{
format(stringer, sizeof(stringer), "/ban %d %s",Spectate[playerid],inputtext);
OnPlayerCommandText(playerid,stringer);
}
}
P.S Совсем забыл панель инфы игрока
В public OnPlayerConnect
PHP:
stats[10][playerid] = TextDrawCreate(555.351684, 151.083358, "_");
TextDrawLetterSize(stats[10][playerid], 0.180131, 1.938331);
TextDrawAlignment(stats[10][playerid], 1);
TextDrawColor(stats[10][playerid], -1);
TextDrawSetShadow(stats[10][playerid], 0);
TextDrawSetOutline(stats[10][playerid], 1);
TextDrawBackgroundColor(stats[10][playerid], 255);
TextDrawFont(stats[10][playerid], 1);
TextDrawSetProportional(stats[10][playerid], 1);
stats[11][playerid] = TextDrawCreate(595.958862, 172.083328, "_");//ID
TextDrawLetterSize(stats[11][playerid], 0.397056, 1.343332);
TextDrawAlignment(stats[11][playerid], 1);
TextDrawColor(stats[11][playerid], -1);
TextDrawSetShadow(stats[11][playerid], 0);
TextDrawSetOutline(stats[11][playerid], 1);
TextDrawBackgroundColor(stats[11][playerid], 255);
TextDrawFont(stats[11][playerid], 1);
TextDrawSetProportional(stats[11][playerid], 1);
stats[0][playerid] = TextDrawCreate(581.966430, 190.166702, "_");//LEVEL
TextDrawLetterSize(stats[0][playerid], 0.397994, 0.829999);
TextDrawAlignment(stats[0][playerid], 1);
TextDrawColor(stats[0][playerid], -1);
TextDrawSetShadow(stats[0][playerid], 0);
TextDrawSetOutline(stats[0][playerid], 1);
TextDrawBackgroundColor(stats[0][playerid], 255);
TextDrawFont(stats[0][playerid], 2);
TextDrawSetProportional(stats[0][playerid], 1);
stats[1][playerid] = TextDrawCreate(580.966430, 198.333343, "_");//WARNS
TextDrawLetterSize(stats[1][playerid], 0.220890, 0.964164);
TextDrawAlignment(stats[1][playerid], 1);
TextDrawColor(stats[1][playerid], -1);
TextDrawSetShadow(stats[1][playerid], 0);
TextDrawSetOutline(stats[1][playerid], 1);
TextDrawBackgroundColor(stats[1][playerid], 255);
TextDrawFont(stats[1][playerid], 2);
TextDrawSetProportional(stats[1][playerid], 1);
stats[2][playerid] = TextDrawCreate(580.966430, 214.666641, "_");//ARMOUR
TextDrawLetterSize(stats[2][playerid], 0.252750, 0.911665);
TextDrawAlignment(stats[2][playerid], 1);
TextDrawColor(stats[2][playerid], -1);
TextDrawSetShadow(stats[2][playerid], 0);
TextDrawSetOutline(stats[2][playerid], 1);
TextDrawBackgroundColor(stats[2][playerid], 255);
TextDrawFont(stats[2][playerid], 1);
TextDrawSetProportional(stats[2][playerid], 1);
stats[3][playerid] = TextDrawCreate(581.966430, 225.166717, "_");//HEALTH
TextDrawLetterSize(stats[3][playerid], 0.227917, 0.882498);
TextDrawAlignment(stats[3][playerid], 1);
TextDrawColor(stats[3][playerid], -1);
TextDrawSetShadow(stats[3][playerid], 0);
TextDrawSetOutline(stats[3][playerid], 1);
TextDrawBackgroundColor(stats[3][playerid], 255);
TextDrawFont(stats[3][playerid], 1);
TextDrawSetProportional(stats[3][playerid], 1);
stats[4][playerid] = TextDrawCreate(580.966430, 239.166656, "_");//CARHP
TextDrawLetterSize(stats[4][playerid], 0.222764, 1.034165);
TextDrawAlignment(stats[4][playerid], 1);
TextDrawColor(stats[4][playerid], -1);
TextDrawSetShadow(stats[4][playerid], 0);
TextDrawSetOutline(stats[4][playerid], 1);
TextDrawBackgroundColor(stats[4][playerid], 255);
TextDrawFont(stats[4][playerid], 1);
TextDrawSetProportional(stats[4][playerid], 1);
stats[5][playerid] = TextDrawCreate(580.966430, 250.249969, "_");//SPEED
TextDrawLetterSize(stats[5][playerid], 0.221827, 0.946666);
TextDrawAlignment(stats[5][playerid], 1);
TextDrawColor(stats[5][playerid], -1);
TextDrawSetShadow(stats[5][playerid], 0);
TextDrawSetOutline(stats[5][playerid], 1);
TextDrawBackgroundColor(stats[5][playerid], 255);
TextDrawFont(stats[5][playerid], 1);
TextDrawSetProportional(stats[5][playerid], 1);
stats[6][playerid] = TextDrawCreate(580.966430, 267.166687, "_");//PING
TextDrawLetterSize(stats[6][playerid], 0.221358, 1.010830);
TextDrawAlignment(stats[6][playerid], 1);
TextDrawColor(stats[6][playerid], -1);
TextDrawSetShadow(stats[6][playerid], 0);
TextDrawSetOutline(stats[6][playerid], 1);
TextDrawBackgroundColor(stats[6][playerid], 255);
TextDrawFont(stats[6][playerid], 1);
TextDrawSetProportional(stats[6][playerid], 1);
stats[7][playerid] = TextDrawCreate(580.966430, 277.083221, "_");//AMMO
TextDrawLetterSize(stats[7][playerid], 0.242445, 1.034165);
TextDrawAlignment(stats[7][playerid], 1);
TextDrawColor(stats[7][playerid], -1);
TextDrawSetShadow(stats[7][playerid], 0);
TextDrawSetOutline(stats[7][playerid], 1);
TextDrawBackgroundColor(stats[7][playerid], 255);
TextDrawFont(stats[7][playerid], 1);
TextDrawSetProportional(stats[7][playerid], 1);
stats[8][playerid] = TextDrawCreate(580.966430, 292.250061, "0 /0 : 0");//SHOT
TextDrawLetterSize(stats[8][playerid], 0.231196, 1.034165);
TextDrawAlignment(stats[8][playerid], 1);
TextDrawColor(stats[8][playerid], -1);
TextDrawSetShadow(stats[8][playerid], 0);
TextDrawSetOutline(stats[8][playerid], 1);
TextDrawBackgroundColor(stats[8][playerid], 255);
TextDrawFont(stats[8][playerid], 1);
TextDrawSetProportional(stats[8][playerid], 1);
stats[9][playerid] = TextDrawCreate(580.966430, 304.333221, "0 /0 : 0");//SHOTTIME
TextDrawLetterSize(stats[9][playerid], 0.242445, 1.034165);
TextDrawAlignment(stats[9][playerid], 1);
TextDrawColor(stats[9][playerid], -1);
TextDrawSetShadow(stats[9][playerid], 0);
TextDrawSetOutline(stats[9][playerid], 1);
TextDrawBackgroundColor(stats[9][playerid], 255);
TextDrawFont(stats[9][playerid], 1);
TextDrawSetProportional(stats[9][playerid], 1);
Если что то забыл или будут ошибки пишите в тему.
Инфо игрока настраивайте для своего мода сами...
Если посчитаете нужным или вам понравиться работа что бы вы знали,от СПАСИБО не откажусь
АВТОР ДАННОЙ РАБОТЫ Я
Размещение на других порталах,без указания/разрешения автора ЗАПРЕЩЕНО
Инфо игрока настраивайте для своего мода сами...
Если посчитаете нужным или вам понравиться работа что бы вы знали,от СПАСИБО не откажусь
АВТОР ДАННОЙ РАБОТЫ Я
Размещение на других порталах,без указания/разрешения автора ЗАПРЕЩЕНО
Последнее редактирование:
