How to add checkpoint in interior
#1

i use fuction

:checkCoords[MAX_POINTS][4] and checkpoints[MAX_POINTS][4]

so i want to know how to add checkpoint in interior? for example in The bar interior or in pizza interior? If can someone help me pls, i need this....
Reply
#2

pawn Код:
CreateDynamicCP(x,y,z,size,worldid,INTERIORID,playerid,streamdistance);
Reply
#3

no

i'm pretty sur that you script a Cops & Robbers GameMode
anyway,

The checkcoords represents the Xminimum, Yminimum, Xmaximum, Ymaximum pos
it's like GangZones
but it's represents the Area to show the Checkpoint to the player (it's a streamer)

and the second parameter is Checkpoint, it's the Checkpoint position (/save )
Reply
#4

i use EnterCheckPoint and no CreateDynamicCP
Reply
#5

How to get Xminimum, Yminimum, Xmaximum, Ymaximum pos in interior I need to know this !!
Reply
#6

something like this........

http://www.zaslike.com/files/eq3nbrlqv7sbyukon4t.png
Reply
#7

bumpp??
Reply
#8

Quote:
Originally Posted by biker122
Посмотреть сообщение
pawn Код:
CreateDynamicCP(x,y,z,size,worldid,INTERIORID,playerid,streamdistance);
There's your answer.
Reply
#9

pawn Код:
new pickup_Enter;
new pickup_Exit;
pawn Код:
public OnGameModeInit()
{
        pickup_Enter = CreatePickup(1239, 2, 1368.3273,-1279.9304,13.5469, -1);    //sets checkpoint outside ammunation 1
    pickup_Exit = CreatePickup(1239, 2, 285.4701,-41.6128,1001.5156, -1);    //SETS THE CHECKPOINT IN AMMUNATION TO EXIT
    return 1;
}
Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
        if(pickupid == pickup_Enter)
        {
             SetPlayerPos(playerid, 286.148986,-40.644397,1001.515625); //puts you inside the ammunation 1
             SetPlayerInterior(playerid, 1); // int is 1 //interior id is 1
         }
        if(pickupid == pickup_Exit)
        {
            SetPlayerPos(playerid, 1366.2349,-1280.4396,13.5469); //when you hit checkpoint to exit, this places you right outside
            SetPlayerInterior(playerid, 0); // int is 0 //interior is 0 cause its outside
        }
	return 1;
}
Reply
#10

i need checkpoint like on the picture... no pickuppss.s..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)