small help
#1

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 ?
Reply
#2

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;
}
Reply
#3

thanx
Reply
#4

one more thing how i make more checkpoints ??
Reply
#5

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
Reply
#6

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
Reply
#7

okay thanx
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)