TextDraw
#2

you have to make a textdraw for each player

example:

pawn Код:
new Text:Location[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{
    Location[playerid] = TextDrawCreate(86.000000,431.000000,"San Andreas");
    TextDrawAlignment(Location[playerid],2);
    TextDrawBackgroundColor(Location[playerid],0x000000ff);
    TextDrawFont(Location[playerid],2);
    TextDrawLetterSize(Location[playerid],0.199999,0.899999);
    TextDrawColor(Location[playerid],0xffffffff);
    TextDrawSetOutline(Location[playerid],1);
    TextDrawSetProportional(Location[playerid],1);
    TextDrawSetShadow(Location[playerid],1);
    return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
    TextDrawDestroy(Location[playerid]);
    return 1;
}

public OnPlayerSpawn(playerid)
{
    new string[256];
    format(string, sizeof(string), "Location: %s", GetPlayerLocation(playerid));
    TextDrawSetString(Text:Location[playerid],string);
    TextDrawShowForPlayer(playerid, Text:Location[playerid]);
    return 1;
}
hope this helps
Reply


Messages In This Thread
TextDraw - by lakierka - 30.11.2009, 11:40
Re: TextDraw - by mascii - 30.11.2009, 12:15
Re: TextDraw - by lakierka - 30.11.2009, 13:37
Re: TextDraw - by mascii - 01.12.2009, 00:12

Forum Jump:


Users browsing this thread: 1 Guest(s)