Checkpoints
#7

Quote:
Originally Posted by Sarra
Посмотреть сообщение
Hello , I want to know if there's a function that allows me to know if the player has already a checkpoint, so If he has one he will need to /deletecheckpoint to have another! I just need to know if there's a function that may help,
You can use variables something like this:

https://sampforum.blast.hk/showthread.php?tid=464726

Place:
Cp[playerid]=1;

When they picked it up.

On your command:
pawn Код:
CMD:Your Cmd(playerid, params[])
{
if(Cp[playerid] == 1)
{
Cp[playerid] = 0;
}
else SendClientMessage(playerid, color,  message");
And under OnPlayerSpawn:

OnPlayerSpawn
{
Cp[playerid] = 0);
}

Put this on top too.

new cp[MAX_PLAYERS];

Maybe not good explained but I used my phone and did it very fast.

Edit: Didn't saw Konstantinos post as the page reloaded when I posted.
Reply


Messages In This Thread
Question about Checkpoints - by Sarra - 01.08.2014, 10:23
Re: Checkpoints - by Slicebook - 01.08.2014, 10:47
Re: Checkpoints - by Sarra - 01.08.2014, 10:57
Re: Checkpoints - by Slicebook - 01.08.2014, 11:13
Re: Checkpoints - by Sarra - 01.08.2014, 11:53
Re: Checkpoints - by Konstantinos - 01.08.2014, 12:10
Re: Question about Checkpoints - by davve95 - 02.08.2014, 09:02

Forum Jump:


Users browsing this thread: 1 Guest(s)