23.12.2011, 18:07
pawn Код:
#include <a_samp>
new Text:MyTD;
new Text:MyRD;
new Text:Welcome;
new Text:text1;
new Text:text2;
new Text:text3;
main()
{
print("\n----------------------------------");
print(" Blank Gamemode by your name here");
print("----------------------------------\n");
}
#endif
public OnGameModeInit()
{
//Welcome TextDraws
MyTD = TextDrawCreate(1.000, 1.00,"~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~");
TextDrawUseBox(MyTD , 1);
TextDrawFont(MyTD , 1);
TextDrawLetterSize(MyTD ,0.3,1);
TextDrawSetShadow(MyTD ,1);
TextDrawSetOutline(MyTD ,1);
TextDrawBackgroundColor(MyTD ,0x000000FF);
TextDrawBoxColor(MyTD ,0x000000cc);
TextDrawColor(MyTD ,0x000000FF);
TextDrawTextSize(MyTD , 720.0, 200.0);
TextDrawSetProportional(MyTD, 1);
TextDrawAlignment(MyTD, 0);
//Other Text Draw
MyRD = TextDrawCreate(1.000, 300.00,"~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~");
TextDrawUseBox(MyRD , 1);
TextDrawFont(MyRD , 1);
TextDrawLetterSize(MyRD ,0.3,1);
TextDrawSetShadow(MyRD ,1);
TextDrawSetOutline(MyRD ,1);
TextDrawBackgroundColor(MyRD ,0x000000FF);
TextDrawBoxColor(MyRD ,0x000000cc);
TextDrawColor(MyRD ,0x000000FF);
TextDrawTextSize(MyRD , 720.0, 200.0);
TextDrawSetProportional(MyRD, 1);
TextDrawAlignment(MyRD, 0);
//Text Draw for Ad.
Welcome = TextDrawCreate(277.000000, 305.000000, "Welcome");
text1 = TextDrawCreate(300.000000, 320.000000, "to");
text2 = TextDrawCreate(240.000000, 335.000000, "Life For Speed V1.3");
TextDrawAlignment(Welcome, 0);
TextDrawAlignment(text1, 0);
TextDrawAlignment(text2, 0);
TextDrawBackgroundColor(Welcome, 0x00ff0066);
TextDrawBackgroundColor(text1, 0xF6F600AA);
TextDrawBackgroundColor(text2, 0xF6F600AA);
TextDrawFont(Welcome, 0);
TextDrawLetterSize(Welcome, 0.599999, 1.600000);
TextDrawFont(text1, 0);
TextDrawLetterSize(text1, 0.599999, 1.600000);
TextDrawFont(text2, 0);
TextDrawLetterSize(text2, 0.599999, 1.600000);
TextDrawColor(Welcome, 0xff0000ff);
TextDrawColor(text1, 0x0000AFAA);
TextDrawColor(text2, 0xF67F00AA);
TextDrawSetOutline(Welcome, 1);
TextDrawSetOutline(text1, 1);
TextDrawSetOutline(text2, 1);
TextDrawSetProportional(Welcome, 1);
TextDrawSetProportional(text1, 1);
TextDrawSetProportional(text2, 1);
TextDrawSetShadow(Welcome, 1);
TextDrawSetShadow(text1, 1);
TextDrawSetShadow(text2, 1);
//
text3 = TextDrawCreate(90.000000, 50.000000, " L F S");
TextDrawAlignment(text3, 0);
TextDrawBackgroundColor(text3, 0x33CCFFAA);
TextDrawLetterSize(text3, 2.599999, 1.800000);
TextDrawFont(text3, 0);
TextDrawColor(text3, 0x00ff0066);
TextDrawSetOutline(text3, 1);
TextDrawSetProportional(text3, 1);
TextDrawSetShadow(text3, 1);
return 1;
}
public OnPlayerConnect(playerid)
{
SetTimer("settime",1000,true);
//
TextDrawShowForPlayer(playerid,MyTD);
TextDrawShowForPlayer(playerid,MyRD);
TextDrawShowForPlayer(playerid, Welcome);
TextDrawShowForPlayer(playerid, text1);
TextDrawShowForPlayer(playerid, text2);
TextDrawShowForPlayer(playerid, text3);
return 1;
}
public OnPlayerSpawn(playerid)
{
new rand = random( 5 );
SetPlayerInterior(playerid,0);
TogglePlayerClock(playerid,1);
TextDrawHideForPlayer(playerid, MyTD);
TextDrawHideForPlayer(playerid, MyRD);
TextDrawHideForPlayer(playerid, Welcome);
TextDrawHideForPlayer(playerid, text1);
TextDrawHideForPlayer(playerid, text2);
TextDrawHideForPlayer(playerid, text3);
return 1;
}
return 1;
}