Mount Posted October 11, 2005 Share Posted October 11, 2005 Hello, this is my first mta script, and i wanna share it with you Its like the Dodo script in GTA3 U can see who's flying it and if it is at spawn. on *:SIGNAL:mta.disconnect: { !unset %heli1. [ $+ [ $1 ] ] !unset %heli2. [ $+ [ $1 ] ] !unset %heli3. [ $+ [ $1 ] ] !unset %heli4. [ $+ [ $1 ] ] } on *:SIGNAL:mta.enter: { if ($mta.vehicle($1,$2).name == Hunter) { mta.say $1 $+(',$mta.name($1,$2),') has got the Hunter! %heli1. [ $+ [ $1 ] ] = $2 } if ($mta.vehicle($1,$2).name == Maverick) { mta.say $1 $+(',$mta.name($1,$2),') has got the Maverick! %heli2. [ $+ [ $1 ] ] = $2 } if ($mta.vehicle($1,$2).name == Police Maverick) { mta.say $1 $+(',$mta.name($1,$2),') has got the Police Maverick! %heli3. [ $+ [ $1 ] ] = $2 } if ($mta.vehicle($1,$2).name == Sparrow) { mta.say $1 $+(',$mta.name($1,$2),') has got the Sparrow! %heli4. [ $+ [ $1 ] ] = $2 } } on *:SIGNAL:mta.part: { if ($2 == %heli1. [ $+ [ $1 ] ]) { mta.say $1 Hunter is available at spawn. !unset %heli1. [ $+ [ $1 ] ] } if ($2 == %heli2. [ $+ [ $1 ] ]) { mta.say $1 Maverick is available at spawn. !unset %heli2. [ $+ [ $1 ] ] } if ($2 == %heli3. [ $+ [ $1 ] ]) { mta.say $1 Police Maverick is available at spawn. !unset %heli3. [ $+ [ $1 ] ] } if ($2 == %heli4. [ $+ [ $1 ] ]) { mta.say $1 Sparrow is available at spawn. !unset %heli4. [ $+ [ $1 ] ] } } on *:SIGNAL:mta.exit: { if ($2 == %heli1. [ $+ [ $1 ] ]) { mta.say $1 Hunter is available at $+(',$mta.area($1,$2),'.) !unset %heli1. [ $+ [ $1 ] ] } if ($2 == %heli2. [ $+ [ $1 ] ]) { mta.say $1 Maverick is available at $+(',$mta.area($1,$2),'.) !unset %heli2. [ $+ [ $1 ] ] } if ($2 == %heli3. [ $+ [ $1 ] ]) { mta.say $1 Police Maverick is available at $+(',$mta.area($1,$2),'.) !unset %heli3. [ $+ [ $1 ] ] } if ($2 == %heli4. [ $+ [ $1 ] ]) { mta.say $1 Sparrow is available at $+(',$mta.area($1,$2),'.) !unset %heli4. [ $+ [ $1 ] ] } } on *:SIGNAL:mta.kill: { if ($2 == %heli1. [ $+ [ $1 ] ]) { mta.say $1 Hunter is available at spawn. !unset %heli1. [ $+ [ $1 ] ] } if ($2 == %heli2. [ $+ [ $1 ] ]) { mta.say $1 Maverick is available at spawn. !unset %heli2. [ $+ [ $1 ] ] } if ($2 == %heli3. [ $+ [ $1 ] ]) { mta.say $1 Police Maverick is available at spawn. !unset %heli3. [ $+ [ $1 ] ] } if ($2 == %heli4. [ $+ [ $1 ] ]) { mta.say $1 Sparrow is available at spawn. !unset %heli4. [ $+ [ $1 ] ] } } on *:SIGNAL:mta.command: { if ($3 == !heli) { mta.say $1 Hunter: $iif(%heli1. [ $+ [ $1 ] ] != $null,$mta.name($1,$ifmatch),Free!) $+ , Maverick: $iif(%heli2. [ $+ [ $1 ] ] != $null,$mta.name($1,$ifmatch),Free!) $+ , Police Maverick: $iif(%heli3. [ $+ [ $1 ] ] != $null,$mta.name($1,$ifmatch),Free!) Sparrow: $iif(%heli4. [ $+ [ $1 ] ] != $null,$mta.name($1,$ifmatch),Free!) } if ($3 == !info) { mta.say $1 Heli script by Mount! } } Good luck! greetings, Mount Link to comment
{SB}-Killer Posted October 12, 2005 Share Posted October 12, 2005 Hello,this is my first mta script, and i wanna share it with you Its like the Dodo script in GTA3 U can see who's flying it and if it is at spawn. Sorry but i stoped reading when i read ur line "U can see who's flying it and if it is at spawn." Hope u understand what i meant to say. Link to comment
Vicer/Spitfire Posted October 12, 2005 Share Posted October 12, 2005 Killer, don't be an ass This script you have made seems worth looking at. I'll have a try sometime Link to comment
andeh Posted October 12, 2005 Share Posted October 12, 2005 sorry you have done this wrong. A simple while loop in mta.command would be more effective and efficient. Link to comment
{SB}-Killer Posted October 13, 2005 Share Posted October 13, 2005 Killer, don't be an ass This script you have made seems worth looking at. I'll have a try sometime Naa i didnt say much did i? i just wanted to point out what he said "U can see who's flying it and if it is at spawn." Do u understand the meaning of that line or not? If not i will explain in simple english , if u do not . Link to comment
MeanpantheR Posted October 13, 2005 Share Posted October 13, 2005 I think for his first script that rules, i mean mine was a !countdown one that sucked Link to comment
Aeron Posted October 13, 2005 Share Posted October 13, 2005 The mta.part - part is wrong, cause the helicopter doesn't get respawed, it just drops down from the sky. (Well most of the it explodes after it.) And i see alot of things of the dodo script But goign the right way (Y) ! Link to comment
Harry Posted October 15, 2005 Share Posted October 15, 2005 Aeron is jealours of your scripting capabilities! Go on please! Link to comment
Recommended Posts