Text draw problem
#1

I put this code but not working on game i don't see if i login with my old account or new account

help?

Код:
//Top of your script
new Text:Welcome0;
new Text:Welcome1;
new Text:Welcome2;
new Text:Welcome3;
new bool:WelcomeText[MAX_PLAYERS];

//OnGameModeInit
  Welcome0 = TextDrawCreate(318.000000,137.000000,"~g~Territory Wars ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ");
  Welcome1 = TextDrawCreate(201.000000,165.000000,"~b~Las Venturas");
  Welcome2 = TextDrawCreate(211.000000,188.000000,"~y~ /cmds  /help");
  Welcome3 = TextDrawCreate(122.000000,219.000000,"~r~ | No Teamkilling~n~ | No Cheating / Hacking~n~ | Respect Others~n~ | No Spawnkilling~n~ | Have Fun");
  TextDrawUseBox(Welcome0,1);
  TextDrawBoxColor(Welcome0,0x00000066);
  TextDrawTextSize(Welcome0,0.000000,420.000000);
  TextDrawAlignment(Welcome0,2);
  TextDrawAlignment(Welcome1,0);
  TextDrawAlignment(Welcome2,0);
  TextDrawAlignment(Welcome3,1);
  TextDrawBackgroundColor(Welcome0,0x000000ff);
  TextDrawBackgroundColor(Welcome1,0x000000ff);
  TextDrawBackgroundColor(Welcome2,0x000000ff);
  TextDrawBackgroundColor(Welcome3,0x000000ff);
  TextDrawFont(Welcome0,3);
  TextDrawLetterSize(Welcome0,1.000000,2.000000);
  TextDrawFont(Welcome1,2);
  TextDrawLetterSize(Welcome1,0.699999,1.500000);
  TextDrawFont(Welcome2,1);
  TextDrawLetterSize(Welcome2,0.699999,1.600000);
  TextDrawFont(Welcome3,1);
  TextDrawLetterSize(Welcome3,0.399999,1.300000);
  TextDrawSetOutline(Welcome0,1);
  TextDrawSetOutline(Welcome1,1);
  TextDrawSetOutline(Welcome2,1);
  TextDrawSetOutline(Welcome3,1);
  TextDrawSetProportional(Welcome0,1);
  TextDrawSetProportional(Welcome1,1);
  TextDrawSetProportional(Welcome2,1);
  TextDrawSetProportional(Welcome3,1);
  TextDrawSetShadow(Welcome0,1);
  TextDrawSetShadow(Welcome1,1);
  TextDrawSetShadow(Welcome2,1);
  TextDrawSetShadow(Welcome3,1);

//OnPlayerConnect
  TextDrawShowForPlayer(playerid,Welcome0);
  TextDrawShowForPlayer(playerid,Welcome1);
  TextDrawShowForPlayer(playerid,Welcome2);
  TextDrawShowForPlayer(playerid,Welcome3);
  WelcomeText[playerid] = true;

//OnPlayerSpawn & OnPlayerDisconnect
  if(WelcomeText[playerid] == true)
  {
    TextDrawHideForPlayer(playerid,Welcome0);
    TextDrawHideForPlayer(playerid,Welcome1);
    TextDrawHideForPlayer(playerid,Welcome2);
    TextDrawHideForPlayer(playerid,Welcome3);
    WelcomeText[playerid] = false;  
  }
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)