Problem with streamer.
#1

Hello !

In the streamer Incognito there is a function for checkpoints (CreateDynamicCP).

It takes place in the OnPlayerSpawn as "normal" function (SetPlayerCheckPoint)?

Because I put in a command function streamer but the checkpoint does not appear.

thx
Reply
#2

You can Make it in OnGameModeInit But Make Sure that : playerid case = -1, so all players can see it
CreateDynamicCP(Float, Float:y, Float:z, Floatize, worldid = -1, interiorid = -1, playerid = -1, Floattreamdistance = 100.0);
If I Helped you +rep
Reply
#3

not work ^^
Reply
#4

You are jus creating checkpoint. You also have to show/hide it for player with other function
Quote:

native TogglePlayerDynamicCP(playerid, checkpointid, toggle);

Reply
#5

Now it's visible in my minimap but don't visible in game ...
Reply
#6

can you show your code?
Reply
#7

pawn Код:
HousePickup[HouseID] = CreateDynamicCP(HouseInfo[HouseID][hEntrancex], HouseInfo[HouseID][hEntrancey], HouseInfo[HouseID][hEntrancez], 1, HouseInfo[HouseID][hVW], HouseInfo[HouseID][hIntX], -1, PICKUP_STREAM_DISTANCE);

    for(new p = MIN_PLAYERID; p < MAX_PLAYERS_CURRENT+1; p++)
    {
        TogglePlayerDynamicCP(p, HousePickup[HouseID], 1);
    }
In my callback for load checkpoint
Reply
#8

you don't need these params (set them to -1 ):
Quote:

HouseInfo[HouseID][hVW], HouseInfo[HouseID][hIntX]

Because you are showing checkpoint to in other interior and world id (house interior)
Reply
#9

Yes but it still does not solve the problems ^^
Reply
#10

pawn Код:
CreateDynamicCP(HouseInfo[HouseID][hEntrancex], HouseInfo[HouseID][hEntrancey], HouseInfo[HouseID][hEntrancez], 5);
Try to change to this

edit: By the way, if you want to use pickups, create pickups, not checkpoints
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)