Jump to content

Job Start


Recommended Posts

Hi all i made a job script but 1 thing wont work..

If the job is done it have to write it to a file .

And if he try again to play the job it says: Job is already done.

Can some 1 make that for me ?

Here is my code:

on *:SIGNAL:mta.command:{
elseif $3 == !job
if $rpg.area($1,$2) == Malibu-Club {
mta.msg $1 $2 Job Completed. You got 987 ! 
!writeini -n " $+ $rpg.dir $+ rpg.ini" $mta.name($1,$2) cash 987
         }
         else mta.msg $1 $2 Go to the Malibu-Club In Whasington Beach !
         }

Thanks,

Robbin237

Link to comment

I m still new to mirc scripting but i would use this:

on *:SIGNAL:mta.command:{

if $3 == !job {

if $rpg.area($1,$2) == Malibu-Club {

if ($readini($scriptdir $+ Job.ini,n,Malibu,Mission1Done)) == 0 {

mta.msg $1 $2 Job Completed. You Got 987 !

!writeini -n $+(",$scriptdir,Job.ini,") Malibu Mission1Done 1

}

else {

mta.msg $1 $2 Job Allready Done!

}

}

}

}

But u should Mark PlayerIsInMission and PlayerMoney. The way you use seems to be unlogic.. ;)

//Edit: Code updated

Edited by Guest
Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...