How to Make a Red marker Checkpoint [HELP]
#1

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

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
Reply
#3

Ok thnx Dude Thnq Very Very Very much rep1
Reply
#4

No Problem.
Reply
#5

Dude i;am Already Using Incognito's Streamer Tell me How to make using It \

I mean WHich Function And other Things Please
Reply
#6

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


Forum Jump:


Users browsing this thread: 3 Guest(s)