need some help with textdraws
#4

pawn Код:
//forwards and new
new Text:Announcements;
forward RandomMessage();
new RandomMessages[][] =
{
    "Suspect of ~r~Cheaters? ~w~Use ~y~/report [id] [Reason]",
    "Respect ~b~all server ~y~Rules!",
    "Buy a ~g~VIP ~w~Account ~b~Today! For access lot of new ~y~features!",
    "You not visited our ~g~site?~w~ Visit now: ~p~www.nbtdm.tk",
    "This Gamemode Is Made By The ~r~[NB]~g~Special ~b~Script ~p~Team~w~!",
    "Haven't ~r~Registered ~w~yet to the ~b~Site~w~ :O?Join Us Today ~p~www.~r~nbtdm~g~.tk",
    "The [NB]Community Welcome You At ~g~[NBTDM]~W~And ~b~Stunts~w~[BETA] ~r~Server~w~!",
    "Want to join ~p~[NB]~r~No ~g~Balance ~b~Clan?Register at ~p~wWw.~r~nobalance.~g~tk~b~!"
};
//under gamemodeinit
    Announcements = TextDrawCreate(7.000000, 432.000000, " ");
    TextDrawAlignment(Announcements,0);
    TextDrawBackgroundColor(Announcements, 255);
    TextDrawFont(Announcements, 1);
    TextDrawLetterSize(Announcements, 0.280000, 0.899999);
    TextDrawColor(Announcements, -1);
    TextDrawSetOutline(Announcements, 1);
//underonplayerspawn
    RandomMessage();
        TextDrawShowforPlayer(playerid, Announcements)
//public function

public RandomMessage()
{
    if(ServerInfo[Announce] == 1)
    TextDrawSetString(Announcements, RandomMessages[random(sizeof(RandomMessages))]);
    return 1;
}
Reply


Messages In This Thread
need some help with textdraws - by Xtreme Brotherz - 21.04.2012, 10:10
Re: need some help with textdraws - by Rudy_ - 21.04.2012, 10:12
Re: need some help with textdraws - by Face9000 - 21.04.2012, 10:13
Re: need some help with textdraws - by Xtreme Brotherz - 21.04.2012, 10:22
Re: need some help with textdraws - by [MG]Dimi - 21.04.2012, 10:23
Re: need some help with textdraws - by Xtreme Brotherz - 21.04.2012, 10:28
Re: need some help with textdraws - by Xtreme Brotherz - 22.04.2012, 03:16

Forum Jump:


Users browsing this thread: 1 Guest(s)