Interiors
#1

How i can add a checkpoind when you go in it you get teleported in a interior ?
Reply
#2

https://sampwiki.blast.hk/wiki/SetPlayerCheckpoint
https://sampwiki.blast.hk/wiki/SetPlayerPos
https://sampwiki.blast.hk/wiki/SetPlayerInterior
https://sampwiki.blast.hk/wiki/InteriorIDs

Should help you get started.
Reply
#3

You need to use a streamer to have multiple checkpoints. I recommend Incognito's streamer plugin.

pawn Код:
new CP_LSPD;

public OnGameModeInit()
{
    CP_LSPD = CreateDynamicCheckpoint(...);
    return 1;
}

public OnPlayerEnterDynamicCheckpoint(playerid, checkpointid)
{
    if(checkpointid == CP_LSPD)
    {
        SetPlayerPos(playerid, x, y, z);
        SetPlayerFacingAngle(playerid, a);
        SetPlayerInterior(playerid, int);
    }
    return 1;
}
This is a template, it's not a working code. It's not a copy and paste job.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)