Marker / Checkpoint
#1

Hey, I want to make a red checkpoint on the ground where people have to get in and type a command like: /playdm, if they are out of the checkpoint they can't do the command. Also a red marker on the place where it is.

Please help!
Reply
#2

Please!

(Shameless bump)
Reply
#3

First, add a checkpoint:
Код:
public OnPlayerConnect(playerid)
{
SetPlayerCheckpoint(playerid,X,Y,Z,size);
}
then in the command:
Код:
if(!IsPlayerInCheckpoint(playerid)) return SendClientMessage(playerid,color,"You arenґt in the checkpoint!");
Or something like this.
Reply
#4

But don't I need to specify the checkpoint like HockeyCheckpoint cause now it's for ALL checkpoints right?
Reply
#5

Yes, you can use the checkpoint streamer (search on this forum, I havenґt used it so far so I donґt know how to do it with it), or make a variable ActualCheckpoint[MAX_PLAYERS] or something like that, in OnPlayerConnect: ActualCheckpoint[playerid] = 0; and OnPlayerEnterCheckpoint: if(IsPlayerInSphere(...)) ActualCheckpoint[playerid] = 1; or something. Try it, or try the streamer.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)