[HELP] How can i make a mission - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] How can i make a mission (
/showthread.php?tid=200990)
[HELP] How can i make a mission -
olabv - 19.12.2010
hello, how can i make a mission? like drive a truck to a checkpoint.
Re: [HELP] How can i make a mission -
Basicz - 20.12.2010
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....
Re: [HELP] How can i make a mission -
Lorenc_ - 20.12.2010
You created 2 topics, bumped at a early time. Read the rules.
Re: [HELP] How can i make a mission -
olabv - 20.12.2010
can u just STFU Lorenc_!