WestCoast Posted September 21, 2006 Share Posted September 21, 2006 I Need Some Help With The Car Alarm Script. I have wrote a bit, but i dont know what to do next. I Already Wrote This: on *:SIGNAL:mta.command: { if ($3 == !alarm) $$ ($4 == on) { mta.say $1 Alarm Activated } on *:SIGNAL:mta.enter: { .timercarkill $+ $2 1 5 mta.kill $1 $2 } on *:SIGNAL:mta.exit { .timercarkill $+ $2 off } Plz. can anyone help me. Thnx WestCoast Link to comment
lil Toady Posted September 22, 2006 Share Posted September 22, 2006 on *:SIGNAL:mta.command: { if ($3 == !alarm) { if ($4 == on) { mta.say $1 Alarm Activated !writeini " $+ $scriptdir $+ alarm.ini" alarm alarm on } elseif ($4 == off) { mta.say $1 Alarm Deactivated !remini " $+ $scriptdir $+ alarm.ini" alarm alarm } } } on *:SIGNAL:mta.exit { if ($readini($scriptdir $+ alarm.ini,alarm,alarm) == on) .timer 5 0 mta.slap $1 $2 } Link to comment
WestCoast Posted September 22, 2006 Author Share Posted September 22, 2006 Hi Toady Thnx For The Script. but when i type !alarm on. and when i enter a car i get killed lol its on all cars. i realy want that: if someone enters a car that it says mta.msg $1 $2 You got 5 seconds to get out or you die. and its only activated on 1 car. cause when i enter a car (every car) i die lol. plz help me. Link to comment
lil Toady Posted September 23, 2006 Share Posted September 23, 2006 on *:SIGNAL:mta.command: { if ($3 == !alarm) { if (($mta.vehicle($1,$2).name == foot) || ($mta.vehicle($1,$2).name == Unknown)) mta.msg $1 $2 Error - you need to be in a car elseif ($4 == on) { mta.say $1 Alarm Activated !writeini " $+ $scriptdir $+ alarm.ini" alarm $mta.vehicle($1,$2) on } } } on *:SIGNAL:mta.enter:{ if ($readini($scriptdir $+ alarm.ini,alarm,$mta.vehicle($1,$2)) == on) { mta.msg $1 $2 You got 5 seconds to get out of the car or you'll die $+(.timer,$1,.,$2) 1 5 bla.kill $1 $2 } } on *:SIGNAL:mta.exit { $+(.timer,$1,.,$2) off } alias bla.kill .timer 5 0 mta.slap $1 $2 get in a car and type !alarm on Link to comment
WestCoast Posted September 23, 2006 Author Share Posted September 23, 2006 Thank You Very Much. But only 1 thing sorry: i cant turn the alarm off srry but i only need this anyway ty very much Link to comment
Mania-92 Posted September 23, 2006 Share Posted September 23, 2006 on *:SIGNAL:mta.command: { if ($3 == !alarm) { if (($mta.vehicle($1,$2).name == foot) || ($mta.vehicle($1,$2).name == Unknown)) mta.msg $1 $2 Error - you need to be in a car elseif ($4 == on) { mta.say $1 Alarm Activated !writeini " $+ $scriptdir $+ alarm.ini" alarm $mta.vehicle($1,$2) on } elseif ($4 == off) { mta.say $1 Alarm DeActivated !writeini " $+ $scriptdir $+ alarm.ini" alarm $mta.vehicle($1,$2) off } } } on *:SIGNAL:mta.enter:{ if ($readini($scriptdir $+ alarm.ini,alarm,$mta.vehicle($1,$2)) == on) { mta.msg $1 $2 You got 5 seconds to get out of the car or you'll die $+(.timer,$1,.,$2) 1 5 bla.kill $1 $2 } } on *:SIGNAL:mta.exit { $+(.timer,$1,.,$2) off } alias bla.kill .timer 5 0 mta.slap $1 $2 Here you go Link to comment
Squall Posted September 23, 2006 Share Posted September 23, 2006 jst asking how would u make a sound for the alarm Link to comment
WestCoast Posted September 23, 2006 Author Share Posted September 23, 2006 its not with an sound MTA Scripts will show in the MTA Chat Display no one hears sound Link to comment
Squall Posted September 23, 2006 Share Posted September 23, 2006 i no that but could you put sound on it? Link to comment
WestCoast Posted September 25, 2006 Author Share Posted September 25, 2006 Hi Its Me Again Sorry. Is There A Script That Only The Guy/Girl Who Activates The Alarm He Can Only DeActivate It. And That If Someone Turns The Alarm On (In Car) That He Can DeActivate It (Out The Car) Cuz If I Use !Alarm On And Get In The Car It Slaps Me. Thats Why. I Just Edited The Script With Only 1 Slap. on *:SIGNAL:mta.command: { if ($3 == !alarm) { if (($mta.vehicle($1,$2).name == foot) || ($mta.vehicle($1,$2).name == Unknown)) mta.msg $1 $2 Error - you need to be in a car elseif ($4 == on) { mta.say $1 Car Alarm Activated !writeini " $+ $scriptdir $+ alarm.ini" alarm $mta.vehicle($1,$2) on } elseif ($4 == off) { mta.say $1 Car Alarm DeActivated !writeini " $+ $scriptdir $+ alarm.ini" alarm $mta.vehicle($1,$2) off } } } on *:SIGNAL:mta.enter:{ if ($readini($scriptdir $+ alarm.ini,alarm,$mta.vehicle($1,$2)) == on) { mta.say $1 $mta.name($1,$2) Has Triggered An Car Alarm $+(.timer,$1,.,$2) 1 1 bla.kill $1 $2 } } on *:SIGNAL:mta.exit: { $+(.timer,$1,.,$2) off } alias bla.kill .timer 1 0 mta.slap $1 $2 Can Any One Help Me? Link to comment
WestCoast Posted October 5, 2006 Author Share Posted October 5, 2006 So Can Anyone Still Help Me Plz I'm Waiting 5 Days For It Lol. I Need Just A Bit Help So Can Someone Plz Help Me Thnx WestCoast Link to comment
Squall Posted October 6, 2006 Share Posted October 6, 2006 i dont think they like u i will help next time ur on msn Link to comment
Recommended Posts