Checkpoints in interior's
#1

I'm making a Caligula's casino robbery spot inside, but for some reason the checkpoints don't show up in there...

Can someone tell me why?
Reply
#2

Quote:
Originally Posted by grand.Theft.Otto
Посмотреть сообщение
I'm making a Caligula's casino robbery spot inside, but for some reason the checkpoints don't show up in there...

Can someone tell me why?
Maybe wrong interior
Reply
#3

This is what I have, I don't mind giving it away...

pawn Код:
// top of script

new caligentercp;
new caligrobcp;
new caligexitcp;
new CasRobber[MAX_PLAYERS];

// under ongamemodeinit

caligentercp = CreateDynamicCP(2196.9636,1677.1774,12.3672,2.0,0,0,-1);
caligrobcp = CreateDynamicCP(2144.2842,1639.9541,993.5761,2.0,0,0,-1);
caligexitcp = CreateDynamicCP(2233.9739,1714.6818,1012.3828,2.0,0,0,-1);

// bottom of script

public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
    if(checkpointid == kartdmcp)
    {
        SetPlayerPos(playerid,1921.6257,998.9541,52.7387,263.6069);
        SendClientMessage(playerid,COLOR_LIGHTBLUE,"Welcome To Kart DM. You Can Also Use /kartdm To Teleport Here In The Future. To Exit, Just Jump Off.");
        GameTextForPlayer(playerid,"~p~welcome to ~n~~y~kart dm",3000,3);
        ResetPlayerWeapons(playerid);
        GivePlayerWeapon(playerid,29,900);
    }
    if(checkpointid == caligentercp)
    {
        SetPlayerPos(playerid,2234.0896,1706.2617,1009.9155,180.3854);
        SendClientMessage(playerid,COLOR_LIGHTBLUE,"Welcome To "#COL_ORANGE"Caligula's Palace & Casino! "#COL_LIGHTBLUE"Enter The "#COL_RED"Checkpoint "#COL_LIGHTBLUE"Underground To Start A Casino Rob.");
        SetPlayerFacingAngle(playerid,180);
        SetPlayerInterior(playerid,1);
        SetPlayerVirtualWorld(playerid,0);
    }
    if(checkpointid == caligrobcp)
    {
        SendClientMessage(playerid,COLOR_ORANGE,"You Can Rob Our Casino If You Like! Wait Here For 30 Seconds, Thats All We Ask!");
        GameTextForPlayer(playerid,"~y~stay in the checkpoint for ~n~~w~30 seconds",5000,3);
        SetTimerEx("CasRob",30000,false,"i",CasRobber[playerid]);
        TogglePlayerControllable(playerid,0);
    }
    if(checkpointid == caligexitcp)
    {
        SendClientMessage(playerid,red,"You Have Exited Caligula's Palace. Thanks For Visiting!");
        SetPlayerPos(playerid,2190.3384,1677.3412,11.5830);
        SetPlayerFacingAngle(playerid,87.9511);
    }
    return 1;
}

forward CasRob(playerid);
public CasRob(playerid)
{
    if(IsPlayerInDynamicCP(CasRobber[playerid],caligrobcp))
    {
        SendClientMessage(CasRobber[playerid],COLOR_LIGHTBLUE,"Robbery Complete! Received $150,000 And 2+ Score!");
        GameTextForPlayer(CasRobber[playerid],"~p~robbery completed! ~n~~w~recieved ~y~$150,000 ~w~& ~y~2+ Score",5000,3);
        GivePlayerMoney(CasRobber[playerid],150000);
        SetPlayerScore(CasRobber[playerid], GetPlayerScore(CasRobber[playerid]) + 2);
        TogglePlayerControllable(CasRobber[playerid],1);
        return 1;
    }
    else
    {
        SendClientMessage(CasRobber[playerid],red,"Robbery Failed. You Didn't Stay In The Checkpoint Long Enough!");
        TogglePlayerControllable(CasRobber[playerid],1);
        GameTextForPlayer(CasRobber[playerid],"~r~casino robbery failed",5000,3);
        return 1;
    }
}
Maybe this will help you more
Reply
#4

well ive made casino robberys in calagas,4 dragons and the other casino and their all fine check your virtual worlds & interiors
Reply
#5

This should help you:
pawn Код:
CreateDynamicCP(Float:x, Float:y, Float:z, Float:size, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 100.0);
et the interior and the world id from it and your good to go.
Reply
#6

Quote:
Originally Posted by Markx
Посмотреть сообщение
This should help you:
pawn Код:
CreateDynamicCP(Float:x, Float:y, Float:z, Float:size, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 100.0);
et the interior and the world id from it and your good to go.
Thanks a lot, this solved the problem
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)