WestCoast Posted September 21, 2006 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 The WestCoast Customs
lil Toady Posted September 22, 2006 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 } Do not PM me, im not going to read it anyway.
WestCoast Posted September 22, 2006 Author 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. The WestCoast Customs
lil Toady Posted September 23, 2006 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 Do not PM me, im not going to read it anyway.
WestCoast Posted September 23, 2006 Author 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 The WestCoast Customs
Mania-92 Posted September 23, 2006 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
Squall Posted September 23, 2006 Posted September 23, 2006 jst asking how would u make a sound for the alarm
WestCoast Posted September 23, 2006 Author Posted September 23, 2006 its not with an sound MTA Scripts will show in the MTA Chat Display no one hears sound The WestCoast Customs
MeanpantheR Posted September 23, 2006 Posted September 23, 2006 no. MTA Server Hosting (pm me for details!) VCES / SAES Clan Member - VCES.net
WestCoast Posted September 25, 2006 Author 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? The WestCoast Customs
WestCoast Posted October 5, 2006 Author 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 The WestCoast Customs
Squall Posted October 6, 2006 Posted October 6, 2006 i dont think they like u i will help next time ur on msn
Recommended Posts