Multiple Streamer Checkpoint Dosen't work [HELP] +REP - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Multiple Streamer Checkpoint Dosen't work [HELP] +REP (
/showthread.php?tid=570192)
Multiple Streamer Checkpoint Dosen't work [HELP] +REP -
Chausar - 05.04.2015
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;
}
Re: Multiple Streamer Checkpoint Dosen't work [HELP] +REP -
Threshold - 06.04.2015
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
Re: Multiple Streamer Checkpoint Dosen't work [HELP] +REP -
Chausar - 06.04.2015
Yes, When i walked to VBMEnter nothing happened. help me.