Question about disableplayercheckpoint
#1

hello guys , a small question about this code (Taken directly from samp wiki )
pawn Код:
public OnPlayerSpawn(playerid)
{
    SetPlayerCheckpoint(playerid, 1982.6150, -220.6680, -0.2432, 3.0);
    return 1;
}
 
public OnPlayerEnterCheckpoint(playerid)
{
    GivePlayerMoney(playerid, 1000);
    DisablePlayerCheckpoint(playerid);
    return 1;
}
When the checkpoint is disabled , it will stay disabled until the player relog?
or if the player moved it will appear again?
Reply
#2

It should stay off
Reply
#3

What if i want it to appear again?
Reply
#4

0_0 there you got me :P
i think you should use SetPlayerCheckpoint again..
I use a streamer since i began scripting, so i'm not sure.
On the other hand, i cannot find anything like EnablePlayerCheckPoint, neither something to delete it.
I think DisablePlayerCheckpoint, is the same as DestroyDynamicCheckpoint in streamers.. (correct me if i'm wrong).
i think you should use SetPlayerCheckPoint to "show" a checkpoint, and DisablePlayerCheckpoint to "delete" it.

Please correct me if i'm wrong
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)