Textdrawclick help?
#1

Nothing happends when i click on the textdraw mabye u can help me?


PHP код:
if(clickedid == teleportLS// If the player clicked on the teleportLS textdraw, teleport him there!
    
{
        
SetPlayerPos(playerid1736.4478,-1789.5996,13.4922);
        
SetPlayerFacingAngle(playerid0.9392);
    }
    else if(
clickedid == teleportSF// Same as above, but for SF
    
{
        
SetPlayerPos(playerid, -1424.6083, -290.962214.1484);
        
SetPlayerFacingAngle(playerid134.9570);
    }
    else if(
clickedid == teleportLV// Same, but for LV
    
{
        
SetPlayerPos(playerid1688.79901447.775310.7675);
        
SetPlayerFacingAngle(playerid267.3902);
    }
                     
// Hide the textdraws after the player has teleport himself.
    
TextDrawHideForPlayer(playeridteleportBox);
    
TextDrawHideForPlayer(playeridteleportLS);
    
TextDrawHideForPlayer(playeridteleportSF);
    
TextDrawHideForPlayer(playeridteleportLV);
    
CancelSelectTextDraw(playerid); // Everything worked out perfectly, now stop the player to be able to select shizzle. 
PHP код:
teleportLS TextDrawCreate(320.000000180.000000"Seven ~n~24");
    
TextDrawAlignment(teleportLS2);
    
TextDrawBackgroundColor(teleportLS255);
    
TextDrawFont(teleportLS2);
    
TextDrawLetterSize(teleportLS0.2600000.799999);
    
TextDrawColor(teleportLS, -1);
    
TextDrawSetOutline(teleportLS0);
    
TextDrawSetProportional(teleportLS1);
    
TextDrawSetShadow(teleportLS1);
    
teleportSF TextDrawCreate(320.000000205.000000"San Fierro~n~Airport");
    
TextDrawAlignment(teleportSF2);
    
TextDrawBackgroundColor(teleportSF255);
    
TextDrawFont(teleportSF2);
    
TextDrawLetterSize(teleportSF0.2600000.799999);
    
TextDrawColor(teleportSF, -1);
    
TextDrawSetOutline(teleportSF0);
    
TextDrawSetProportional(teleportSF1);
    
TextDrawSetShadow(teleportSF1);
    
teleportLV TextDrawCreate(320.000000230.000000"Las Venturas~n~Airport");
    
TextDrawAlignment(teleportLV2);
    
TextDrawBackgroundColor(teleportLV255);
    
TextDrawFont(teleportLV2);
    
TextDrawLetterSize(teleportLV0.2600000.799999);
    
TextDrawColor(teleportLV, -1);
    
TextDrawSetOutline(teleportLV0);
    
TextDrawSetProportional(teleportLV1);
    
TextDrawSetShadow(teleportLV1); 
Reply


Messages In This Thread
Textdrawclick help? - by N0FeaR - 14.12.2015, 17:26
Re: Textdrawclick help? - by Untonyst - 14.12.2015, 17:48
Re: Textdrawclick help? - by jlalt - 14.12.2015, 17:53
Re: Textdrawclick help? - by N0FeaR - 14.12.2015, 17:58

Forum Jump:


Users browsing this thread: 1 Guest(s)