(OVG)Santi Posted September 22, 2006 Share Posted September 22, 2006 Where to study MTA:mA porgraming in my hoause for mta:sa? Link to comment
CoZ Posted September 22, 2006 Share Posted September 22, 2006 well ... its just a matter of knowing how to program in the first place then knowing all mta specific commands you can use (because of what is in mta:ma) in your script - and there should be a nice scripting.html (this for SA) file to guide you that readme is a bit odd formatted imho if you dont know scripting too well but but basically this is a example script of course its also possible to use buildin mirc script variables etc besides the mta specific ones on *:SIGNAL:mta.text:{ if (hello isin $3-) { mta.text $1 Automessage: Hello world } } on *:SIGNAL:mta.command: { ;Parameters: ;$1 = Server ;$2 = ID ;$3 = Command ;$4- = Parameters if ($3 == !currentmap) { mta.text $1 Currentmap: $mta.race(1) } elseif ($3 == !testme) { mta.pm $1 $2 Test completed } } note how there are two major blocks of code in this example these blocks are called EVENTS on *:SIGNAL:mta.text:{ } and on *:SIGNAL:mta.command: { } inside these the first EVENT on *:SIGNAL:mta.text:{ } the script responds on general typed text in the second block on *:SIGNAL:mta.command: { } the script responds to specific commands.. commands prefixed by a exclamation mark note how you always should mind the { } 's on *:SIGNAL:mta.command: { if (!command == $3 ) { do this } elseif { do that } } Link to comment
(OVG)Santi Posted September 24, 2006 Author Share Posted September 24, 2006 What in the link say the command for see to the console but i need where i can study programing in mIRC no schools, i need web sites where i can go read and learn thanks you. Link to comment
Mr.hankeyeye Posted September 24, 2006 Share Posted September 24, 2006 i'd say google is your man Link to comment
CoZ Posted September 24, 2006 Share Posted September 24, 2006 try pressing f1 in script editor try googling on mirc script read a few and get the feel for it also .. learn some english i tried to read your question 5 times , but .. what the f*ck are you saying ??? What in the link say the command for see to the console Link to comment
Mr.hankeyeye Posted September 24, 2006 Share Posted September 24, 2006 i think he wants to know what to type to view commands in console i think Link to comment
CoZ Posted September 24, 2006 Share Posted September 24, 2006 the mta ingame console has some builtin commands ( type help ) so unless you made some script commands already and a command to show the script commands you can only see the normal console commands so if i need to expand my example with a command to show the current commands on *:SIGNAL:mta.text:{ if (hello isin $3-) { mta.text $1 Automessage: Hello world } } on *:SIGNAL:mta.command: { ;Parameters: ;$1 = Server ;$2 = ID ;$3 = Command ;$4- = Parameters if ($3 == !currentmap) { mta.text $1 Currentmap: $mta.race(1) } elseif ($3 == !testme) { mta.pm $1 $2 Test completed } elseif ($3 == !commands) { mta.pm $1 $2 Current Usable script commands : mta.pm $1 $2 !commands, !testme, !currentmap, hello } } Link to comment
Recommended Posts