11.09.2011, 14:23
Hello!
I want to make a BMX system with random checkpoints, but when i enter first checkpoint other wont appear...
News:
OnDialogResponse (because i have to type /bgps to show dialog with question: Do you want to start your tricking?)
OnPlayerEnterCheckpoint:
Where's the problem?
I want to make a BMX system with random checkpoints, but when i enter first checkpoint other wont appear...
News:
Код:
new Float: bmx1[10][3] = { { -2028.8643,-105.7695,38.4339}, { -2012.5841,-103.2338,41.0875}, { -1700.3256,1223.0607,32.7146}, { -1523.2424,489.4354,10.1117}, { -1751.3070,266.6934,8.3100}, { -1750.1702,158.9871,9.1140}, { -1702.7638,69.8973,9.0848}, { -2153.2749,-184.2894,40.6409}, { -2151.7327,-92.2773,44.4817}, { -2147.4937,-181.7524,38.2085} }; new bmxo[MAX_PLAYERS];
Код:
new rand = random(sizeof(bmx1)); if(dialogid == 9) { bmxo[playerid] = SetPlayerCheckpoint(playerid,bmx1[rand][0],bmx1[rand][1],bmx1[rand][2],3); return 1; }
Код:
new rand = random(sizeof(bmx1)); if(bmxo[playerid] == 1) { bmxo[playerid] = SetPlayerCheckpoint(playerid,bmx1[rand][0],bmx1[rand][1],bmx1[rand][2],3); }