Multiple Streamer Checkpoint Dosen't work [HELP] +REP
#1

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;
}
Reply
#2

Well VBMExit is on the exact same position you're teleporting them to... did you try to walk into VBMEnter?
pawn Код:
CreateDynamicCP(1298.9244,-796.3924,1084.0078, -1, -1, -1, -1, 100);
SetPlayerPos(playerid,1298.9244,-796.3924,1084.0078);
//Both use 1298.9244,-796.3924,1084.0078
Reply
#3

Yes, When i walked to VBMEnter nothing happened. help me.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)