CreateDynamicCP
#1

Hi guys, I want to create a (DynamicCP) in this place..
but its not working...

Position: AddPlayerClass(265,2310.6924,-8.9497,26.7422,88.8191,0,0,0,0,0,0); // BANK
The Place:



Help me pls
Reply
#2

is the virtualworld value of the CreateDynamicCP the same as the virtualworld of the player?
Reply
#3

Yes.

I did this but when i go into the bank, there is no "Checkpoint"

My Code:
Код:
bank = CreateDynamicCP(2310.6924,-8.9497,26.7422, 3, -1, -1, -1, 100);
Reply
#4

Show us your CreateDynamicCP code perhaps?
Reply
#5

Код:
bank = CreateDynamicCP(2310.6924,-8.9497,26.7422, 3, -1, -1, -1, 100);
Reply
#6

You have to enable the checkpoint
pawn Код:
native TogglePlayerDynamicCP(playerid, checkpointid, toggle);
You can do this on OnPlayerSpawn
pawn Код:
public OnPlayerSpawn(playerid)
{
TogglePlayerDynamicCP(playerid, bank, 1);
}
Reply
#7

Not work...

My code:


Код:
Over the script:

//All Checkpoints
new bank;
//



OnGameModeInit:

bank = CreateDynamicCP(2310.6924,-8.9497,26.7422, 3, -1, -1, -1, 100);



//


public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
    if(checkpointid == bank) //This checks what checkpoint it is before it continues
    {
   	ShowPlayerDialog(playerid,1125,DIALOG_STYLE_LIST,"Bank","Deposit\nWithdraw\nBalance\nTransfer","Select","Cancel");
    }
}
Reply
#8

Have you actually tried what I said?
Can you show the onplayerspawn callback too?
Maybe you did something wrong..
Reply
#9

Yes i did what u said, i put that "native..." over the script and I put the "TogglePlayerDynamicCP(playerid, bank, 1);" in OnPlayerSpawn
Reply
#10

You don't need to put the native thing in it, that was just to show you the function you have to use, just remove the native.
Make sure your streamer plugin and include are up to date.
And that the plugin is loaded correctly.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)