[HELP]Check Point
#1

Hi! I Have got Problem About Check Point. I'm Trying To Make CheckPoint in 4dragon Casino an I'm Trying to show it when player is enterde 4dragon But When I Was In The Int. 0 It Shows Check Point in the Map BuT I'm Trying To Show iT When Player is inthe int.10

Sorry For May bad English

Cord. is here :

Код:
Interior : 10
XYZ:1948.6681,1015.4713,992.4745
Reply
#2

It Like a Flood But Someone Can Help Me?
Reply
#3

You can use GetPlayerInterior

pawn Код:
if (GetPlayerInterior(playerid) == 10)
{
// Show the checkpoint
}
Reply
#4

But Where Should I Add This Code
Reply
#5

How do you show the checkpoint to player?
Reply
#6

OnPlayerInteriorChange
SetPlayerCheckPoint
Reply
#7

Thanks But How Can I Seleck Checkpoint like Checkpoint = setplayercheckpoint(...)


Код:
public OnPlayerInteriorChange (playerid);
{
if (GetPlayerInterior(playerid) == 10)
{
Test = SetPlayerCheckPoint(1948.6681,1015.4713,992.4745); // Show the checkpoint
}
}
Can You Correct the Mistakes
Reply
#8

Код:
new Test;

public OnPlayerInteriorChange (playerid, newinteriorid, oldinteriorid);
{
if (newinterior == 10)
{
Test = SetPlayerCheckPoint(playerid, 1948.6681,1015.4713,992.4745); 
}
return 1;
}
Reply
#9

Thanks I Have Got 1 more Problem

Код:
public OnPlayerEnterCheckpoint (playerid)
{
	if(checkpointid == Test)
	{
		SendClientMessage(playerid, 0xFF0000AA, "Wtf its Test");

		return 1;
	}

return 1;}
Where is Wrong
Reply
#10

You can only have one checkpoint so no need for the 'if(..' line. If you want more objects, consider a streamer.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)