Checkpoint/pickup for Textdraw change
#3

Here

Код:
// On top:

new Text:Pill;

// In OnPlayerSpawn or OnPlayerConnect:

TextDrawShowForAll(Pill);

// In OnGameModeInit

    {
		Pill = TextDrawCreate(430.000000,426.000000,"Pill: Not found");
		TextDrawUseBox(Pill,1);
		TextDrawBoxColor(Pill,0x000000ff);
		TextDrawTextSize(Pill,630.000000,-63.000000);
		TextDrawAlignment(Pill,0);
		TextDrawBackgroundColor(Pill,0x000000ff);
		TextDrawFont(Pill,3);
		TextDrawLetterSize(Pill,0.499999,1.600000);
		TextDrawColor(Pill,0xffffffff);
		TextDrawSetOutline(Pill,1);
		TextDrawSetProportional(Pill,1);
		TextDrawSetShadow(Pill,1);
		}

    return 1;
}


public OnPlayerEnterCheckpoint(playerid)
{
	new playername[MAX_PLAYER_NAME];
	new string[256];
	GetPlayerName(playerid, playername, sizeof(playername));
	format(string, sizeof(string), "Pill: %s", playername);
	TextDrawSetString(Pill, string);
	TextDrawShowForAll(Pill);

	}
  return 1;
}
Untested though.
Reply


Messages In This Thread
Checkpoint/pickup for Textdraw change - by morris91 - 06.04.2009, 13:49
Re: Checkpoint/pickup for Textdraw change - by Rks25 - 06.04.2009, 13:58
Re: Checkpoint/pickup for Textdraw change - by GTA_Rules - 06.04.2009, 15:12
Re: Checkpoint/pickup for Textdraw change - by morris91 - 14.04.2009, 10:15

Forum Jump:


Users browsing this thread: 1 Guest(s)