- Скрины
Ко всем forward:
Code: Select all
forward ChangeWebsite();
forward ChangeTextWebsite(text[]);
Ко всем #define:
Code: Select all
#define websitecount 27
#define ms 1200
Ко всем new:
Code: Select all
new Text:Textdraw0;
new TextWebsiteCount = 0;
В public OnPlayerDisconnect:
Code: Select all
TextDrawHideForPlayer(playerid, Textdraw0);
В public OnGameModeExit:
Code: Select all
TextDrawDestroy(Textdraw0);
В public OnGameModeInit:
Code: Select all
Textdraw0 = TextDrawCreate(485.000000,4.000000,"SVL HOPM SERVER");
TextDrawAlignment(Textdraw0,0);
TextDrawBackgroundColor(Textdraw0,0x000000ff);
TextDrawFont(Textdraw0,1);
TextDrawLetterSize(Textdraw0,0.399999,1.300000);
TextDrawColor(Textdraw0,0x000000ff);
TextDrawSetOutline(Textdraw0,1);
TextDrawSetProportional(Textdraw0,1);
TextDrawSetShadow(Textdraw0,1);
В public OnPlayerConnect:
Code: Select all
SetTimer("ChangeWebsite",ms,1);
И в конец мода:
Code: Select all
public ChangeTextWebsite(text[])
{
TextDrawHideForAll(Textdraw0);
TextDrawSetString(Textdraw0,text);
TextDrawShowForAll(Textdraw0);
return 1;
}
public ChangeWebsite()
{
if(TextWebsiteCount > websitecount) TextWebsiteCount = 0;
switch(TextWebsiteCount)
{
case 0:
{
ChangeTextWebsite("~r~S~w~VL HOPM SERVER");
}
case 1:
{
ChangeTextWebsite("~w~S~r~V~w~L HOPM SERVER");
}
case 2:
{
ChangeTextWebsite("~w~SV~r~L ~w~HOPM SERVER");
}
case 3:
{
ChangeTextWebsite("~w~SVL ~r~H~w~OPM SERVER");
}
case 4:
{
ChangeTextWebsite("~w~SVL H~r~O~w~PM SERVER");
}
case 5:
{
ChangeTextWebsite("~w~SVL HO~r~P~w~M SERVER");
}
case 6:
{
ChangeTextWebsite("~w~SVL HOP~r~M~w~ SERVER");
}
case 7:
{
ChangeTextWebsite("~w~SVL HOPM ~r~S~w~ERVER");
}
case 8:
{
ChangeTextWebsite("~w~SVL HOPM S~r~E~w~RVER");
}
case 9:
{
ChangeTextWebsite("~w~SVL HOPM SE~r~R~w~VER");
}
case 10:
{
ChangeTextWebsite("~w~SVL HOPM SER~r~V~w~ER");
}
case 11:
{
ChangeTextWebsite("~w~SVL HOPM SERV~r~E~w~R");
}
case 12:
{
ChangeTextWebsite("~w~SVL HOPM SERVE~r~R~w~");
}
case 13:
{
ChangeTextWebsite("~w~SVL HOPM SERVER ~r~");
}
case 14:
{
ChangeTextWebsite("~b~S~w~VL HOPM SERVER");
}
case 15:
{
ChangeTextWebsite("~w~S~b~V~w~L HOPM SERVER");
}
case 16:
{
ChangeTextWebsite("~w~SV~b~L~w~ HOPM SERVER");
}
case 17:
{
ChangeTextWebsite("~w~SVL ~b~H~w~OPM SERVER");
}
case 18:
{
ChangeTextWebsite("~w~SVL H~b~O~w~PM SERVER");
}
case 19:
{
ChangeTextWebsite("~w~SVL HO~b~P~w~M SERVER");
}
case 20:
{
ChangeTextWebsite("~w~SVL HOP~b~M~w~ SERVER");
}
case 21:
{
ChangeTextWebsite("~w~SVL HOPM ~b~S~w~ERVER");
}
case 22:
{
ChangeTextWebsite("~w~SVL HOPM S~b~E~w~RVER");
}
case 23:
{
ChangeTextWebsite("~w~SVL HOPM SE~b~R~w~VER");
}
case 24:
{
ChangeTextWebsite("~w~SVL HOPM SER~b~V~w~ER");
}
case 25:
{
ChangeTextWebsite("~w~SVL HOPM SERV~b~E~w~R");
}
case 26:
{
ChangeTextWebsite("~w~SVL HOPM SERVE~b~R~w~");
}
case 27:
{
ChangeTextWebsite("~w~SVL HOPM SERVER ~b~");
}
}
TextWebsiteCount++;
}