need some help with textdraws
#1

i came across a problem in which i have four textdraw at OnPlayerSpawn and they are only under tht, ... but only two textdraws appears and other two appears when we get inside a car or a vehicel


pls help me to fix this!!!
Reply
#2

coded please?
Reply
#3

How we can help you if you don't shot the code?
Reply
#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
#5

pawn Код:
public RandomMessage()
{
    if(ServerInfo[Announce] == 1)
    {
        TextDrawHideForAll(Announcements);
        TextDrawSetString(Announcements, RandomMessages[random(sizeof(RandomMessages))]);
        TextDrawShowForAll(Announcements);
    }
    return 1;
}
Reply
#6

not working again the same
Reply
#7

pls help all the text draws are not appearing pls
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)