04.08.2013, 11:18
So everything working fine, but when i go on checkpoint 1 it shows me checkpoint 3.
So there is something missing. Please help me
So there is something missing. Please help me

Код:
new Ccp[MAX_PLAYERS]; public OnPlayerConnect(playerid) { // Checkpoints { Ccp[playerid] =1; CreateDynamicCP(1038.1439,-1339.7784,13.7266, 1, 0, 0, 0, 50); // gun shop enter } { Ccp[playerid] =2; CreateDynamicCP(285.3838,-40.1943,1001.5156, 1, 0, 1, 0, 50); //gun shop exit } { Ccp[playerid] =3; CreateDynamicCP(296.5040,-38.1360,1001.5156, 1, 0, 1, 0, 50); } return 1; } public OnPlayerEnterDynamicCP(playerid, checkpointid) { if(Ccp[playerid] ==1) { SetPlayerPos(playerid,288.2349,-38.5503,1001.5156); SetPlayerInterior(playerid,1); } if(Ccp[playerid] ==2) { SetPlayerPos(playerid,1038.4999,-1336.6597,13.7266); SetPlayerInterior(playerid,0); } if(Ccp[playerid] ==3) { ShowPlayerDialog(playerid, DIALOG_WEAPONS, DIALOG_STYLE_LIST, "Weapons", "hi","Buy","Cancel"); } }