Challenge
#1

Hello iam making a challenge system i use this from samp wiki

PHP код:
// In this example the player's checkpoint will be set when they spawn.
// On entering the checkpoint they will receive $1000 and the checkpoint will be disabled.
 
new bool:onCheck[MAX_PLAYERS];
 
public 
OnPlayerSpawn(playerid)
{
    
SetPlayerCheckpoint(playerid1982.6150, -220.6680, -0.24323.0);
    
onCheck[playerid] = true;
    return 
1;
}
 
public 
OnPlayerEnterCheckpoint(playerid)
{
    if(
onCheck[playerid]) // if it's true  
    

        
GivePlayerMoney(playerid1000);
        
DisablePlayerCheckpoint(playerid);
        
onCheck[playerid] = false;
    }
    return 
1;

So how to show the checkpoint only for the player who is in the challenge? also if he go to take it how to check that this Checkpoint is for the challenge {Test}?
Reply


Messages In This Thread
Challenge - by Loinal - 07.02.2017, 08:50
Re: Challenge - by kloning1 - 07.02.2017, 09:01
Re: Challenge - by Loinal - 07.02.2017, 09:34
Re: Challenge - by Loinal - 07.02.2017, 10:45

Forum Jump:


Users browsing this thread: 1 Guest(s)