SA-MP Forums Archive
Creating missions - 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)
+--- Thread: Creating missions (/showthread.php?tid=336743)



Creating missions - tyler12 - 23.04.2012

How can i create missions like for each vehice like in firecats trucking script
PHP код:
enum missioninfo
{
    
Pay,
    
Mtext[200],
    
Checkpoint,
    
CheckpointID,
    
Float:Lastx,
    
Float:Lasty,
    
Float:Lastz,
     
TrailerID,
     
bool:AllowTrailerCheck,
     
TrailerCheckCount

PHP код:
enum Trailer1 //Model 435
{
    
MissionName[200],
    
Text[200],
    
bool:UseTrailerCheck,
    
MissionPay,
    
Float:loadx,
    
Float:loady,
    
Float:loadz,
    
Float:unloadx,
    
Float:unloady,
    
Float:unloadz,

PHP код:
new Trailer1Missions[][Trailer1] =
{
    
// {"Mission Text", UseTrailerCheck, MissionPay, loadx, loady, loadz, unloadx, unloady, unloadz,message to send to all when the player has delivered}
    /* KEY:
    ** "Mission Text" = The text the player will see when he/she is doing the mission!
    ** UseTrailerCheck = Weather or not the mission requires you use a vehile that has a trailer. Ex: Roadtrain with an Artict1 trailer!
    ** MissionPay = The amount the player will recive for doing there mission!
    ** loadx, loady, and loadz = The loading coordinates of the loading checkpoint!
    ** unloadx, unloadx, unloadx = The un-loading coordinates of the unloading checkpoint!
    enum missioninfo
    */
    
{"Tuff nut donuts have to be taken to LSPD in Los Santos.","has delivered some donuts to LSPD!",false4500, -2765.0977,766.0363,52.78131536.8346,-1671.5787,13.3828},
    {
"Some vegetables have to be taken from Randolph Industrial to LS Farms","has delivered vegetables from Randolph Industrial to LS Farms",false,3750,1721.2209,732.8987,10.8203,40.6678,-290.4606,1.9875},
    {
"Some food has to be taken from LS Farms to Angel Pine village","has delivered food from LS Farms to Angel Pine Village",false,8500,40.6678,-290.4606,1.9875,-2218.4490,-2326.2944,30.6250},
    {
"Some food has to be taken from Red County to Cluckin' Bell in San Fierro","has delivered food from Red County to Cluckin' Bell in San Fierro",false,6750,-536.2813,-540.1410,25.5234,-2682.9829,235.3971,4.3359}
}; 
thahnks?


Re: Creating missions - tyler12 - 02.05.2012

bump


Re: Creating missions - tyler12 - 04.05.2012

bump..

EDIT: Sorry for posting 2 hours and 25 minutes early..


Re: Creating missions - tyler12 - 07.05.2012

Bump

Giving rep!


Re: Creating missions - HDFord - 07.05.2012

PM with more information and i'll help you in 1-1/2 hours