[Pomoc] Problem s IsPlayerInRangeOfPoint

Započeo Matteo
21. Okt. 2010.
870
pregleda
3
postova
matteokov
4
Shot Caller
21. Okt. 2010.
Dobra dan. Imam jedan problemcic s time kako da s jednom komandom mogu doc do vise cp-a (kada dodem do prvog da mi izbaci drugi i tako dalje), evo komande kojom dodem do prvog cp-a:
	if (strcmp("/vozibeton", cmdtext, true, 10) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 7.0, -2410.4307,-585.9673,132.6484))//cp1
{
SetPlayerCheckpoint(playerid, -2642.3608,1363.2247,6.4370, 8.0);//
GameTextForPlayer(playerid, "kada dodes do cp-a upisi /vratimjesalicu", 5000, 3);
}
return 1;
}
lopalopa
4
Enforcer
22. Okt. 2010.
Koliko sam ja razumi ova komanda b tribala bit za neki posao.
evo pogledaj kako sam ja to napravio.

Ovo ubaci di su ti koamnde.
	if (strcmp("/vozibeton", cmdtext, true, 10) == 0)
{
if(PlayerInfo != id posla)
{
DisablePlayerCheckpoint(playerid); //unistava predhodni cp
           SetPlayerCheckpoint(playerid, X,Y,Z,Radius);
CP = 200; //ovaj broj 200 je id CP dakle to je kad igrac stane na ovaj 1 cp da ga autoatski salje na ostale
}
return 1;
}


zatim ovo ubaci u          public OnPlayerEnterCheckpoint(playerid)
//---------------------CP-----------------
else if(CP == 200) { CP = 201; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, X,Y,Z,RADIUS); }
else if(CP == 201) { CP = 202; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, X,Y,Z,RADIUS); }
else if(CP == 202) { CP = 203; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, X,Y,Z,RADIUS); }
else if(CP == 203) { CP = 204; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, X,Y,Z,RADIUS); }
else if(CP == 204) { CP = 205; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, X,Y,Z,RADIUS); }
else if(CP == 205) { CP = 206; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, X,Y,Z,RADIUS); }
else if(CP == 206) { CP = 207; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, X,Y,Z,RADIUS); }
else if(CP == 207) { CP = 208; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, X,Y,Z,RADIUS); }
else if(CP == 208) { CP = 209; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, X,Y,Z,RADIUS); }
else if(CP == 209)//Kraj cp
   {
DisablePlayerCheckpoint(playerid);
CP = 0;
}


UKOLIKO NESTO NISI RAZUMIO NEKI KOD ILI BILO STA PITAJ VAMO.
i to je to,nadam se da sam pomogao
matteokov
4
Shot Caller
23. Okt. 2010.
Nemam ja GF ni Reven ja imam svoj GM od 0

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha