dynamic(cp)
#1

Hello i'm trying to create bank menu via dialog + cp
basically i have done everything but i have 1 little problem

it works only if there is 1 person on the server ...
if there is more then one dialog menu doesn't show up but cp does
pawn Код:
bank = CreateDynamicCP( 2308.7785, -13.4947, 26.7421, 1.50, -1, -1, -1, 40.0);
pawn Код:
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
if(checkpointid == bank)
    {
ShowPlayerDialog( playerid, bankdialog, DIALOG_STYLE_LIST,"BankMenu", "Balance\nDeposit\nWithdraw\nSell Gold", "Select", "Cancel" );

    }
}
Reply
#2

I use it the way you do but this is how i do it:

pawn Код:
bank = CreateDynamicCP( 2308.7785, -13.4947, 26.7421, 1.50, -1, -1, -1, 40.0);
pawn Код:
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
    if(checkpointid == bank)
    {
        if(IsPlayerInRangeOfPoint(playerid,10.0,2308.7785, -13.4947, 26.7421))
        ShowPlayerDialog( playerid, bankdialog, DIALOG_STYLE_LIST,"BankMenu", "Balance\nDeposit\nWithdraw\nSell Gold", "Select", "Cancel" );

    }
}
I use IsPlayerInRangeOfPoint.
Reply
#3

Tee
Yep i was also thinking about IsPlayerInRangeOfPoint
but that way OnPlayerEnterDynamicCP and if(checkpointid == bank) are useless
you can just put it OnPlayerUpdate
---------------
i'm curious am i doing something wrong or is this function buged ?
Reply
#4

bump ....
any ideas?
when i use IsPlayerInRangeOfPoint, dialog starts poping up again and again... i can't more or exit it
i could set teleport on response 2 thought but it wont be best idea
Reply
#5

UP...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)