02.08.2014, 09:02
Quote:
|
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,
|
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");
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.


