TextdrawSetSelectable problem!
#1

First, watch this video
[ame]http://www.youtube.com/watch?v=JFNiooUUvlI[/ame]

Problems:
1)


2) I can't spawn after I clicked the textdraw.

pawn Код:
//ongamemodeinit
    Textdraw0 = TextDrawCreate(156.000000, 134.000000, "1 TERRORIST FORCES");
    TextDrawBackgroundColor(Textdraw0, 255);
    TextDrawFont(Textdraw0, 1);
    TextDrawLetterSize(Textdraw0, 0.429998, 1.399999);
    TextDrawColor(Textdraw0, -3461377);
    TextDrawSetOutline(Textdraw0, 0);
    TextDrawSetProportional(Textdraw0, 1);
    TextDrawSetShadow(Textdraw0, 1);
    TextDrawUseBox(Textdraw0, 1);
    TextDrawBoxColor(Textdraw0, 85);
    TextDrawTextSize(Textdraw0, 301.000000, 2.000000);
    TextDrawSetSelectable(Textdraw0,1);

//onplayerconnect
    TogglePlayerSpectating(playerid,1);
    SelectTextDraw(playerid,0xFFCB2E44);
    TextDrawShowForPlayer(playerid,Textdraw0);

public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
    if(clickedid == Textdraw0)
    {
        TogglePlayerSpectating(playerid,0);
        SpawnPlayer(playerid);
        SetPlayerPos(playerid,0,0,3);
        SendClientMessage(playerid,-1,"terror");
        CancelSelectTextDraw(playerid);
        TextDrawHideForPlayer(playerid,Textdraw0);
        return 1;
    }
    return 1;
}
Reply
#2

Increase its TextDrawTextSize on the Y axis.
You have 2.000000, try with 8.0 or 9.0. Try many times till you get it.
Reply
#3

Thanks, first problem fixed! What about the second one? I can't spawn!
Reply
#4

Before TogglePlayerSpectating, use SetSpawnInfo, remove SpawnPlayer because TogglePlayerSpectating does that.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)