30.11.2009, 12:15
you have to make a textdraw for each player
example:
hope this helps
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;
}