PDA

View Full Version : Checkpoints problems


DarkLored
08/03/2014, 11:27 PM
Hello i made some checkpoints of a sex shop so i am using the same interior but a different virtual world because all of them are the same interiors but when i exit them i spawn in the first shop that i made when it suppose to take me to the other place why is this happening ?

OnGameModeInit
Checkpoint[72] = CreateDynamicCP(1087.6776,-922.4814,43.3906,2,-1,-1,-1,100);//Sex Shops Enter
Checkpoint[73] = CreateDynamicCP(-100.3609,-25.0377,1000.7188,2,-1,3,-1,100);//Sex Shops Exit
Checkpoint[74] = CreateDynamicCP(-106.2691,-10.6185,1000.7188,3,-1,3,-1,100);//Sex Shops Robbery CP
Checkpoint[75] = CreateDynamicCP(1940.0045,-2116.0015,13.6953,2,-1,-1,-1,100);//Sex Shop Enter
Checkpoint[76] = CreateDynamicCP(-100.3609,-25.0377,1000.7188,2,1,3,-1,100);//Sex Shops Exit
Checkpoint[77] = CreateDynamicCP(-106.2691,-10.6185,1000.7188,3,1,3,-1,100);//Sex Shops Robbery CP
Checkpoint[78] = CreateDynamicCP(953.9093,-1336.8307,13.5389,2,-1,-1,-1,100);//Sex Shop Enter
Checkpoint[79] = CreateDynamicCP(-100.3609,-25.0377,1000.7188,2,2,3,-1,100);//Sex Shops Exit
Checkpoint[80] = CreateDynamicCP(-106.2691,-10.6185,1000.7188,3,2,3,-1,100);//Sex Shops Robbery CP

OnPlayerEnterDynamicCP
if(checkpointid == Checkpoint[72])//Sex Shop Enter
{
SetPlayerInterior(playerid,3);
SetPlayerPos(playerid,-100.9090,-21.2713,1000.7188);
SetCameraBehindPlayer(playerid);
}
if(checkpointid == Checkpoint[73])//Sex Shop Exit
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1088.1754,-927.9149,43.1822);
SetCameraBehindPlayer(playerid);
}
if(checkpointid == Checkpoint[74])//Sex Shop Robbery CP
{
ShowPlayerDialog(playerid,SexMenu,DIALOG_STYLE_LIS T,"Menu","Condoms - $2000\nDildo - $500\nVibrator - $500\nAttempt Robbery","Buy","Cancel");
}
if(checkpointid == Checkpoint[75])//Sex Shop Enter
{
SetPlayerInterior(playerid,3);
SetPlayerVirtualWorld(playerid,1);
SetPlayerPos(playerid,-100.9090,-21.2713,1000.7188);
SetCameraBehindPlayer(playerid);
}
if(checkpointid == Checkpoint[76])//Sex Shop Exit
{
if(GetPlayerVirtualWorld(playerid) == 1)
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerPos(playerid,1946.1952,-2114.5842,13.5486);
SetCameraBehindPlayer(playerid);
}
}
if(checkpointid == Checkpoint[77])//Sex Shop Robbery CP
{
ShowPlayerDialog(playerid,SexMenu1,DIALOG_STYLE_LI ST,"Menu","Condoms - $2000\nDildo - $500\nVibrator - $500\nAttempt Robbery","Buy","Cancel");
}
if(checkpointid == Checkpoint[78])//Sex Shop Enter
{
SetPlayerInterior(playerid,3);
SetPlayerVirtualWorld(playerid,2);
SetPlayerPos(playerid,-100.9090,-21.2713,1000.7188);
SetCameraBehindPlayer(playerid);
}
if(checkpointid == Checkpoint[79])//Sex Shop Exit
{
if(GetPlayerVirtualWorld(playerid) == 2)
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerPos(playerid,953.4289,-1332.5028,13.5316);
SetCameraBehindPlayer(playerid);
}
}
if(checkpointid == Checkpoint[80])//Sex Shop Robbery CP
{
ShowPlayerDialog(playerid,SexMenu2,DIALOG_STYLE_LI ST,"Menu","Condoms - $2000\nDildo - $500\nVibrator - $500\nAttempt Robbery","Buy","Cancel");
}

DarkLored
08/03/2014, 11:48 PM
Any help here guys?

DarkLored
09/03/2014, 12:16 AM
Guys can i get any help here?

DarkLored
09/03/2014, 06:21 PM
BUMP

Guys please help me i really need help on this problem the checkpoints are bugging each other

Matess
09/03/2014, 06:30 PM
Checkpoint[73] = CreateDynamicCP(-100.3609,-25.0377,1000.7188,2,-1,3,-1,100);//Sex Shops Exit
Checkpoint[74] = CreateDynamicCP(-106.2691,-10.6185,1000.7188,3,-1,3,-1,100);//Sex Shops Robbery CP

//these are permanently in all worlds