CreateDynamicCP -
Youtube12 - 03.03.2013
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
Re: CreateDynamicCP -
Jstylezzz - 03.03.2013
is the virtualworld value of the CreateDynamicCP the same as the virtualworld of the player?
AW: CreateDynamicCP -
Youtube12 - 03.03.2013
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);
Re: CreateDynamicCP -
Mean - 03.03.2013
Show us your CreateDynamicCP code perhaps?
AW: CreateDynamicCP -
Youtube12 - 03.03.2013
Код:
bank = CreateDynamicCP(2310.6924,-8.9497,26.7422, 3, -1, -1, -1, 100);
Re: CreateDynamicCP -
Jstylezzz - 03.03.2013
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);
}
AW: CreateDynamicCP -
Youtube12 - 03.03.2013
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");
}
}
Re: CreateDynamicCP -
Jstylezzz - 03.03.2013
Have you actually tried what I said?
Can you show the onplayerspawn callback too?
Maybe you did something wrong..
AW: CreateDynamicCP -
Youtube12 - 03.03.2013
Yes i did what u said, i put that "native..." over the script and I put the "TogglePlayerDynamicCP(playerid, bank, 1);" in OnPlayerSpawn
Re: CreateDynamicCP -
Jstylezzz - 03.03.2013
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.