I need a help
#1

Hello!
I cant creat a checkpoint inside a shop.
why it is like that.
i went to a shop and i saved infoot position and i took the coordinates and i creat a checkpoint.
After that i came to my server, that time that checkpoint is not inside that shop, it is some were else.
plz help me to fix it.
Reply
#2

Do you use a streamer? if not, do you create the checkpoint everytime a player enters the interior? thats what you need to do w/o a streamer.
Reply
#3

i made like this only

pawn Код:
public OnPlayerSpawn(playerid)
{
    SetPlayerCheckpoint(playerid, 207.5122, -101.3344, 1005.2578, 3.0);
    return 1;
}
Reply
#4

Only one checkpoint at a time can be visible to a player. When you show that checkpoint it will be created in whichever interior/virtual world the player is in at that time. I think it may be better if you use a streamer.
Reply
#5

ok then tell me how to do that plz
Reply
#6

https://sampforum.blast.hk/showthread.php?tid=102865

Read the first post in that thread (in full and understand it). Install the plugin and use the functions provided. It would be alot of work to get that functionality in you script w/o the plugin and i certainly won't be describing how to do it.
Reply
#7

i saw that post ,in that i found checkpoints
pawn Код:
native CreateDynamicCP(Float:x, Float:y, Float:z, Float:size, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 100.0);
native DestroyDynamicCP(checkpointid);
native IsValidDynamicCP(checkpointid);
native TogglePlayerDynamicCP(playerid, checkpointid, toggle);
native TogglePlayerAllDynamicCPs(playerid, toggle);
native IsPlayerInDynamicCP(playerid, checkpointid);
native DestroyAllDynamicCPs();
native CountDynamicCPs();
what i should fill in this?
Reply
#8

Read the post in full then you should understand how to use it. Example usage,

CreateDynamicCP(8644.0000, 8644.0000,8644.0000, 5.0, -1, -1, -1, 100.0);
That will create a checkpoint for every player, in every virtual world and every interior.
Reply
#9

ok i more question where i should do this?
OnGameModeInit?
Reply
#10

You could use it wherever you need to .
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)