Niels Posted January 25, 2005 Share Posted January 25, 2005 if ($3 == !clanban) { if ($4 != $null) { %a = 0 while (%a < $mta.maxplayers($1)) { if ($4 isin $mta.name($1,%a)) { if ($5 == $null) mta.say $1 All members of clan $4 are banned. else mta.say $1 All members of clan $4 are banned, Reason: $5- writeini "shitlist.ini" Clanban clan $4 ;<-- What edit my here? mta.ban $1 %a } inc %a 1 } unset %a } else mta.say $1 $mta.name($1,$2) Syntax: !clanban } Link to comment
Shib Posted January 25, 2005 Share Posted January 25, 2005 What? You post a random script with no explanation of what you want done or anything... Link to comment
Mike Posted January 25, 2005 Share Posted January 25, 2005 writeini "shitlist.ini" Clanban clan $+ $calc($ini(shitlist.ini,clanban,0) + 1) $4 I think... Link to comment
Gareth Posted January 25, 2005 Share Posted January 25, 2005 im having problems making a carn0b script for GTA3:MTA to autokick them as when i autokick for vehicle kills it kicks the person nearest the death and not the driver id really appreciate help with this Link to comment
Guest Posted January 25, 2005 Share Posted January 25, 2005 Advanced Ban Scripts alias mta.findid { var %a = 0 while (%a <= $readini($mta.dir $+ mta.ini,$1,max)) { if $2 isnum { if $mta.name($1,$2) != Unknown { !return $2 } else { var %b = 0 while %b <= $readini($mta.dir $+ mta.ini,$1,max) { if ($+(*,$2,*) iswm $readini($mta.dir $+ $1.ini,ID $+ %b,name)) !return %b !inc %b } !return -1 } } elseif ($+(*,$2,*) iswm $readini($mta.dir $+ $1.ini,ID $+ %a,name)) !return %a !inc %a } !return -1 } on *:SIGNAL:mta.command: { var %b = $iif($4 == $null,$2,$mta.findid($1,$4))) elseif $3 == !ban { if $2 == %b mta.msg $1 $2 Error - You cannot ban you else { if %b == -1 mta.say $1 Error - Invalid ID else { mta.say $1 $+(',$mta.name($1,%b),') is banned by admin $+(',$mta.name($1,$2),':) $iif($5,$5-,No reason.) !writeini -n "MTAbans.ini" banreasons $mta.name($1,%b) $5- $date $time $mta.name($1,$2) !writeini -n "MTAbans.ini" bannedip $mta.name($1,%b) $mta.ip($1,%b) $date $time $mta.name($1,$2) !writeini -n "MTAbans.ini" main $mta.name($1,%b) 4 !writeini -n "data.ini" ip $gettok($mta.ip($1,$2),1-2,46) $mta.name($1,%b) mta.ban $1 %b } } elseif $3 == !blacklist { if %b == -1 mta.say $1 Error - Invalid ID else mta.say $1 $mta.name($1,%b) - Added to the Blacklist !writeini -n "blacklist.ini" $mta.name($1,%b) $mta.ip($1,%b) 1 !writeini -n "blacklist.ini" $mta.name($1,%b) $mta.name($1,%b) 1 !writeini -n "blacklist.ini" $mta.name($1,%b) $gettok($mta.ip($1,$2),1-2,46) 1 mta.ban $1 %b } } } } on *:SIGNAL:mta.join: { if ($gettok($mta.ip($1,$2),1-2,46)) && $readini(data.ini,shortip,$gettok($mta.ip($1,$2),1-2,46)) { mta.say $1 Warning: $mta.name($1,$2) - First 2 ip groups match $readini(data.ini,ip,$gettok($mta.ip($1,$2),1-2,46)), who was banned. $+ } if ($readini(blacklist.ini,$mta.name($1,$2),$mta.ip($1,$2)) == 1) { mta.say $1 $mta.name($1,$2) Reason: Blacklisted mta.ban $1 $2 } if ($readini(blacklist.ini,$mta.name($1,$2),$mta.name($1,$2)) == 1) { mta.say $1 $mta.name($1,$2) Reason: Blacklisted mta.ban $1 $2 } if ($readini(blacklist.ini,$mta.name($1,$2),$gettok($mta.ip($1,$2),1-2,46)) == 1) { mta.say $1 $mta.name($1,$2) Reason: Blacklisted mta.ban $1 $2 } } Link to comment
Jani Posted January 25, 2005 Share Posted January 25, 2005 nice, thats an awesome script Link to comment
Gareth Posted January 25, 2005 Share Posted January 25, 2005 Advanced Ban Scripts alias mta.findid { var %a = 0 while (%a <= $readini($mta.dir $+ mta.ini,$1,max)) { if $2 isnum { if $mta.name($1,$2) != Unknown { !return $2 } else { var %b = 0 while %b <= $readini($mta.dir $+ mta.ini,$1,max) { if ($+(*,$2,*) iswm $readini($mta.dir $+ $1.ini,ID $+ %b,name)) !return %b !inc %b } !return -1 } } elseif ($+(*,$2,*) iswm $readini($mta.dir $+ $1.ini,ID $+ %a,name)) !return %a !inc %a } !return -1 } on *:SIGNAL:mta.command: { var %b = $iif($4 == $null,$2,$mta.findid($1,$4))) elseif $3 == !ban { if $2 == %b mta.msg $1 $2 Error - You cannot ban you else { if %b == -1 mta.say $1 Error - Invalid ID else { mta.say $1 $+(',$mta.name($1,%b),') is banned by admin $+(',$mta.name($1,$2),':) $iif($5,$5-,No reason.) !writeini -n "MTAbans.ini" banreasons $mta.name($1,%b) $5- $date $time $mta.name($1,$2) !writeini -n "MTAbans.ini" bannedip $mta.name($1,%b) $mta.ip($1,%b) $date $time $mta.name($1,$2) !writeini -n "MTAbans.ini" main $mta.name($1,%b) 4 !writeini -n "data.ini" ip $gettok($mta.ip($1,$2),1-2,46) $mta.name($1,%b) mta.ban $1 %b } } elseif $3 == !blacklist { if %b == -1 mta.say $1 Error - Invalid ID else mta.say $1 $mta.name($1,%b) - Added to the Blacklist !writeini -n "blacklist.ini" $mta.name($1,%b) $mta.ip($1,%b) 1 !writeini -n "blacklist.ini" $mta.name($1,%b) $mta.name($1,%b) 1 !writeini -n "blacklist.ini" $mta.name($1,%b) $gettok($mta.ip($1,$2),1-2,46) 1 mta.ban $1 %b } } } } on *:SIGNAL:mta.join: { if ($gettok($mta.ip($1,$2),1-2,46)) && $readini(data.ini,shortip,$gettok($mta.ip($1,$2),1-2,46)) { mta.say $1 Warning: $mta.name($1,$2) - First 2 ip groups match $readini(data.ini,ip,$gettok($mta.ip($1,$2),1-2,46)), who was banned. $+ } if ($readini(blacklist.ini,$mta.name($1,$2),$mta.ip($1,$2)) == 1) { mta.say $1 $mta.name($1,$2) Reason: Blacklisted mta.ban $1 $2 } if ($readini(blacklist.ini,$mta.name($1,$2),$mta.name($1,$2)) == 1) { mta.say $1 $mta.name($1,$2) Reason: Blacklisted mta.ban $1 $2 } if ($readini(blacklist.ini,$mta.name($1,$2),$gettok($mta.ip($1,$2),1-2,46)) == 1) { mta.say $1 $mta.name($1,$2) Reason: Blacklisted mta.ban $1 $2 } } that has nothing to do with autokicking carn00bs straight when they carn0b sum1. I know how to do that Link to comment
Guest Posted January 25, 2005 Share Posted January 25, 2005 For you Jakkass on *:SIGNAL:mta.command:{ elseif $3 == !carkill { if $4 == on { !writeini "options.ini" main carkick 1 mta.say $1 Carkill Kicker set to ' $+ $4 $+ ' by ' $+ $mta.name($1,$2) $+ ' } if $4 == off { !writeini "options.ini" main carkick 0 mta.say $1 Carkill Kicker set to ' $+ $4 $+ ' by ' $+ $mta.name($1,$2) $+ ' } } } on *:SIGNAL:mta.kill:{ if ($readini(options.ini,main,carkick) == 1) { if $mta.game($1) == GTA:VC && $4 == 39 && $ini($mta.dir $+ $1.ini,ID $+ $3) { mta.say $1 Kicking $+(',$mta.name($1,$3),') for Car Killing. mta.kick $1 $3 } } } Link to comment
Guest Posted January 25, 2005 Share Posted January 25, 2005 For GTA3 on *:SIGNAL:mta.command:{ elseif $3 == !carkill { if $4 == on { !writeini "options.ini" main carkick 1 mta.say $1 Carkill Kicker set to ' $+ $4 $+ ' by ' $+ $mta.name($1,$2) $+ ' } if $4 == off { !writeini "options.ini" main carkick 0 mta.say $1 Carkill Kicker set to ' $+ $4 $+ ' by ' $+ $mta.name($1,$2) $+ ' } } } on *:SIGNAL:mta.kill:{ if ($readini(options.ini,main,carkick) == 1) { if $mta.game($1) == GTA3 && $4 == 39 && $ini($mta.dir $+ $1.ini,ID $+ $3) { mta.say $1 Kicking $+(',$mta.name($1,$3),') for Car Killing. mta.kick $1 $3 } } } Link to comment
Mike Posted January 25, 2005 Share Posted January 25, 2005 It's not that simple, GTA3 never gives the credit to the person in the car; it gives it to a person nearby on foot or no-one. Link to comment
XcR Posted January 25, 2005 Share Posted January 25, 2005 yeah anyway to bypass that? Link to comment
Mike Posted January 25, 2005 Share Posted January 25, 2005 I suppose one way to do it would be to work out the nearest person to the person who died who is in a car but i don't think it would work amazingly Link to comment
Gareth Posted January 25, 2005 Share Posted January 25, 2005 arg this wud be so essential to kneedle out the lil assholes Link to comment
Oli Posted January 25, 2005 Share Posted January 25, 2005 i suppose i could add that to grs... well i can see how well it works anyways Link to comment
Guest Posted January 25, 2005 Share Posted January 25, 2005 I can resolv your problem.... Play on Vice City Link to comment
Mike Posted January 25, 2005 Share Posted January 25, 2005 I can resolv your problem....Play on Vice City But the problem is.... GTA3 > VC Link to comment
Gareth Posted January 25, 2005 Share Posted January 25, 2005 i suppose i could add that to grs... well i can see how well it works anyways it wud be nice if u cud post it here as i need it for a script project of my own Link to comment
Guest Posted January 25, 2005 Share Posted January 25, 2005 i suppose i could add that to grs... well i can see how well it works anyways Add my Advanced Ban Scripts too :P Jakkas, You know MTA:LC ( Multi Theft Auto Liberty City Mod ) ? You can play all the map, and the car of GTA3 as change to car of Vice City.... Try It Link to comment
Gareth Posted January 25, 2005 Share Posted January 25, 2005 it is illegal to use 3rd party modifications with MTA till blue so dont use MTA:LC. and i have a decent ban system atm i need an auto carn0b kicker Link to comment
Jani Posted January 26, 2005 Share Posted January 26, 2005 I can resolv your problem....Play on Vice City But the problem is.... GTA3 > VC SA > VC > III Link to comment
Harry Posted January 26, 2005 Share Posted January 26, 2005 I can resolv your problem....Play on Vice City But the problem is.... GTA3 > VC SA > VC > III WTF has this to do with MTAMA Scripting? Ergo: STFU Link to comment
MeanpantheR Posted January 26, 2005 Share Posted January 26, 2005 For GTA3 on *:SIGNAL:mta.command:{ elseif $3 == !carkill { if $4 == on { !writeini "options.ini" main carkick 1 mta.say $1 Carkill Kicker set to ' $+ $4 $+ ' by ' $+ $mta.name($1,$2) $+ ' } if $4 == off { !writeini "options.ini" main carkick 0 mta.say $1 Carkill Kicker set to ' $+ $4 $+ ' by ' $+ $mta.name($1,$2) $+ ' } } } i like the elseif at the start of mta.command Link to comment
Gareth Posted January 26, 2005 Share Posted January 26, 2005 finally a man of wisdom lol puddy help me lol Link to comment
Recommended Posts