Jump to content

Niels

Members
  • Posts

    204
  • Joined

  • Last visited

Everything posted by Niels

  1. Niels

    MTAMA Scripting

    elseif ($3 == !kick) && (%ismoderator. [ $+ [ $1 ] $+ . $+ [ $2 ] ] == true || %isadmin. [ $+ [ $1 ] $+ . $+ [ $2 ] ] == true) { %b = $iif($4 isnum,$4,$mta.getid($1,$4)) if (%b == $2) mta.msg $1 $2 You cannot kick yourself! if ($mta.name($1,%b) == Unknown) mta.say $1 Error on User ID/Name. else { mta.say $1 $mta.name($1,$2) has kicked $mta.name($1,%b) $+ . Reason: $5- set %kicks $calc($readini("MTAscript.ini",kicks,$mta.name($1,$2)) + 1) writeini -n "MTAscript.ini" kicks $mta.name($1,$2) %kicks echo -a Server $1 $+ : $mta.name($1,$2) kicked nr. %kicks mta.kick $1 %b } } Try this.
  2. Niels

    !car

    if ($3 == !car) { %b = $iif($4 isnum,$4,$mta.getid($1,$4)) if ($4 !== $null) { if (($mta.vehicle($1,%b).name == Foot) || ($mta.vehicle($1,%b).name == Unknown)) mta.say $1 Unable to get in what car $mta.name($1,%b) are in! if ($mta.name($1,%b).name == Unknown) mta.say $1 Failed ID. else mta.say $1 $mta.name($1,%b) is in/on $mta.vehicle($1,%b).name - Damage: $calc(100 - $mta.health($1,%b).vehicle) %manhunt % } else { if (($mta.vehicle($1,$2).name == Foot) || ($mta.vehicle($1,$2).name == Unknown)) mta.say $1 Unable to get in what car u are in. else mta.say $1 $mta.name($1,$2) is in/on $mta.vehicle($1,$2).name - Damage: $calc(100 - $mta.health($1,$2).vehicle) %manhunt % } } Why is that failed id not working ??
  3. Niels

    !car

    if ($3 == !car) { %b = $iif($4 isnum,$4,$mta.getid($1,$4)) if ($4 !== $null) { if (($mta.vehicle($1,%b).name == Foot) || ($mta.vehicle($1,%b).name == Unknown)) mta.say $1 Unable to get in what car $mta.name($1,%b) are in! else mta.say $1 $mta.name($1,%b) is in/on $mta.vehicle($1,%b).name Damage: $calc(100 - $mta.health($1,%b).vehicle) %manhunt % } else { if (($mta.vehicle($1,$2).name == Foot) || ($mta.vehicle($1,$2).name == Unknown)) mta.say $1 Unable to get in what car you are in. else mta.say $1 $mta.name($1,$2) is in/on $mta.vehicle($1,$2).name Damage: $calc(100 - $mta.health($1,$2).vehicle) %manhunt % } } it's works
  4. Niels

    !car

    if ($3 == !car) { %b = $iif($4 isnum,$4,$mta.getid($1,$4)) if ($4 !== $null) { mta.say $1 $mta.name($1,%b) is in/on $mta.vehicle($1,%b).name Damage: $calc(100 - $mta.health($1,%b).vehicle) %manhunt % elseif ($mta.vehicle($1,%b).name == Foot && Unknown) mta.say $1 Unable to get in what car $mta.name($1,%b) are in! } else { mta.say $1 $mta.name($1,$2) is in/on $mta.vehicle($1,$2).name Damage: $calc(100 - $mta.health($1,$2).vehicle) %manhunt % elseif ($mta.vehicle($1,$2).name == Foot && Unknown) mta.say $1 Unable to get in what car you are in! } } Why is this don't work (car script edit)
  5. Niels

    !car

    IRC Chat and Scripting ???
  6. Niels

    !car

    if (!car == $3) { %b = $iif($4 isnum,$4,$mta.getid($1,$4)) if ($4 !== $null) { if ($mta.vehicle($1,%b).name != Unknown) mta.say $1 $mta.name($1,%b) is in/on $mta.vehicle($1,%b).name - Damage: $calc(100 - $mta.health($1,%b).vehicle) %manhunt % else mta.say $1 $mta.name($1,%b) is out of game! } else { if ($mta.vehicle($1,$2).name != Unknown) mta.say $1 $mta.name($1,$2) is in/on $mta.vehicle($1,$2).name - Damage: $calc(100 - $mta.health($1,$2).vehicle) %manhunt % else mta.say $1 You are out of game! if ($mta.name($1,%b).name == Unknown) mta.say $1 User ID Failed. } } Why is it User ID Failed. not working ??? can somone fix it ?
  7. Niels

    Taxi

    if (!taxi == $3) { mta.say $1 $mta.name($1,$2) needs a ride! location: $mta.area($1,$2) $+ ! (Command !yes) set %taxi. [ $+ [ $1 ] ] $mta.name($1,$2) } if (!taxioff == $3) { mta.say $1 %taxi. [ $+ [ $1 ] ] have's a $mta.vehicle($1,$2).name $+ . No taxi more need! unset %taxi. [ $+ [ $1 ] ] } if (!yes == $3) { mta.say $1 $mta.name($1,$2) give %taxi. [ $+ [ $1 ] ] a taxi! Wait on your location! unset %taxi. [ $+ [ $1 ] ] } if (!taxis == $3) { mta.say $1 People need a pickup: %taxi. [ $+ [ $1 ] ] } if (!taxiarea == $3) { mta.say $1 %taxi. [ $+ [ $1 ] ] is in $mta.area($1,%taxi. [ $+ [ $1 ] ]) } this is my full taxi script and !taxiarea is don't work
  8. Niels

    Taxi

    if (!taxiarea == $3) { mta.say $1 %taxi. [ $+ [ $1 ] ] is in $mta.area($1,%taxi. [ $+ [ $1 ] ]) } Why is this don't work??
  9. Niels

    MTAMA Scripting

    ;!timeban Script - Edited! ;Code: alias mta.start { .timerunban 0 10 mta.timeunban } alias mta.text { if ($readini($scriptdir $+ $1.ini,ID $+ $2,op)) { if ($3 == !timeban) { if ($4 != $null) { if ($5 != $null) { if ($6 != $null) { if ($mta.name($1,$4) == unknown) { mta.say $1 Error! ID $4 don't exist! } else { if ($6 == sec || $6 == min || $6 == hour || $6 == day || $6 == week) { mta.timeban $1- } else { mta.say $1 Error of synthesis, use: !timeban value (sec,min,hour,day or week). } } } else { mta.say $1 Error of synthesis, use: !timeban value (sec,min,hour,day or week). } } else { mta.say $1 Error of synthesis, use: !timeban value (sec,min,hour,day or week). } } else { mta.say $1 Error of synthesis, use: !timeban value (sec,min,hour,day or week). } } } } alias mta.timeban { %id = $4 %ip = $mta.ip($1, %id) %currenttime = $ctime if (%id == -1) { !return } %factor_text = $6 if (%factor_text == sec) { %factor = 1 } elseif (%factor_text == min) { %factor = 60 } elseif (%factor_text == hour) { %factor = 3600 } elseif (%factor_text == day) { %factor = 86400 } elseif (%factor_text == week) { %factor = 604800 } %ban_until = $calc(%currenttime + $5 * %factor) mta.say $1 $mta.name($1,$4) has been BANned by $mta.name($1,$2) until $asctime(%ban_until) %bans = $readini( "MTAbans.ini", bans, ips) %bans = $addtok(%bans, $longip(%ip), 32) %servers = $readini( "MTAbans.ini", servers, $longip(%ip)) %servers = $addtok(%servers, $1, 32) writeini "MTAbans.ini" bans ips %bans writeini "MTAbans.ini" banduration $longip(%ip) %ban_until writeini "MTAbans.ini" server $longip(%ip) %servers writeini "MTAbans.ini" name $longip(%ip) $mta.name($1,%id) writeini "MTAbans.ini" ip $longip(%ip) $mta.ip($1,%id) mta.ban $1 %id } alias mta.timeunban { %bans = $readini( "MTAbans.ini", bans, ips) %num_bans = $numtok(%bans, 32) %currenttime = $ctime %counter = 0 while (%counter < %num_bans) { if (%num_bans > 1) { %banned = $gettok( %bans , %counter + 1 , 32) } else { %banned = %bans } if (%banned != $null) { %ban_until = $readini( "MTAbans.ini", banduration, %banned ) if (%ban_until <= %currenttime) { %servers = $readini( "MTAbans.ini", server, %banned) %name = $readini( "MTAbans.ini", name, %banned) %num_servers = $numtok(%servers,32) %counter2 = 0 while (%counter2 <= %num_servers) { %server = $gettok( %servers , %counter2 + 1 , 32) mta.say %server %name has been unBANned ... mta.unban %server $longip(%banned) %counter2 = %counter2 + 1 } %bans = $remtok(%bans, %banned, 32) %num_bans = $calc(%num_bans - 1) %counter = %counter - 1 remini "MTAbans.ini" banduration %banned remini "MTAbans.ini" server %banned remini "MTAbans.ini" name %banned remini "MTAbans.ini" ip %banned } } %counter = %counter + 1 } if (%bans != $null) { writeini "MTAbans.ini" bans ips %bans } else { remini "MTAbans.ini" bans ips } } alias mta.pm { if ($3- == server secret) { mta.say $1 Admin rights given to $mta.name($1,$2) writeini $+(",$scriptdir,$1.ini") ID $+ $2 op 1 } } ;Tested with success... Lol, i do !timeban 0 1 sec i wait 20 sec or longer and i'am unbanned can somone PLEASE fix it ?
  10. Server Name: J*MB* Public Server (MTA.0.4.1) Server Stats: http://mbstats.jarnosloot.nl Server Map: Vice City: Deathmatch MTA Version: 0.4.1 Current Players: 0 Max Players: 8 mta://24.132.106.135:2003 ID Nick Score Ping is j een bug ?
  11. http://mbstats.jarnosloot.nl/
  12. http://members.lycos.nl/warland/serverstats he says 0 i have port 2003 and 123 free on my router
  13. i have it 100000xxx please help.....
  14. what is the correct config i have gta vc server
  15. this is my config file: <?php ///////////////////////////////////////////////////////////////// // MTA Sever Stat Fetcher 1.0 // // http://www.ninezeronine.net/404 // // [email protected] // // gtaconfig.php // // Copyright (C) 2004 Justin Court // //////////////////////////////////////////////////////////////// //////////----Start Config----////////// $ServerIP = "24.132.106.135"; $ServerPort = "2003"; $serverArr = 2; $mapArr = 4; $verArr = 5; $curUserArr = 7; $maxUserArr = 8; $displayPlayers = 1; //1=yes, 0=no $displayScore = 1; //1=yes, 0=no $displayPing = 1; //1=yes, 0=no $displayMap = 1; //1=yes, 0=no $displayMTAVersion = 1; //1=yes, 0=no $displayServerAndPort = 1; //1=yes, 0=no $useMTAHandler = 1; //1=yes, 0=no $numStart = 1; //1=start at one, 0 start at zero $displayLeadingZero = 1; //1=yes, 0=no $table1color = "#C0C0C0"; $table2color = "#FFFFFF"; $tableBorderColor = "#000000"; ///////////----End Config----/////////// //////////--Do Not Edit Below This Unless You Know What You Are Doing--////////// $fp = fsockopen("udp://" . $ServerIP, $ServerPort + 123, $errno, $errstr); if (!$fp) { echo "$errstr ($errno) \n"; exit; } else { fputs ($fp, "s"); $c = ''; do { $c .= fread ($fp,1); $fpstatus = socket_get_status($fp); } while ($fpstatus["unread_bytes"] ); fclose ($fp); $playerquery = strchr($c,"?"); $serverquery = substr($c,0, strlen($c) - strlen($playerquery)); $players = explode("?",$playerquery); unset($players[0]); // Remove Array number 0 because nothing is entered by explode. $serverquery = str_replace("","<=>",$serverquery); $serverquery = str_replace("","<=>",$serverquery); $serverquery = str_replace("","<=>",$serverquery); $serverquery = str_replace("","<=>",$serverquery); $serverquery = str_replace("","<=>",$serverquery); $serverquery = str_replace("","<=>",$serverquery); $serverquery = str_replace("","<=>",$serverquery); $serverquery = str_replace("","<=>",$serverquery); $serverquery = str_replace("","<=>",$serverquery); $serverquery = str_replace("%","",$serverquery); for($i=0;$i<(count($serverquery));$i++){ $explodedata = explode("<=>",$serverquery); } } $server_name = str_replace($ServerPort,"",$explodedata[$serverArr]); ?> and it's not working i have port 123 free on the server pc
  16. Niels

    MTAMA Scripting

    Harry can you fix this ? if ($3 == !warned) { unset %warned set %countwarned 0 while (%countwarned < 26 ) { if ($mta.name($1,%countwarned) != Unknown) && (if ($readini( "MTAwarn.ini", main, $mta.name( $1, %countwarned ) ) ) { if (%warned == $null) { %warned = $mta.name($1, %countwarned) ( $+ if ($readini( "MTAwarn.ini", main, $mta.name( $1, %countwarned ) ) ) { } else { %warned = %warned $+ , $mta.name($1, %countwarned) ( $+ if ($readini( "MTAwarn.ini", main, $mta.name( $1, %countwarned ) ) ) { } } %countwarned = %countwarned + 1 } if ( %warned == $null ) { mta.say $1 No people warned in this server. } else { mta.say $1 Warned people: %warned } unset %warned unset %countwarned }
  17. Niels

    MTAMA Scripting

    if ($3 == !warned) { unset %warned set %countwarned 0 while (%countwarned < 26 ) { if ($mta.name($1,%countwarned) != Unknown) && (if ($readini( "MTAwarn.ini", main, $mta.name( $1, %countwarned ) ) ) { if (%warned == $null) { %warned = $mta.name($1, %countwarned) ( $+ if ($readini( "MTAwarn.ini", main, $mta.name( $1, %countwarned ) ) ) { } else { %warned = %warned $+ , $mta.name($1, %countwarned) ( $+ if ($readini( "MTAwarn.ini", main, $mta.name( $1, %countwarned ) ) ) { } } %countwarned = %countwarned + 1 } if ( %warned == $null ) { mta.say $1 No people warned in this server. } else { mta.say $1 Warned people: %warned } unset %warned unset %countwarned } why is this dont work ??
  18. Niels

    MTAMA Scripting

    no this script is fine GRS too, i write my script can you fix this ? ;A slightly updated timeban script, featuring: ;- Recovering after MTAMA turnoff (Still no unban when MTAMA is off) ;- Multiple servers (Last bantime will be the unban on all banned servers) ;- Bantimes in secs, mins, hours and days ;Insert in mta.start .timerunban 0 10 mta.timeunban ;Insert in mta.command something equivalent to: elseif ($3 == !timeban && %isadmin. [ $+ [ $1 ] $+ . $+ [ $2 ] ] == true) { mta.timeban $1- } ;And to finish it all, insert these method at the bottom of your script: alias mta.timeban { %id = $mta.getid($1,$4) %ip = $mta.ip($1, %id) %currenttime = $ctime if (%id == -1) { !return } %factor_text = $6 if (%factor_text == sec || %factor_text == s || %factor_text == secs || %factor_text == seconds) { %factor = 1 } elseif (%factor_text == min || %factor_text == m || %factor_text == mins || %factor_text == minutes) { %factor = 60 } elseif (%factor_text == hour || %factor_text == h || %factor_text == hours) { %factor = 3600 } elseif (%factor_text == day || %factor_text == d || %factor_text == hours || %factor_text == uur || %factor_text == uren) { %factor = 86400 } elseif (%factor_text == week || %factor_text == w || %factor_text == weeks) { %factor = 604800 } %ban_until = $calc(%currenttime + $5 * %factor) mta.say $1 $4 has been banned until $asctime(%ban_until) %bans = $readini( "MTAbans.ini", bans, ips) %bans = $addtok(%bans, $longip(%ip), 32) %servers = $readini( "MTAbans.ini", servers, $longip(%ip)) %servers = $addtok(%servers, $1, 32) writeini "MTAbans.ini" bans ips %bans writeini "MTAbans.ini" banduration $longip(%ip) %ban_until writeini "MTAbans.ini" server $longip(%ip) %servers writeini "MTAbans.ini" name $longip(%ip) $mta.name($1,%id) mta.ban $1 %id } alias mta.timeunban { %bans = $readini( "MTAbans.ini", bans, ips) %num_bans = $numtok(%bans, 32) %currenttime = $ctime %counter = 0 while (%counter < %num_bans) { if (%num_bans > 1) { %banned = $gettok( %bans , %counter + 1 , 32) } else { %banned = %bans } if (%banned != $null) { %ban_until = $readini( "MTAbans.ini", banduration, %banned ) if (%ban_until < %currenttime) { %servers = $readini( "MTAbans.ini", server, %banned) %name = $readini( "MTAbans.ini", name, %banned) %num_servers = $numtok(%servers,32) %counter2 = 0 while (%counter2 < %num_servers) { %server = $gettok( %servers , %counter2 + 1 , 32) mta.say %server %name ( $+ $longip(%banned) $+ ) is unbanned (timer) mta.unban %server $longip(%banned) %counter2 = %counter2 + 1 } %bans = $remtok(%bans, %banned, 32) %num_bans = $calc(%num_bans - 1) %counter = %counter - 1 remini "MTAbans.ini" banduration %banned remini "MTAbans.ini" server %banned remini "MTAbans.ini" name %banned } } %counter = %counter + 1 } if (%bans != $null) { writeini "MTAbans.ini" bans ips %bans } else { remini "MTAbans.ini" bans ips } }
  19. Niels

    MTAMA Scripting

    have somone a good timeban system it script in script packase is don't work i typ !timeban test 1 sec i wait 10 sec and test is unbanned.
  20. Niels

    MTAMA Scripting

    i'am not nivko i'am nivko's brother
  21. Niels

    MTAMA Scripting

    that script is not works and IAM NOT NIVKO
  22. Niels

    MTAMA Scripting

    can i download Harry's admin system ? Or can i get it ?
  23. Niels

    MTAMA Scripting

    have somebody a good ping kicker with average ping ???
  24. Niels

    MTAMA Scripting

    alias mta.command { if ($3 == !getip) { mta.msg $1 $2 IP from $4 is $readini(joins.ini,IP,$4,$mta.ip($1,$4)) } alias mta.join { writeini -n "joins.ini" IP $mta.ip($1,$2) $mta.name($1,$2) } ;This is ini file ;[iP] ;***.***.***.***=test ;***.***.***.***=MTAFreak Why is this not work i typ in chat !getip test admin says: IP form test is
×
×
  • Create New...