Jump to content

MTAMA Scripting


Si|ent

Recommended Posts

He joined on several names in that log, that does not show all names, i couldnt be bothered to search the whole log. He's even told me he has a cracked client after in mIRC.

This has nothing to do with scripts.

can mIRC give on how big a script is ?

I Think it can but im not shure.

Link to comment
  • Replies 1.3k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

I know this might sound n00bish but im new to the whole MTA:MA thing. I was wondering if sum 1 could tell me how to :

1) combine all my commands into 1 .mrc file

2) make me a !details ID script where it says car a player is driving, Health, and if possible the weapon used.

3)If you could make a admin system with ranks but names for each ranks instead of numbers!

Cheers Again,

BJack

(DJ_Dan dont slag me for being a noob lol :D)

Link to comment

Ok, just put all the commands under alias mta.command {

if ($3 == !details) {
 if ($4 == $null) {
   mta.say $1 Name: $mta.name($1,$4) - Vehicle: $mta.vehicle($1,$4).name
    else mta.say $1 Name: $mta.name($1,$2) - Vehicle: $mta.vehicle($1,$2).name
 }
}

[/code]

Link to comment

Shouldn't that be more like this?

alias mta.command {
 if ($3 == !details) { 
   if ($4 == $null) mta.say $1 Name: $mta.name($1,$4) - Vehicle: $mta.vehicle($1,$4).name 
   else mta.say $1 Name: $mta.name($1,$2) - Vehicle: $mta.vehicle($1,$2).name  
 } 
}

Link to comment

Here I am so far

alias mta.command {

if ($3 == !info) {mta.say BJack's Experimental Gaming Script 0.1

}

}

alias mta.command {

if ($3 == !details) {

if ($4 == $null) mta.say $1 Name: $mta.name($1,$4) - Vehicle: $mta.vehicle($1,$4).name

else mta.say $1 Name: $mta.name($1,$2) - Vehicle: $mta.vehicle($1,$2).name

}

}

alias mta.command {

if ($3 == !details) {

mta.say The Current Time in Dublin,London and Lisbon is $time

}

}

ty for dans info script im hoping to build my own admin script onto this, would this be possible??

Link to comment
Here I am so far

alias mta.command {

if ($3 == !info) {mta.say BJack's Experimental Gaming Script 0.1

}

}

alias mta.command {

if ($3 == !details) {

if ($4 == $null) mta.say $1 Name: $mta.name($1,$4) - Vehicle: $mta.vehicle($1,$4).name

else mta.say $1 Name: $mta.name($1,$2) - Vehicle: $mta.vehicle($1,$2).name

}

}

alias mta.command {

if ($3 == !details) {

mta.say The Current Time in Dublin,London and Lisbon is $time

}

}

ty for dans info script im hoping to build my own admin script onto this, would this be possible??

alias mta.command { 
 if ($3 == !info) {
   mta.say BJack's Experimental Gaming Script 0.1
 } 
 if ($3 == !details) { 
   if ($4 == $null) {
     mta.say $1 Name: $mta.name($1,$4) - Vehicle: $mta.vehicle($1,$4).name
   }
   else {
     mta.say $1 Name: $mta.name($1,$2) - Vehicle: $mta.vehicle($1,$2).name  
   }
   mta.say The Current Time in Dublin,London and Lisbon is $time
 } 
}

Link to comment

Hello again. Thanks for the last script you made for me. I have another request now.

The Favorites script in the GRS is it possible to make it so only people with the"secret service" skin and "vice city crusador" skin can use it and change the command to !spy (ID). I hope I've been clear enough. Thanks in advanced.

Boffin

Link to comment

dont you just hate it when you get to a cars spawn, and its not their?

well heres a script to find out where it is

alias mta.enter {
%carentid. [ $+ [ $1 ] $+ . $+ [ $2 ] ] = $Mta.vehicle($1,$2)
}

alias mta.exit {
%carleft. [ $+ [ $1 ] $+ . $+ [ %carentid. [ $+ [ $1 ] $+ . $+ [ $2 ] ] ] ] = $replace($replace($mta.area($1,$2),$chr(32),$chr(44) $+ $chr(32)),-,$chr(32))
}

alias mta.command {
if ($3 == !find) {
%fcarini = 1
:fcarini
if ($4 isin $readini(mta.data.ini,vehicle2,%fcarini)) {
if (%validveh == $null) /set %validveh 0
if ($gettok($mta.vehicle($1,%fcarini).list,1,32) != -1) { 
!.timer 1 $calc(%validveh) mta.msg $1 $2 vehicle $+ %fcarini found, name: $readini(mta.data.ini,vehicle2,%fcarini) $+ , Driver: $mta.name($1,$gettok($mta.vehicle($1,%fcarini).list,1,32)) $+ , Location: $replace($replace($mta.area($1,$gettok($mta.vehicle($1,%fcarini).list,1,32)),$chr(32),$chr(44) $+ $chr(32)),-,$chr(32))
%carfound = true
}
elseif (%carleft. [ $+ [ $1 ] $+ . $+ [ %fcarini ] ] != $null) { 
!.timer 1 $calc(%validveh) mta.msg $1 $2 Last known location of vehicle $+ %fcarini ( $+ $readini(mta.data.ini,vehicle2,%fcarini) $+ ) $+ : %carleft. [ $+ [ $1 ] $+ . $+ [ %fcarini ] ]
%carfound = true
}
/inc %validveh 1
}
if (%fcarini < 80) {
/inc %fcarini 1
goto fcarini
}
elseif (%validveh == $null) !timer 1 0 mta.msg $1 $2 invalid vehicle name!
elseif (%carfound != true) !timer 1 0 mta.msg $1 $2 could not find vehicle!
:cfend
/unset %fcarini
/unset %findid
/unset %findsub
/unset %carfound
/unset %validveh
}
}

DJ-Mills: !find cheet

PM from Admin: Vehicle5 found, name: cheetah, Driver: DJ-Mills, Location: Hangars, Escobar International, Vice City Mainland

PM from Admin: last known loaction of vehicle27 (Police Cheetah): Junk Yard, Vice City Mainland

(any more cars that match the alias "cheet" would be listed here)

----------------------------------------------------------------------------

heres a way to detect health cheats:

(change the %isadmin part to match your admin system)

  alias mta.command {
if ($3- == !chkhp $4 && %isadmin. [ $+ [ $1 ] $+ . $+ [ $2 ] ] == true) { 
 if ($mta.status($1,$4).text == In game) {
  if ($mta.vehicle($1,$4) == 0) {
  !.timer 1 0.1 mta.say $1 checking $mta.name($1,$4) for health cheat.
  !timer 1 1 mta.chkhp $1 $4 $mta.health($1,$4)
  !.timer 1 0.1 mta.slap $1 $4
 }
 else !timer 1 0.1 mta.say $1 $mta.name($1,$4) is in a vehicle, cannot perform check!
 }
}

alias mta.chkhp {

;!timer 1 0.1 mta.say $1 current health: $mta.health($1,$2) previous: $3
if ($mta.health($1,$2) < $3) {
!timer 1 0.1 mta.say $1 $mta.name($1,$2) IS NOT using a health cheat!
}
else { 
!timer 1 0.1 mta.say $1 Banning $mta.name($1,$2) $+ , Reason: Health Cheat detected!
!timer 1 1 mta.ban $1 $2 CHKHP: Health cheat
}
}

DJ-Mills: !chkhp 0

Admin slaps DJ-Mills.

Link to comment

by oli's and aeron's admin system is this don't work

if ($3 == !add) {
       mta.say $1 $5 Rights Given to $4
       !writeini $+(",$nofile($script(mta.mrc)),$1.ini,") $1 level $5
     }
     if ($3 == !remove) {
       mta.say $1 Removed Rights from $4
       remini $+(",$nofile($script(mta.mrc)),$1.ini,") $1 level $5
     }

can someone fix that to

!add Nickname Level

!remove Nickname

Link to comment

alias mta.command {

if ($3 == !server) {

mta.say $1 BJack's Experimental Gaming Script 0.1

}

if ($3 == !details) {

if ($4 == $null) {

mta.say $1 Name: $mta.name($1,$4) - Vehicle: $mta.vehicle($1,$4).name

}

else {

mta.say $1 Name: $mta.name($1,$2) - Vehicle: $mta.vehicle($1,$2).name

}

}

if ($3 == !time) {

mta.say $1 The Current Time in your Timezone is $ctime, However the time in the GMT zone is $gmt

It is $day the $date

}

}

wud that be ok for the time section

Link to comment
$ctime

Returns total number of seconds elapsed since 00:00:00 GMT, January 1, 1970 based on your system time.

I don't think that'll show their current time...

also do you use notepad for making scripts? you should use the mIRC script editor (press alt + r twice) as it formats it nicely and checks for bracket mismatches.

Link to comment

Thought Id Add a Script due to not adding them for a While

if ($3 == !quote) {
   !writeini "quotes.ini" quote 1 I Like Pepperoni Pizza
   !writeini "quotes.ini" quote 2 Why does Rain Suddenly Appear
   !writeini "quotes.ini" quote 4 TLR Rule
   !writeini "quotes.ini" quote 5 TLR Are The Best
   !writeini "quotes.ini" quote 6 Take My Breath Away
 } 
 set %quote $rand(1,6)
 mta.say $1 Quote> $readini(quotes.ini,quote,%quote)

}

any Problems Let Me Know Im sure u can work it out

Link to comment
Thought Id Add a Script due to not adding them for a While

if ($3 == !quote) {
   !writeini "quotes.ini" quote 1 I Like Pepperoni Pizza
   !writeini "quotes.ini" quote 2 Why does Rain Suddenly Appear
   !writeini "quotes.ini" quote 4 TLR Rule
   !writeini "quotes.ini" quote 5 TLR Are The Best
   !writeini "quotes.ini" quote 6 Take My Breath Away
 } 
 set %quote $rand(1,6)
 mta.say $1 Quote> $readini(quotes.ini,quote,%quote)

}

any Problems Let Me Know Im sure u can work it out

if ($3 == !quote) {
    writeini "quotes.ini" quote 1 I Like Pepperoni Pizza
    writeini "quotes.ini" quote 2 Why does Rain Suddenly Appear
    writeini "quotes.ini" quote 3 TLR Rule
    writeini "quotes.ini" quote 4 TLR Are The Best
    writeini "quotes.ini" quote 5 Take My Breath Away
    set %quote $rand(1,5)
    mta.say $1 Quote> $readini(quotes.ini,quote,%quote)
}


:D

Link to comment

ouch writing ini every time u do !quote...

if ($3 == !quote) { 
 if !$exists($mta.dir $+ quotes.ini) {
   !writeini "$mta.dir $+ quotes.ini" quote 1 I Like Pepperoni Pizza 
   !writeini "$mta.dir $+ quotes.ini" quote 2 Why does Rain Suddenly Appear 
   !writeini "$mta.dir $+ quotes.ini" quote 3 TLR Rule 
   !writeini "$mta.dir $+ quotes.ini" quote 4 TLR Are The Best 
   !writeini "$mta.dir $+ quotes.ini" quote 5 Take My Breath Away 
 }
 mta.say $1 Quote> $readini(quotes.ini,quote,$rand(1,5)) 
} 

:)

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

    • No registered users viewing this page.

×
×
  • Create New...