20.02.2014, 19:49
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;
}