SA-MP Forums Archive
Checkpoint size always 1.0 :/ - 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: Checkpoint size always 1.0 :/ (/showthread.php?tid=477554)



Checkpoint size always 1.0 :/ - erminpr0 - 24.11.2013

Hi, how can I set player checkpoint with size of 3.0, 5.0, 8.0 etc.
I have tried but it always set to 1.0 :S
//REP +

pawn Код:
YCMD:firstcp(playerid, params[], help)
{
    #pragma unused params
    #pragma unused help
    SetPlayerCheckpoint(playerid, -1202.2, 302.5, 13.6, 1.0);
    SetPlayerPos(playerid, -1202.2, 302.5, 13.6);
    return 1;
}
YCMD:secondcp(playerid, params[], help)
{
    #pragma unused help
    #pragma unused params
    SetPlayerCheckpoint(playerid, -1350.2, 89.5, 13.6, 5.0); // This should actualy set it to 5.0 size, but no, it set to 1.0 :S
    SetPlayerPos(playerid, -1350.2, 89.5, 13.6);
    return 1;
}
YCMD:thirdcp(playerid, params[], help)
{
    #pragma unused help
    #pragma unused params
    SetPlayerCheckpoint(playerid, 350.2, -1750.5, 5.0, 10.0); // Same here
    SetPlayerPos(playerid, 350.2, -1750.5, 5.0);
    return 1;
}



Re: Checkpoint size always 1.0 :/ - Jefff - 24.11.2013

Try to use DisablePlayerCheckpoint(playerid); before SetPlayerCP


Re: Checkpoint size always 1.0 :/ - erminpr0 - 24.11.2013

Doesn't work :/