new Text:Textdraw1; Textdraw1 = TextDrawCreate(488, 120, "just a text here"); TextDrawFont(Textdraw1 , 1); TextDrawLetterSize(Textdraw1 , 1, 7); TextDrawColor(Textdraw1 , 0xFFFFFFFF); TextDrawSetOutline(Textdraw1 , 1); TextDrawSetProportional(Textdraw1 , 1); TextDrawSetShadow(Textdraw1 , 1);
Hey im trying to fix a textdraw into the game, but it wont work.
Код:
new Text:Textdraw1; Textdraw1 = TextDrawCreate(488, 120, "just a text here"); TextDrawFont(Textdraw1 , 1); TextDrawLetterSize(Textdraw1 , 1, 7); TextDrawColor(Textdraw1 , 0xFFFFFFFF); TextDrawSetOutline(Textdraw1 , 1); TextDrawSetProportional(Textdraw1 , 1); TextDrawSetShadow(Textdraw1 , 1); im trying to get it under the moneybar or above the clock. Please help! |
TextDrawShowForPlayer(playerid, Textdraw1);
public OnPlayerSpawn(playerid) { if (IsPlayerNPC(playerid)) return 1; if (APlayerData[playerid][LoggedIn] == false) { SendClientMessage(playerid, 0xFFFFFFFF, TXT_FailedLoginProperly); Kick(playerid); } new missiontext[200]; SetPlayerVirtualWorld(playerid, 0); SetPlayerInterior(playerid, 0); APlayerData[playerid][CurrentHouse] = 0; TogglePlayerClock(playerid, 0); ResetPlayerWeapons(playerid); switch (APlayerData[playerid][PlayerClass]) { case ClassTruckDriver: { format(missiontext, sizeof(missiontext), Trucker_NoJobText); SetPlayerColor(playerid, ColorClassTruckDriver); } case ClassBusDriver: { format(missiontext, sizeof(missiontext), BusDriver_NoJobText); SetPlayerColor(playerid, ColorClassBusDriver); } case ClassPilot: { format(missiontext, sizeof(missiontext), Pilot_NoJobText); SetPlayerColor(playerid, ColorClassPilot); } case ClassPolice: { format(missiontext, sizeof(missiontext), Police_NoJobText); SetPlayerColor(playerid, ColorClassPolice); KillTimer(APlayerData[playerid][PlayerCheckTimer]); APlayerData[playerid][PlayerCheckTimer] = SetTimerEx("Police_CheckWantedPlayers", 1000, true, "i", playerid); if (PoliceGetsWeapons == true) { for (new i; i < 12; i++) GivePlayerWeapon(playerid, APoliceWeapons[i], PoliceWeaponsAmmo); } } case ClassMafia: { format(missiontext, sizeof(missiontext), Mafia_NoJobText); SetPlayerColor(playerid, ColorClassMafia); KillTimer(APlayerData[playerid][PlayerCheckTimer]); APlayerData[playerid][PlayerCheckTimer] = SetTimerEx("Mafia_CheckMafiaLoads", 1000, true, "i", playerid); } case ClassCourier: { format(missiontext, sizeof(missiontext), Courier_NoJobText); SetPlayerColor(playerid, ColorClassCourier); } case ClassAssistance: { format(missiontext, sizeof(missiontext), Assistance_NoJobText); SetPlayerColor(playerid, ColorClassAssistance); KillTimer(APlayerData[playerid][PlayerCheckTimer]); APlayerData[playerid][PlayerCheckTimer] = SetTimerEx("Assistance_CheckPlayers", 1000, true, "i", playerid); } case ClassRoadWorker: { format(missiontext, sizeof(missiontext), RoadWorker_NoJobText); SetPlayerColor(playerid, ColorClassRoadWorker); } } TextDrawSetString(APlayerData[playerid][MissionText], missiontext); TextDrawShowForPlayer(playerid, APlayerData[playerid][MissionText]); if (APlayerData[playerid][PlayerJailed] != 0) Police_JailPlayer(playerid, APlayerData[playerid][PlayerJailed]); return 1; }
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
APlayerData[playerid][CurrentHouse] = 0;
TextDrawShowForPlayer(playerid, Textdraw1);
public OnGameModeInit()
{
new Text:Textdraw1;
Textdraw1 = TextDrawCreate(488, 120, "just a text here");
TextDrawFont(Textdraw1 , 1);
TextDrawLetterSize(Textdraw1 , 1, 7);
TextDrawColor(Textdraw1 , 0xFFFFFFFF);
TextDrawSetOutline(Textdraw1 , 1);
TextDrawSetProportional(Textdraw1 , 1);
TextDrawSetShadow(Textdraw1 , 1);
}
new Text:Textdraw1;
public OnGameModeInit()
{
Textdraw1 = TextDrawCreate(488, 120, "just a text here");
TextDrawFont(Textdraw1 , 1);
TextDrawLetterSize(Textdraw1 , 1, 7);
TextDrawColor(Textdraw1 , 0xFFFFFFFF);
TextDrawSetOutline(Textdraw1 , 1);
TextDrawSetProportional(Textdraw1 , 1);
TextDrawSetShadow(Textdraw1 , 1);
}