Dynamic Checkpoint's
#1

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

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



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

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

Im sure.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)