How can I put random messages into Textdraw that changes?
#1

Hey there,
I have my random messages as Client Messages (current).
I want to put them all in Textdraw, letters in bottom of the screen.
Well, I haven't got any experience with textdraw, so can anyone help me?
Btw, how can I create textdraw, I mean, I know how I can create Textdraw, but I want it in the corner for example, how can I know that?
But just help me with the random messages in textdraw (it will change every 1 minute).
Thanks,
Andy.

pawn Код:
public Information()
{
    switch(InfoMessage)
    {
      case 0:
      {
          SendClientMessageToAll(COLOR_LIGHTYELLOW, "If you spot a rulebreaker, please use /report to report them.");
            InfoMessage = 1;
        }
        case 1:
        {
          SendClientMessageToAll(COLOR_LIGHTYELLOW, "Type /commands to view the available commands.");
            InfoMessage = 2;
        }
        case 2:
        {
          SendClientMessageToAll(COLOR_LIGHTYELLOW, "Type /telerace for a list of Race Teleports.");
            InfoMessage = 3;
        }
        case 3:
        {
          SendClientMessageToAll(COLOR_LIGHTYELLOW, "Visit our website at http://www.urbanfighterstdm.com[url=http://] and register an account.");
            InfoMessage = 0;
        }
        case 4:
        {
            SendClientMessageToAll(COLOR_LIGHTYELLOW, "Please make sure you know the /rules before doing anything!");
            InfoMessage = 4;
        }
        case 5:
        {
            SendClientMessageToAll(COLOR_LIGHTYELLOW, "We don't allow cheats here, it will get you banned!");
            InfoMessage = 5;
        }
        case 6:
        {
            SendClientMessageToAll(COLOR_LIGHTYELLOW, "Can't speak English? That's fine, we allow all languages to play.");
            InfoMessage = 6;
        }
        case 7:
        {
            SendClientMessageToAll(COLOR_LIGHTYELLOW, "Type /teledm for a list of Deathmatch Teleports.");
            InfoMessage = 7;
        }
        case 8:
        {
          SendClientMessageToAll(COLOR_LIGHTYELLOW, "Try to be polite, we don't want violence.");
          InfoMessage = 8;
        }
        case 9:
        {
          SendClientMessageToAll(COLOR_LIGHTYELLOW, "Use the command /t for teamchat.");
            InfoMessage = 9;
        }
        case 10:
        {
          SendClientMessageToAll(COLOR_LIGHTYELLOW, "Need help? Type /admins to see a list of online Administrators, we're here to help.");
          InfoMessage = 10;
        }
    }
    return 1;
}
Reply
#2

Use a Textdraw creator then use https://sampwiki.blast.hk/wiki/TextDrawSetString
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)