Derpie doesn't understand Clickable Textdraws, frustrating!
#8

Код:
    Timerdraw[0] = CreatePlayerTextDraw(playerid, 55.666656, 91.099945, "box");
    PlayerTextDrawLetterSize(playerid, Timerdraw[0], 0.000000, 2.433331);
    PlayerTextDrawTextSize(playerid, Timerdraw[0], 17.666648, 24.888879);
    PlayerTextDrawAlignment(playerid, Timerdraw[0], 1);
    PlayerTextDrawColor(playerid, Timerdraw[0], 0);
    PlayerTextDrawUseBox(playerid, Timerdraw[0], true);
    PlayerTextDrawBoxColor(playerid, Timerdraw[0], 102);
    PlayerTextDrawSetShadow(playerid, Timerdraw[0], 0);
    PlayerTextDrawSetOutline(playerid, Timerdraw[0], 0);
    PlayerTextDrawFont(playerid, Timerdraw[0], 0);
    PlayerTextDrawSetSelectable(playerid, Timerdraw[0], true);
    SelectTextDraw(playerid, 0xA3B4C5FF); // Allow to player to select textdraws.
PHP код:
public OnPlayerClickPlayerTextDraw(playeridPlayerText:playertextid)
{
    if(
playertextid == Timerdraw[0])
    {
        
SendClientMessageToAll(0xFFFFFFAA"Hai");
    }
    return 
1;

Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)