Multiple Game Texts
#1

How Can i add multiple gametexts i know u won't get what i mean so i will explain more when there is an GameText been shown and while its still there an other game text appears the last text goes up and the current one comes in that place but the old one hides after the time is over of showing it crazybobs cops and robbers have this feature
Example GameTextForPlayer(player, "Alarm Activated", 5000, 3); and while the time off this GameText is not over and an other GameTextForPlayer(player,"Vehicle Unlocked",5000,3); so the Alarm Activated text will hide but i want to make it like
Alarm Activated
Vehicle Unlocked
as the timer of the first game text ends because it was show before it should be
Vehicle Unlocked

alarm activated is hidden now
Reply
#2

Use different styles.
https://sampwiki.blast.hk/wiki/GameTextStyle
Reply
#3

Try using different styles as Threshold said.

E.G:

pawn Код:
GameTextForPlayer(playerid,"Alarm Activated",3000,5);
GameTextForPlayer(playerid,"Vehicle Unlocked",3000,1); // Change this (1) to the style you want.
Or try using '\n' not sure if that will work though.
Reply
#4

But wait i will show some pics when i get those for example
Reply
#5

can i do something like that with textdraws ??
Reply
#6

Hmmmm i am thinking using this
pawn Код:
stock GameTextShowForPlayer(playerid, const text[])
{
    new string[500];
    if(textshowing[playerid] == true)
    {
        format(string,sizeof(string),"%s~N~%s",oldtext[playerid],text)
        GameTextForPlayer(playerid,string,5000,3);
        Timer[playerid] = 5000;
    }
    else
    {
        GameTextForPlayer(playerid,text,5000,3);
        Timer[playerid] = 5000;
        format(oldtext,sizeof(oldtext),"%s",text);
    }
}
will it work i just made it as an example ??
Reply
#7

so i think i can't do it :/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)