SA-MP Forums Archive
How to create a checkpoint for more than 1 time in the same place? - 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 create a checkpoint for more than 1 time in the same place? (/showthread.php?tid=366174)



How to create a checkpoint for more than 1 time in the same place? - bhuvanesh - 05.08.2012

Hey guys,
Title says it all!How do I create a checkpoint in the same place for more than one time.And everyplayer in the GM can enter it only once and not more than one time.And on every enter I want the count to be increased.Once the count reaches to a certain limit say 5 the team that entered the checkpoint 5 times wins the match.I would be thankful if someone of you could post me the script(tutorial) for this.


Regards,
Bhuvanesh


Re: How to create a checkpoint for more than 1 time in the same place? - V_LOPE - 05.08.2012

use streamer
https://sampforum.blast.hk/showthread.php?tid=102865/

Example:
pawn Код:
//At Top
new alreadypickupcp[MAX_PLAYERS];

// Add this OnGameModeInit..
CreateDynamicRaceCP(type, Float:x, Float:y, Float:z, Float:nextx, Float:nexty, Float:nextz, Float:size, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 100.0);
//remember to edit it.

public OnPlayerEnterDynamicRaceCP(playerid, checkpointid)
{
  if(checkpointid == CHECKID && alreadypickupcp[playerid] == 0)
  {
     SendClientMessage(playerid,Your_Color,"You've entered an race checkpoint!");
     alreadypickupcp[playerid] = 1;
  }
  return 1;
}



Re: How to create a checkpoint for more than 1 time in the same place? - bhuvanesh - 05.08.2012

I get these errors.


D:\SAN BACK\Area51\gamemodes\a51.pwn(50) : error 017: undefined symbol "CreateDynamicRaceCP"
D:\SAN BACK\Area51\gamemodes\a51.pwn(50) : warning 215: expression has no effect
D:\SAN BACK\Area51\gamemodes\a51.pwn(50) : error 017: undefined symbol "playerid"
D:\SAN BACK\Area51\gamemodes\a51.pwn(50) : warning 215: expression has no effect
D:\SAN BACK\Area51\gamemodes\a51.pwn(50) : error 017: undefined symbol "streamdistance"
D:\SAN BACK\Area51\gamemodes\a51.pwn(50) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.