DJScripts Posted March 31, 2007 Posted March 31, 2007 (edited) Hi i dj and i need some help to get the following commands work on PRS alias prs.warnings2 !return $iif($readini($scriptdir $+ warnings2.ini,WARNINGS,$mta.nick($1,$2)),$v1,0) alias prs.warnings3 !return $iif($readini($scriptdir $+ warnings3.ini,WARNINGS,$mta.nick($1,$2)),$v1,0) alias prs.warnings4 !return $iif($readini($scriptdir $+ warnings4.ini,WARNINGS,$mta.nick($1,$2)),$v1,0) alias prs.warnings5 !return $iif($readini($scriptdir $+ warnings5.ini,WARNINGS,$mta.nick($1,$2)),$v1,0) alias prs.warnings6 !return $iif($readini($scriptdir $+ warnings6.ini,WARNINGS,$mta.nick($1,$2)),$v1,0) alias prs.warnings7 !return $iif($readini($scriptdir $+ warnings7.ini,WARNINGS,$mta.nick($1,$2)),$v1,0) alias prs.warnings8 !return $iif($readini($scriptdir $+ warnings8.ini,WARNINGS,$mta.nick($1,$2)),$v1,0) alias prs.warnings9 !return $iif($readini($scriptdir $+ warnings9.ini,WARNINGS,$mta.nick($1,$2)),$v1,0) alias prs.warnings10 !return $iif($readini($scriptdir $+ warnings10.ini,WARNINGS,$mta.nick($1,$2)),$v1,0) alias prs.warnings11 !return $iif($readini($scriptdir $+ warnings11.ini,WARNINGS,$mta.nick($1,$2)),$v1,0) alias prs.warnings12 !return $iif($readini($scriptdir $+ warnings12.ini,WARNINGS,$mta.nick($1,$2)),$v1,0) alias prs.wins2 !return $iif($readini($scriptdir $+ stats.ini,WINS,$mta.nick($1,%a)),$v1,0) alias prs.warnings !return $iif($readini($scriptdir $+ warnings.ini,WARNINGS,$mta.nick($1,$2)),$v1,0) } on *:SIGNAL:mta.command: { ;Parameters: ;$1 = Server ;$2 = ID ;$3 = Command ;$4- = Parameters var %a = $iif((!$4),$2,$iif(($prs.getid($1,$4) == $null),$2,$v1)),%race = if ($3 == !camp) { if ($mta.level($1,$2) >= 1) { if (%a == -1) mta.pm $1 $2 Error - Absent ID else mta.text $1 Don't camp $mta.nick($1,%a) or get kicked! } elseif (!givewarning* iswm $3) { if ($mta.level($1,$2) >= 5) { if (%a == -1) mta.pm $1 $2 Error - Absent ID else { !writeini -n " $+ $scriptdir $+ warnings.ini" WARNINGS $mta.nick($1,%a) $calc($prs.warnings($1,%a)+1) if ($prs.warnings($1,%a) >= 3) { mta.text $1 $mta.nick($1,%a) has reached the warnings limit and will be banned! mta.ban $1 %a } else mta.text $1 $mta.nick($1,%a) has got a warning! $calc(3-$prs.warnings($1,%a)) more warnings and he will be banned. } } } elseif ($3 == !lag) { if ($mta.level($1,$2) >= 1) { if (%a == -1) mta.pm $1 $2 Error - Absent ID else mta.text $1 Do something about your lag $mta.nick($1,%a) or get kicked } elseif ($3 == !rules) { if ($mta.level($1,$2) >= 0) { if (%a == -1) mta.pm $1 $2 Error - Absent ID else mta.text $1 Respect the admins. else mta.text $2 Listen to the admins. else mta.text $3 Don't fuck whit the script. else mta.text $4 Don't fight or get muted. else mta.text $5 Don't cheat or get banned. else mta.text $6 Don't say cancer or get kickt. else mta.text $7 Just have a lots of fun. else mta.text $8 That's all.... } elseif ($3 == !brb) { if ($1 == -1) mta.pm $1 $2 Error - Absent ID else mta.text $1 $mta.nick($1,$2) will be right back! $iif($5,reason: $5-,) ! } elseif ($3 == !lang) { if ($mta.level($1,$2) >= 1) { if (%a == -1) mta.pm $1 $2 Error - Absent ID else mta.text $1 Watch your language $mta.nick($1,%a) or get muted! } else mta.pm $1 $2 Error - You need to be level 1 to use this command } elseif ($3 == !spam) { if ($mta.level($1,$2) >= 1) { if (%a == -1) mta.pm $1 $2 Error - Absent ID else mta.text $1 Don't spam $mta.nick($1,%a) or get muted! } else mta.pm $1 $2 Error - You need to be level 1 to use this command } elseif ($3 == !afk) { if ($mta.level($1,$2) >= 1) { if (%a == -1) mta.pm $1 $2 Error - Absent ID else mta.text $1 $mta.nick($1,%a), you're AFK, move or get kicked! } else mta.pm $1 $2 Error - You need to be level 1 to use this command } elseif ($3 == !respect) { if ($mta.level($1,$2) >= 1) { if (%a == -1) mta.pm $1 $2 Error - Absent ID else mta.text $1 Respect the members $mta.nick($1,%a) or get muted! } else mta.pm $1 $2 Error - You need to be level 1 to use this command } elseif ($3 == !stay) { if ($mta.level($1,$2) >= 1) { if (%a == -1) mta.pm $1 $2 Error - Absent ID else mta.text $1 Stay in the battle zone $mta.nick($1,%a) or get freezed! } else mta.pm $1 $2 Error - You need to be level 1 to use this command } elseif ($3 == !stuck) { if ($mta.level($1,$2) >= 1) { if (%a == -1) mta.pm $1 $2 Error - Absent ID else mta.text $1 You're stuck $mta.nick($1,%a) typ /kill please! } else mta.pm $1 $2 Error - You need to be level 1 to use this command } elseif (!wcamp iswm $3) { if ($mta.level($1,$2) >= 3) { if (%a == -1) mta.pm $1 $2 Error - Absent ID elseif (%a == $2) mta.pm $1 $2 Error - You can't use this command on yourself you fuck! you realy suck you now because YOU CAN'T DO THAT! elseif ($mta.level($1,%a) >= 10) mta.pm $1 $2 Error - You cannot use this command on a person with level 10. else { !writeini -n " $+ $scriptdir $+ warnings8.ini" WARNINGS $mta.nick($1,%a) $calc($prs.warnings8($1,%a)+1) if ($prs.warnings8($1,%a) >= 3) { mta.text $1 $mta.nick($1,%a) has reached the warnings limit and will be kicked! !.timer 1 3 mta.kick $1 %a !writeini -n " $+ $scriptdir $+ warnings8.ini" WARNINGS $mta.nick($1,%a) 0 } else mta.text $1 $mta.nick($1,%a) has been warned for camping! $calc(3-$prs.warnings8($1,%a)) more warnings and he will be kicked. } } else mta.pm $1 $2 Error - You need to be level 3 to use this command } elseif (!wafk iswm $3) { if ($mta.level($1,$2) >= 3) { if (%a == -1) mta.pm $1 $2 Error - Absent ID elseif (%a == $2) mta.pm $1 $2 Error - You can't use this command on yourself you fuck! elseif ($mta.level($1,%a) >= 5) mta.pm $1 $2 Error - You cannot use this command on a person with level 5. else { !writeini -n " $+ $scriptdir $+ warnings2.ini" WARNINGS $mta.nick($1,%a) $calc($prs.warnings2($1,%a)+1) if ($prs.warnings2($1,%a) >= 3) { mta.text $1 $mta.nick($1,%a) has reached the warnings limit and will be kicked! !.timer 1 3 mta.kick $1 %a !writeini -n " $+ $scriptdir $+ warnings2.ini" WARNINGS $mta.nick($1,%a) 0 } else mta.text $1 $mta.nick($1,%a) has been warned for being away from keyboard! $calc(3-$prs.warnings2($1,%a)) more warnings and he will be kicked. } } else mta.pm $1 $2 Error - You need to be level 4 to use this command } elseif (!wlang iswm $3) { if ($mta.level($1,$2) >= 3) { if (%a == -1) mta.pm $1 $2 Error - Absent ID elseif (%a == $2) mta.pm $1 $2 Error - You can't use this command on yourself you fuck! elseif ($mta.level($1,%a) >= 5) mta.pm $1 $2 Error - You cannot use this command on a person with level 5. else { !writeini -n " $+ $scriptdir $+ warnings3.ini" WARNINGS $mta.nick($1,%a) $calc($prs.warnings3($1,%a)+1) if ($prs.warnings3($1,%a) >= 3) { mta.text $1 $mta.nick($1,%a) has reached the warnings limit and will be muted! !.timer 1 3 mta.mute $1 %a !writeini -n " $+ $scriptdir $+ warnings3.ini" WARNINGS $mta.nick($1,%a) 0 } else mta.text $1 $mta.nick($1,%a) has been warned for bad language! $calc(3-$prs.warnings3($1,%a)) more warnings and he will be muted. } } else mta.pm $1 $2 Error - You need to be level 3 to use this command } } elseif (!wlvl iswm $3) { if ($mta.level($1,$2) >= 3) { if (%a == -1) mta.pm $1 $2 Error - Absent ID elseif (%a == $2) mta.pm $1 $2 Error - You can't use this command on yourself you fuck! elseif ($mta.level($1,%a) >= 5) mta.pm $1 $2 Error - You cannot use this command on a person with level 5. else { !writeini -n " $+ $scriptdir $+ warnings3.ini" WARNINGS $mta.nick($1,%a) $calc($prs.warnings3($1,%a)+1) if ($prs.warnings3($1,%a) >= 3) { mta.text $1 $mta.nick($1,%a) has reached the warnings limit for asking for lvl's and will be muted! !.timer 1 3 mta.mute $1 %a !writeini -n " $+ $scriptdir $+ warnings3.ini" WARNINGS $mta.nick($1,%a) 0 } else mta.text $1 $mta.nick($1,%a) has been warned for asking for lvl! $calc(3-$prs.warnings3($1,%a)) more warnings and he will be muted(Dude). } } else mta.pm $1 $2 Error - You need to be level 3 to use this command } elseif (!wlag iswm $3) { if ($mta.level($1,$2) >= 3) { if (%a == -1) mta.pm $1 $2 Error - Absent ID elseif (%a == $2) mta.pm $1 $2 Error - You can't use this command on yourself you fuck! elseif ($mta.level($1,%a) >= 5) mta.pm $1 $2 Error - You cannot use this command on a person with level 5. else { !writeini -n " $+ $scriptdir $+ warnings10.ini" WARNINGS $mta.nick($1,%a) $calc($prs.warnings10($1,%a)+1) if ($prs.warnings10($1,%a) >= 3) { mta.text $1 $mta.nick($1,%a) has reached the warnings limit and will be kicked! !.timer 1 3 mta.kick $1 %a !writeini -n " $+ $scriptdir $+ warnings10.ini" WARNINGS $mta.nick($1,%a) 0 } else mta.text $1 $mta.nick($1,%a) has been warned for lagging! $calc(3-prs.warnings10($1,%a)) more warnings and he will be kicked. } } else mta.pm $1 $2 Error - You need to be level 3 to use this command } elseif (!wrespect iswm $3) { if ($mta.level($1,$2) >= 2) { if (%a == -1) mta.pm $1 $2 Error - Absent ID elseif (%a == $2) mta.pm $1 $2 Error - You can't use this command on yourself you fuck! elseif ($mta.level($1,%a) >= 5) mta.pm $1 $2 Error - You cannot use this command on a person with level 5. else { !writeini -n " $+ $scriptdir $+ warnings4.ini" WARNINGS $mta.nick($1,%a) $calc($prs.warnings4($1,%a)+1) if ($prs.warnings4($1,%a) >= 3) { mta.text $1 $mta.nick($1,%a) has reached the warnings limit and will be kicked! !.timer 1 3 mta.kick $1 %a !writeini -n " $+ $scriptdir $+ warnings4.ini" WARNINGS $mta.nick($1,%a) 0 } else mta.text $1 $mta.nick($1,%a) has been warned for not respecting the admins/members! $calc(3-$prs.warnings4($1,%a)) more warnings and he will be kicked. } } else mta.pm $1 $2 Error - You need to be level 2 to use this command } elseif (!wnoob iswm $3) { if ($mta.level($1,$2) >= 1) { if (%a == -1) mta.pm $1 $2 Error - Absent ID elseif (%a == $2) mta.pm $1 $2 Error - You can't use this command on yourself you fuck! elseif ($mta.level($1,%a) >= 5) mta.pm $1 $2 Error - You cannot use this command on a person with level 5. else { !writeini -n " $+ $scriptdir $+ warnings11.ini" WARNINGS $mta.nick($1,%a) $calc($prs.warnings11($1,%a)+1) if ($prs.warnings11($1,%a) >= 3) { mta.text $1 $mta.nick($1,%a) has reached the warnings limit and will be kicked! !.timer 1 3 mta.kick $1 %a !writeini -n " $+ $scriptdir $+ warnings11.ini" WARNINGS $mta.nick($1,%a) 0 } else mta.text $1 $mta.nick($1,%a) has been warned for acting like a noob! $calc(3-$prs.warnings11($1,%a)) more warnings and he will be kicked. } } else mta.pm $1 $2 Error - You need to be level 1 to use this command } elseif (!wspam iswm $3) { if ($mta.level($1,$2) >= 3) { if (%a == -1) mta.pm $1 $2 Error - Absent ID elseif (%a == $2) mta.pm $1 $2 Error - You can't use this command on yourself you fuck! elseif ($mta.level($1,%a) >= 5) mta.pm $1 $2 Error - You cannot use this command on a person with level 5. else { !writeini -n " $+ $scriptdir $+ warnings5.ini" WARNINGS $mta.nick($1,%a) $calc($prs.warnings5($1,%a)+1) if ($prs.warnings5($1,%a) >= 3) { mta.text $1 $mta.nick($1,%a) has reached the warnings limit and will be muted! !.timer 1 3 mta.mute $1 %a !writeini -n " $+ $scriptdir $+ warnings5.ini" WARNINGS $mta.nick($1,%a) 0 } else mta.text $1 $mta.nick($1,%a) has been warned for spamming! $calc(3-$prs.warnings5($1,%a)) more warnings and he will be muted. } } else mta.pm $1 $2 Error - You need to be level 7 to use this command } elseif (!wstay iswm $3) { if ($mta.level($1,$2) >= 3) { if (%a == -1) mta.pm $1 $2 Error - Absent ID elseif (%a == $2) mta.pm $1 $2 Error - You can't use this command on yourself you fuck! elseif ($mta.level($1,%a) >= 5) mta.pm $1 $2 Error - You cannot use this command on a person with level 5. else { !writeini -n " $+ $scriptdir $+ warnings6.ini" WARNINGS $mta.nick($1,%a) $calc($prs.warnings6($1,%a)+1) if ($prs.warnings6($1,%a) >= 3) { mta.text $1 $mta.nick($1,%a) has reached the warnings limit and will be freezed! !.timer 1 3 mta.freeze $1 %a !writeini -n " $+ $scriptdir $+ warnings6.ini" WARNINGS $mta.nick($1,%a) 0 } else mta.text $1 $mta.nick($1,%a) has been warned for not staying in the battle zone! $calc(3-$prs.warnings6($1,%a)) more warnings and he will be freezed. } } else mta.pm $1 $2 Error - You need to be level 3 to use this command } elseif (!wstuck iswm $3) { if ($mta.level($1,$2) >= 3) { if (%a == -1) mta.pm $1 $2 Error - Absent ID elseif (%a == $2) mta.pm $1 $2 Error - You can't use this command on yourself you fuck! elseif ($mta.level($1,%a) >= 5) mta.pm $1 $2 Error - You cannot use this command on a person with level 5. else { !writeini -n " $+ $scriptdir $+ warnings12.ini" WARNINGS $mta.nick($1,%a) $calc($prs.warnings12($1,%a)+1) if ($prs.warnings12($1,%a) >= 3) { mta.text $1 $mta.nick($1,%a) has reached the warnings limit and will be kicked! !.timer 1 3 mta.kick $1 %a !writeini -n " $+ $scriptdir $+ warnings12.ini" WARNINGS $mta.nick($1,%a) 0 } else mta.text $1 $mta.nick($1,%a), you are stuck please typ /kill to kill yourself! } } else mta.pm $1 $2 Error - You need to be level 3 to use this command } elseif (!wadmin iswm $3) { if ($mta.level($1,$2) >= 5) { if (%a == -1) mta.pm $1 $2 Error - Absent ID elseif (%a == $2) mta.pm $1 $2 Error - You can't use this command on yourself you fuck! elseif ($mta.level($1,%a) >= 5) mta.pm $1 $2 Error - You cannot use this command on a person with level 5. elseif ($mta.level($1,%a) <2>= 3) { mta.text $1 $mta.nick($1,%a) has reached the warnings limit and his admin level will be lowered! !.timer 1 3 mta.text $1 $mta.nick($1,%a) $+ 's Level changed from $mta.level($1,%a) to 2 !writeini -n " $+ $scriptdir $+ admin.ini" ADMIN $mta.nick($1,%a) 2 !writeini -n " $+ $scriptdir $+ admin.ini" IP $mta.nick($1,%a) $mta.ip($1,%a) !writeini -n " $+ $scriptdir $+ warnings7.ini" WARNINGS $mta.nick($1,%a) 0 } else mta.text $1 $mta.nick($1,%a) has been warned for admin abuse! $calc(3-$prs.warnings7($1,%a)) more warnings and your level will be set to level 2. } } else mta.pm $1 $2 Error - You need to be level 5 to use this command } } Plz... help me i need them ! Edited March 31, 2007 by Guest
SanZoR Posted March 31, 2007 Posted March 31, 2007 Lol, why you cant make it uself? and why the hell u use mta.level, its for rcon admins... Im sure you can make it for scoobys scripts too. Finnish Multi Theft Auto Networks Community @ http://fin-mta.net OWNED 100mbit fiber linez ownz
DJScripts Posted March 31, 2007 Author Posted March 31, 2007 yeh but whit scooby's script it is rcon admins
Recommended Posts