SA-MP Forums Archive
Dynamic Checkpoint's - 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: Dynamic Checkpoint's (/showthread.php?tid=606082)



Dynamic Checkpoint's - Zevcore - 29.04.2016

Hello, i've got that cp:
PHP код:
new zaladunek_cp[MAX_PLAYERS];
zaladunek_cp[playerid] = CreateDynamicCP(zaladunek[rand][0], zaladunek[rand][0], zaladunek[rand][0], 10.0, -1, -1playerid, -1); 
and

PHP код:
if(checkpointid == zaladunek_cp[playerid])
{
DestroyDynamicCP(zaladunek_cp[playerid]);
new 
wiadomosc[250], name[24];
GetPlayerName(playeridname24);
format(wiadomosc,sizeof(wiadomosc), "{FFFFFF}Witaj na załadunku {0099CC}%s{FFFFFF}, rozpoczynam załadunek!"name);
TogglePlayerControllable(playerid0);
SetTimerEx("loading"7500false"i"playerid);
SendClientMessage(playerid, -1wiadomosc);

And as I walk inside it , nothing happens .


Re: Dynamic Checkpoint's - Lordzy - 29.04.2016

You've set the streamdistance parameter to -1 which could possibly be why nothing happens when you enter into the checkpoint. Change it to it's default value (100.00) or value greater than 5.0.


Re: Dynamic Checkpoint's - Zevcore - 30.04.2016



PHP код:
zaladunek_cp[playerid] = CreateDynamicCP(zaladunek[rand][0], zaladunek[rand][0], zaladunek[rand][0], 10.00, -1, -1999.0); 



Re: Dynamic Checkpoint's - SamJust - 30.04.2016

Are u sure u use the right callback? Because u need to use OnPlayerEnterDynamicCehckPoint, not default OnPlayerEnterCheckPoint.


Re: Dynamic Checkpoint's - Zevcore - 30.04.2016

Im sure.