12.06.2013, 13:17
Quote:
You can actually remove this. Player TD's are destroy automatically on disconnect.
pawn Code:
|
pawn Code:
public OnPlayerConnect(playerid)
{
pTextdraw[playerid] = CreatePlayerTextDraw(playerid, x, y, "...");
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
PlayerTextDrawDestroy(playerid, pTextdraw[playerid]);
return 1;
}
Another myth that I heard is.. we don't have to use array for Player Textdraw, and it's actually works for me without array, so why there's an example with array and destroying in disconnect? Can someone explain it then?