SA-MP Forums Archive
need some help with textdraws - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: need some help with textdraws (/showthread.php?tid=336128)



need some help with textdraws - Xtreme Brotherz - 21.04.2012

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!!!


Re: need some help with textdraws - Rudy_ - 21.04.2012

coded please?


Re: need some help with textdraws - Face9000 - 21.04.2012

How we can help you if you don't shot the code?


Re: need some help with textdraws - Xtreme Brotherz - 21.04.2012

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;
}



Re: need some help with textdraws - [MG]Dimi - 21.04.2012

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



Re: need some help with textdraws - Xtreme Brotherz - 21.04.2012

not working again the same


Re: need some help with textdraws - Xtreme Brotherz - 22.04.2012

pls help all the text draws are not appearing pls