How to
#1

How to make it so that if you enter a checkpoint you go to to different places but different times like


player pickups pickup for a house

one time they go to one place

a different time the go to a different place

and it repeats like that
Reply
#2

you would like a random teleport checkpoint??
pawn Код:
new Float:Checkpointtele[2][3] =
{
   //x   0          //y 1      //z 2        //a 3
{1261.4143,-785.5112,1091.9063,329.5980}, // just a tele
{1298.6150,-796.5847,1084.0078,181.6979},
};

rnd = random(sizeof (Checkpointtele));
    SetPlayerPos(playerid, Checkpointtele[rnd][0], Checkpointtele[rnd][1], Checkpointtele[rnd][2]);
    SetPlayerFacingAngle(playerid, Checkpointtele[rnd][3]);
Reply
#3

try using timers everytime it changes the setplayerpos by timer.... im guessing
Reply
#4

no not that i mean like when a player enters a checkpoint to enter this house they go either

1261.4143,-785.5112,1091.9063

or

1298.6150,-796.5847,1084.0078

same interior and stuff i just need to know how to make em goto them different spots each time entered checkpoint


EDIT: @Kitten How would that work out?
Reply
#5

pawn Код:
// credits go to BMUK
new Float:Checkpointtele[2][3] =
{
   //x=0  y=1  z=2  a=3
{1261.4143,-785.5112,1091.9063,329.5980}, // just a tele
{1298.6150,-796.5847,1084.0078,181.6979},
};

rnd = random(sizeof (Checkpointtele));
    SetPlayerPos(playerid, Checkpointtele[rnd][0], Checkpointtele[rnd][1], Checkpointtele[rnd][2]);
    SetPlayerFacingAngle(playerid, Checkpointtele[rnd][3]);
Reply
#6

so like this??
pawn Код:
else if(checkpointid == otto)
    {
        new rnd = 2;
        new Float:Checkpointtele[2][3] =
            {
                //x   0          //y 1      //z 2        //a 3
                {1266.4143,-785.5112,1091.9063,329.5980}, // just a tele
                {1295.6150,-796.5847,1084.0078,181.6979},
            };

            rnd = random(sizeof (Checkpointtele));
            SetPlayerPos(playerid, Checkpointtele[rnd][0], Checkpointtele[rnd][1], Checkpointtele[rnd][2]);
            SetPlayerFacingAngle(playerid, Checkpointtele[rnd][3]);
   
        //SetPlayerInterior(playerid, 5);
        //SetPlayerPos(playerid, 1267.663208,-781.323242,1091.906250);
    }
i did it like that and it didnt work -_-
Reply
#7

Quote:
Originally Posted by willsuckformoney
Посмотреть сообщение
so like this??
pawn Код:
else if(checkpointid == otto)
    {
        new rnd = 2;
        new Float:Checkpointtele[2][3] =
            {
                //x   0          //y 1      //z 2        //a 3
                {1266.4143,-785.5112,1091.9063,329.5980}, // just a tele
                {1295.6150,-796.5847,1084.0078,181.6979},
            };
        SetPlayerInterior(playerid, 5);
                rnd = random(sizeof (Checkpointtele));
            SetPlayerPos(playerid, Checkpointtele[rnd][0], Checkpointtele[rnd][1], Checkpointtele[rnd][2]);
            SetPlayerFacingAngle(playerid, Checkpointtele[rnd][3]);
   
    } // got this from LVRCR (never tested it)
i did it like that and it didnt work -_-
i thought like this
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)