DJDenz Posted May 5, 2005 Posted May 5, 2005 this is mine for !car } var %a = $iif($4 != $null,$iif($ini($mta.dir $+ $1.ini,ID $+ $4),$4,$mta.getid($1,$4)),$2) if ($3 == !car) { if (%a != -1) mta.say $1 $mta.name($1,%a) is in/on a $mta.vehicle($1,%a).name with $mta.health($1,%a).vehicle) $+ % damage else mta.msg $1 $2 Error - Invalid ID } } } Put it under: on *:SIGNAL:mta.command:{
DJDenz Posted May 5, 2005 Posted May 5, 2005 U need this? on *:SIGNAL:mta.pm:{ if ($3 == gw) { if ($mta.level($1,$2) >= $readini(gw-password.ini,gw $+ $1,level)) { if ($4 == on) { if ($5) { !writeini gw-password.ini gw $+ $1 password $5 !writeini gw-password.ini gw $+ $1 status on mta.say $1 Gangwar passwording activated. } else $mta.msg $1 $2 You must specify a password. } elseif ($4 == off) { !writeini gw-password.ini gw $+ $1 status off mta.say $1 Gangwar passwording deactivated. } } if (($4 == login) && ($readini(gw-password.ini,gw $+ $1,status) == on) { if ($5 == $readini(gw-password.ini,gw $+ $1,password)) { !.timerGW. $+ $1 $+ . $+ $2 off mta.msg $1 $2 Correct password, you are logged in. } else mta.msg $1 $2 Incorrect password. } } } on *:SIGNAL:mta.join:{ if ($readini(gw-password.ini,gw $+ $1,status) == on) { mta.msg $1 $2 This server is passworded for a gangwar. Do /msg gw login to login. [30 secs] !.timerGW. $+ $1 $+ . $+ $2 1 30 mta.kick $1 $2 } } on *:SIGNAL:mta.part:{ if ($timer(GW. $+ $2).type == online) { !.timerGW. $+ $1 $+ . $+ $2 off } } on *:SIGNAL:mta.command:{ if (($3 == !setgw) && ($mta.level($1,$2) == 5)) { if (($4) && ($4 isnum)) { !writeini gw-passworded.ini gw $+ $1 level $4 mta.say $1 The level for passwording the server is now " $+ $4 $+ " } else mta.say $1 You must specify a valid level. } } Commands: /msg gw on /msg gw off /msg gw login !setgw
Slothman Posted May 5, 2005 Posted May 5, 2005 instead of asking all these questions, why don't you simply use grs? Check out my recent work: ZDay - a zombie script Slothbot - an AI deathmatch bot my community profile (all my resources)
XcR Posted May 5, 2005 Posted May 5, 2005 on *:SIGNAL:mta.command:{ if $3 == !gw { mta.setweather $1 0 | mta.settime 10:00 } }
catman Posted May 5, 2005 Author Posted May 5, 2005 Thanks hey Djdenz what did you mean by your gw? THANKS XCR and anyone have the !slap and !kill command?
MrJax Posted May 5, 2005 Posted May 5, 2005 if ($3 == !slap) mta.slap $1 %a elseif ($3 == !kill) !.timer 5 0 mta.slap $1 %a
catman Posted May 5, 2005 Author Posted May 5, 2005 Can you make it so you have to be level 3 or above to use !slap and !kill
kevuwk Posted May 5, 2005 Posted May 5, 2005 if (($3 == !slap) && (level > 3)) mta.slap $1 %a obviously you would have to read inis or however you get the level to know what their level is Kevuwk Any comments made are purely my own and do not represent the interests of the MTA Team
andeh Posted May 5, 2005 Posted May 5, 2005 if ($3 == !slap) mta.slap $1 %a elseif ($3 == !kill) !.timer 5 0 mta.slap $1 %a don't you need to set the varible %a????
kevuwk Posted May 5, 2005 Posted May 5, 2005 var %a = $iif($4 != $null,$iif($ini($mta.dir $+ $1.ini,ID $+ $4),$4,$mta.getid($1,$4)),$2) Kevuwk Any comments made are purely my own and do not represent the interests of the MTA Team
Oli Posted May 5, 2005 Posted May 5, 2005 if ure using grs.. use $mta.level($1,%a) Proud member of Multi Theft Auto Founder of Full Metal Jacket Creator of MTA:mA:GRS http://www.mtafmj.com http://www.full-fat.com
[TMG]Energy Posted May 9, 2005 Posted May 9, 2005 Slap: mta.say $1 /slap $mta.name($1,$2) what do you mean with !kill?
Recommended Posts