[HELP] How can i make a mission
#2

Like this ?

pawn Код:
// Top of your script
new
    Mission [ MAX_PLAYERS ];

// OnPlayerConnect / Disconnect
Mission [ playerid ] = 0;

// Bottom of script
// NOTE: I use ZCMD

COMMAND:startmission ( playerid, params [ ] )
{
    if ( Mission [ playerid ] == 0 )
    {
        if ( IsPlayerInVehicle ( playerid, * ) ) // * = The vehicle ID
        {
            Mission [ playerid ] = 1;
            SetPlayerCheckpoint ( playerid, x, y, z );
        }
        else
        {
             // message error like " you are not in a truck
        }
   }
   else
   {
        // message error like " you are already in a mission
   }
}

// OnPlayerEnterCheckpoint
if ( Mission [ playerid ] == 1 )
{
    // REWARD
    Mission [ playerid ] = 0;
    return 1;
}
Accidently pressed enter before finishing....
Reply


Messages In This Thread
[HELP] How can i make a mission - by olabv - 19.12.2010, 23:46
Re: [HELP] How can i make a mission - by Basicz - 20.12.2010, 01:09
Re: [HELP] How can i make a mission - by Lorenc_ - 20.12.2010, 01:31
Re: [HELP] How can i make a mission - by olabv - 20.12.2010, 15:06

Forum Jump:


Users browsing this thread: 1 Guest(s)