I need a help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: I need a help (
/showthread.php?tid=216719)
I need a help -
Ironboy - 26.01.2011
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.
Re: I need a help -
iggy1 - 26.01.2011
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.
Re: I need a help -
Ironboy - 26.01.2011
i made like this only
pawn Код:
public OnPlayerSpawn(playerid)
{
SetPlayerCheckpoint(playerid, 207.5122, -101.3344, 1005.2578, 3.0);
return 1;
}
Re: I need a help -
iggy1 - 26.01.2011
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.
Re: I need a help -
Ironboy - 26.01.2011
ok then tell me how to do that plz
Re: I need a help -
iggy1 - 26.01.2011
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.
Re: I need a help -
Ironboy - 26.01.2011
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?
Re: I need a help -
iggy1 - 26.01.2011
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.
Re: I need a help -
Ironboy - 26.01.2011
ok i more question where i should do this?
OnGameModeInit?
Re: I need a help -
iggy1 - 26.01.2011
You could use it wherever you need to

.