SA-MP Forums Archive
small 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)
+--- Thread: small help (/showthread.php?tid=388176)



small help - Wonderweiss - 27.10.2012

so i wanna make a checkpoint to set the players position to an ammunition shop and here is the code
Код:
 
public OnPlayerSpawn(playerid)
{
    SetPlayerCheckpoint(playerid, 2159.3638,943.1764,10.8203, 3.0);
    return 1;
}
Код:
public OnPlayerEnterCheckpoint(playerid)
{
    SetPlayerPos(playerid, 286.800994,-82.547599,1001.515625);
    SendClientMessageToAll(COLOR_RED, "A player has entered an ammunition store!");
    DisablePlayerCheckpoint(playerid);
    return 1;
}
and here is the problem:

everything is ok with the checkpoint and script no errors etc but when u enter it u get to the xyz but ur just in mid air falling how can i fix this ?


Re: small help - Catalyst- - 27.10.2012

pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
    SetPlayerPos(playerid, 286.800994,-82.547599,1001.515625);
    SetPlayerInterior(playerid, 4); // This is what you was missing
    SendClientMessageToAll(COLOR_RED, "A player has entered an ammunition store!");
    DisablePlayerCheckpoint(playerid);
    return 1;
}



Re: small help - Wonderweiss - 27.10.2012

thanx


Re: small help - Wonderweiss - 27.10.2012

one more thing how i make more checkpoints ??


Re: small help - NewerthRoleplay - 27.10.2012

Quote:
Originally Posted by Wonderweiss
Посмотреть сообщение
one more thing how i make more checkpoints ??
if you mean more then one, you can only have one at a time unless you use a streamer such as incognito's


Re: small help - Catalyst- - 27.10.2012

You'll need a streamer to have more than one checkpoint active at a time.
Use this: https://sampforum.blast.hk/showthread.php?tid=102865


Re: small help - Wonderweiss - 27.10.2012

okay thanx