Adding Textdraw on checkpoints
#4

pawn Код:
// Textdraws
new TD_BankMenu;

// Checkpoints
new CP_BankMenu;

public OnGameModeInit()
{
    // Create textdraws
    TD_BankMenu = TextDrawCreate(...);

    // Create checkpoints
    CP_BankMenu = CreateDynamicCP(2316.2144, -8.2332, 26.7422, 1.0, -1, -1, -1, 100.0);
    return 1;
}

public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
    if(checkpointid == cpbankmenu)
    {
        TextDrawShowForPlayer(playerid, TD_BankMenu);
    }
    return 1;
}

public OnPlayerLeaveDynamicCP(playerid, checkpointid)
{
    if(checkpointid == cpbankmenu)
    {
        TextDrawHideForPlayer(playerid, TD_BankMenu);
    }
    return 1;
}
Reply


Messages In This Thread
Adding Textdraw on checkpoints - by ShaneOvSina - 20.02.2014, 18:59
Respuesta: Adding Textdraw on checkpoints - by OTACON - 20.02.2014, 19:05
Re: Adding Textdraw on checkpoints - by ShaneOvSina - 20.02.2014, 19:25
Re: Adding Textdraw on checkpoints - by MP2 - 20.02.2014, 19:49

Forum Jump:


Users browsing this thread: 2 Guest(s)