Checkpoints?
#1

how i make checkpoints? + how to make it only appears when u type a command and it removes itself when you are at the checkpoint?
Reply
#2

pawn Код:
if(strcmp(cmdtext,"/cp",true,10)==0)
    {
        SetPlayerCheckpoint(playerid, 0.0, 0.0, 0.0, 3);
        return 1;
    }
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
    DisablePlayerCheckpoint(playerid);
    SendClientMessage(playerid,0xFFFFFFFF,"Congratz, you made it to the checkpoint");
    return 1;
}
Reply
#3

Quote:
Originally Posted by Adil
Посмотреть сообщение
pawn Код:
if(strcmp(cmdtext,"/cp",true,10)==0)
    {
        SetPlayerCheckpoint(playerid, 0.0, 0.0, 0.0, 3);
        return 1;
    }
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
    DisablePlayerCheckpoint(playerid);
    SendClientMessage(playerid,0xFFFFFFFF,"Congratz, you made it to the checkpoint");
    return 1;
}
thanks but what does the last 3 in this line means
Код:
	    SetPlayerCheckpoint(playerid, 0.0, 0.0, 0.0, 3);
Reply
#4

Quote:
Originally Posted by ls200
Посмотреть сообщение
thanks but what does the last 3 in this line means
Код:
	    SetPlayerCheckpoint(playerid, 0.0, 0.0, 0.0, 3);
(playerid,Float,Float:y,Float:z,Floatize)

Or go here cause of the similes... https://sampwiki.blast.hk/wiki/SetPlayerCheckpoint
Reply
#5

It means the area the checkpoint covers, the red circle space.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)