How to Make a Red marker Checkpoint [HELP] - 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: How to Make a Red marker Checkpoint [HELP] (
/showthread.php?tid=316892)
How to Make a Red marker Checkpoint [HELP] -
Mario™ - 09.02.2012
Hey guyz please tell me how can i make red marker checkpoint and whem someone Pickups It It just Destroys
Please I need this
ASAP
Re: How to Make a Red marker Checkpoint [HELP] -
V_LOPE - 09.02.2012
pawn Код:
public OnPlayerSpawn(playerid)
{
SetPlayerCheckpoint(playerid,X,Y,Z,CHECKPOINTSIZE);
}
public OnPlayerEnterCheckpoint(playerid)
{
DisablePlayerCheckpoint(playerid);
return 1;
}
https://sampwiki.blast.hk/wiki/Function:SetPlayerCheckpoint
if you want make alot of checkpoints use streamer:
https://sampforum.blast.hk/showthread.php?tid=102865
Re: How to Make a Red marker Checkpoint [HELP] -
Mario™ - 09.02.2012
Ok thnx Dude Thnq Very Very Very much rep1
Re: How to Make a Red marker Checkpoint [HELP] -
V_LOPE - 09.02.2012
No Problem.
Re: How to Make a Red marker Checkpoint [HELP] -
Mario™ - 09.02.2012
Dude i;am Already Using Incognito's Streamer Tell me How to make using It \
I mean WHich Function And other Things Please
Re: How to Make a Red marker Checkpoint [HELP] -
V_LOPE - 09.02.2012
pawn Код:
CreateDynamicCP(Float:x, Float:y, Float:z, Float:size, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 100.0);
DestroyDynamicCP(checkpointid);
IsValidDynamicCP(checkpointid);
TogglePlayerDynamicCP(playerid, checkpointid, toggle);
TogglePlayerAllDynamicCPs(playerid, toggle);
IsPlayerInDynamicCP(playerid, checkpointid);
DestroyAllDynamicCPs();
CountDynamicCPs();
pawn Код:
OnPlayerEnterDynamicCP(playerid, checkpointid);
OnPlayerLeaveDynamicCP(playerid, checkpointid);
OnPlayerEnterDynamicRaceCP(playerid, checkpointid);
OnPlayerLeaveDynamicRaceCP(playerid, checkpointid);
Example:
pawn Код:
//at top
new TestCp;
public OnPlayerSpawn(playerid)
{
TestCp = CreateDynamicCP(playerid,x,y,z,world id[0],interiorid[0],playerid[-1],100);
return 1;
}
public OnPlayerEnterDyanmicCP(playerid,checkpointid)
{
if(checkpointid == TestCp && IsPlayerInDynamicCP(playerid,TestCp)
{
SendClientMessage(playerid,COLOR,"Your Text Here");
//add what you want here.
}
return 1;
}