05.04.2015, 22:58
so..i make my own checkpoint given by another scripter.. the problem is when i touch the marker nothing happen. here's the code:
Код:
new VBMEnter; new VBMExit;
Код:
VBMEnter = CreateDynamicCP(1124.9746,-2036.8936,69.8826, -1, -1, -1, -1, 100); //This was under OnGameModeInit VBMExit = CreateDynamicCP(1298.9244,-796.3924,1084.0078, -1, -1, -1, -1, 100);
Код:
public OnPlayerEnterDynamicCP(playerid, checkpointid) { if(checkpointid == VBMEnter) { SetPlayerInterior(playerid, 5); SetPlayerPos(playerid,1267.663208,-781.323242,1091.906250); } if(checkpointid == VBMExit) { SetPlayerInterior(playerid, 0); SetPlayerPos(playerid,1298.9244,-796.3924,1084.0078); } return 1; }