[HELP] How can i make a mission
#1

hello, how can i make a mission? like drive a truck to a checkpoint.
Reply
#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
#3

You created 2 topics, bumped at a early time. Read the rules.
Reply
#4

can u just STFU Lorenc_!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)