Jump to content

MTAMA Scripting


Si|ent

Recommended Posts

Posted

!writeini -n "gun.ini" $mta.name($1,$3) $mta.weapon($1,$3) $calc($readini(gun.ini,$mta.name($1,$3),$mta.weapon($1,$3))+1)

Can somone fix that to count the kills for a gun?

  • Replies 1.3k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted

nivko... dont u take the hint that no one here wants to help you... esp when u start emailing ppl stupid vb progs to spam the crap outta their computers with msgboxes. Please do everyone a favour and learn some manners, learn some scripting and stop being a class A hole.

Is that too complex for u btw cos if so i can boil it down later if need be.

Posted

mta freak is dutch, like me. i think what he means is: if you don't wanne help, i understand.

but i could be wrong, wouldn't be the first time. :D

Posted

on *:SIGNAL:mta.event: {
 if $readini(weather.ini,main,time) {
   if ($2 == Time && $mta.time($1) < 10:00 ) && $mta.time($1) > 6:00 ) {
mta.say $1 Time locked to day time
     mta.settime $1 10:00
   }
 }

Why is this don't work ??

Posted (edited)

Use a decent editor, parentheses error!

For you in dutch: Je haakjes kloppen voor geen meter... leer tellen.. evenveel ( als ) ...

Use:

if (($2 == Time) && ($mta.time($1) < 10:00)  && ($mta.time($1) > 6:00) ) { 

The rest of the code depends on your own structure, can't say anything about it (except something stupid... but there is allready someone calling stupid things inhere)

Edited by Guest
Posted

ThnX Harry!

In Dutch, i can not good write english: Harry hij doet het maar ik bedoel dat hij tussen 10 uur en 18 uur de tijd niet verandert dus 10 smorgens en 10 savonds en als het bijvoorbeeld 18:01 is dat hij weer terug zet naar 10:00 dus aleen dag tijd.

Posted

i think mtafreak needs his own part of the forum so wen (if) people think about helping him they can :roll:

i dont see the point of him trying to make his own script since he still hasnt learnt anything, JUST USE MTA:mA:GRS! (olis script!)

lol

Posted (edited)

Lol, no thanks i hate GRS, but i have the answer from somone else ;-)

Edit: i don't hate grs. I don't LIKE grs

Edited by Guest
Posted
Lol, no thanks i hate GRS, but i have the answer from somone else ;-)

theres not much u can hate about GRS, its a very good script, but i prefer making my own masterpieces with them :P and making my own.

Posted

heh well GRS is just there for ppl who just want a script that works on their server.. which can be customised... of course ppl can use their own scripts if they want :)

Only prob is that nivko(mtafreak, neils, etc...) cant script, so hes shooting himself in the foot by saying "i hate grs"

Posted

hmm, i found the DB script on aerons site. however it only works for DM mode, and i would like to play it on STUNT. can someone make it compatible for stunt?

Posted

Jani from my reading of the script I think it only involves deleting

      
if ($mta.mode($1) == Stunt) {
       mta.log $1 * DB: Not possible in stunt mode!
     }
     else {

from the script as that is the place where it disables stunt. BTW fellow scripters if I am wrong please correct me

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...